@Documented @Retention(value=RUNTIME) @Target(value={METHOD,FIELD}) public @interface MBeanServerResource
MBeanServer
resource. MBean server
is provided to grid via IgniteConfiguration
.
MBean server can be injected into instances of following classes:
Here is how injection would typically happen:
public class MyGridJob implements ComputeJob { ... @IgniteMBeanServerResource private MBeanServer mbeanSrv; ... }or
public class MyGridJob implements ComputeJob { ... private MBeanSever mbeanSrv; ... @IgniteMBeanServerResource public void setMBeanServer(MBeanServer mbeanSrv) { this.mbeanSrv = mbeanSrv; } ... }
See IgniteConfiguration.getMBeanServer()
for Grid configuration details.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC3 Release Date : March 24 2015