GridGain™ 3.6.0e
Enterprise Edition

org.gridgain.grid.resources
Annotation Type GridMBeanServerResource


@Documented
@Retention(value=RUNTIME)
@Target(value={METHOD,FIELD})
public @interface GridMBeanServerResource

Annotates a field or a setter method for injection of MBeanServer resource. MBean server is provided to grid via GridConfiguration.

MBean server can be injected into instances of following classes:

Here is how injection would typically happen:

 public class MyGridJob implements GridJob {
      ...
      @GridMBeanServerResource
      private MBeanServer mbeanSrv;
      ...
  }
 
or
 public class MyGridJob implements GridJob {
     ...
     private MBeanSever mbeanSrv;
     ...
     @GridMBeanServerResource
     public void setMBeanServer(MBeanServer mbeanSrv) {
          this.mbeanSrv = mbeanSrv;
     }
     ...
 }
 

See GridConfiguration.getMBeanServer() for Grid configuration details.

Wiki & Forum:


Wiki
Forum

 


GridGain™ 3.6.0e
Enterprise Edition

GridGain - Real Time Big Data
Enterprise Edition, ver. 3.6.0e.13012012
2012 Copyright © GridGain Systems
Follow us:   Follow GridGain on Github Follow GridGain on Facebook Join GridGain User Group Follow GridGain on Twitter Follow GridGain on YouTube