Save This Page
Home » JBoss-5.1.0 » org.jboss.jmx » connector » invoker » [javadoc | source]
public class: InvokerAdaptorService [javadoc | source]

All Implemented Interfaces:
    InvokerAdaptorServiceMBean, KernelControllerContextAware, ServiceMBean, MBeanRegistration, NotificationEmitter

A JBoss service exposes an invoke(Invocation) operation that maps calls to the ExposedInterface onto the MBeanServer this service is registered with. It is used in conjunction with a proxy factory to expose the MBeanServer to remote clients through arbitrary protocols.

It sets up the correct classloader before unmarshalling the arguments, this relies on the ObjectName being seperate from from the other method arguments to avoid unmarshalling them before the classloader is determined from the ObjectName.

The interface is configurable, it must be similar to MBeanServer, though not necessarily derived from it

The invoker is configurable and must be specified

Field Summary
protected  HashMap remoteListeners    A HashSet for the registered listeners 
Fields inherited from org.jboss.system.ServiceMBeanSupport:
SERVICE_CONTROLLER_SIG,  log,  server,  serviceName
 public InvokerAdaptorService() 
Method from org.jboss.jmx.connector.invoker.InvokerAdaptorService Summary:
addNotificationListener,   getExportedInterfaces,   getMethodMap,   invoke,   removeNotificationListener,   setExportedInterfaces,   startService,   stopService
Methods from org.jboss.system.ServiceMBeanSupport:
create,   createService,   destroy,   destroyService,   getDeploymentInfo,   getLog,   getName,   getNextNotificationSequenceNumber,   getObjectName,   getServer,   getServiceName,   getState,   getStateString,   jbossInternalCreate,   jbossInternalDescription,   jbossInternalDestroy,   jbossInternalLifecycle,   jbossInternalStart,   jbossInternalStop,   pojoChange,   pojoCreate,   pojoDestroy,   pojoStart,   pojoStop,   postDeregister,   postRegister,   preDeregister,   preRegister,   setKernelControllerContext,   start,   startService,   stop,   stopService,   unsetKernelControllerContext
Methods from
addNotificationListener,   getNotificationInfo,   handleNotification,   nextNotificationSequenceNumber,   removeNotificationListener,   removeNotificationListener,   sendNotification
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.jmx.connector.invoker.InvokerAdaptorService Detail:
 public  void addNotificationListener(ObjectName name,
    RMINotificationListener listener,
    NotificationFilter filter,
    Object handback) throws InstanceNotFoundException, RemoteException 
 public Class[] getExportedInterfaces() 
 public Map getMethodMap() 
    Expose the service interface mapping as a read-only attribute
 public Object invoke(Invocation invocation) throws Exception 
    Expose the MBeanServer service via JMX to invokers.
 public  void removeNotificationListener(ObjectName name,
    RMINotificationListener listener) throws InstanceNotFoundException, ListenerNotFoundException, RemoteException 
 public  void setExportedInterfaces(Class[] exportedInterfaces) 
 protected  void startService() throws Exception 
 protected  void stopService() throws Exception