|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
org.jboss.system.ServiceMBeanSupport (src)
org.jboss.jmx.connector.invoker.InvokerAdaptorService
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 java.util.HashMap |
remoteListeners
A HashSet |
Fields inherited from class org.jboss.system.ServiceMBeanSupport (src) |
log, server, SERVICE_CONTROLLER_SIG, serviceName |
Fields inherited from interface org.jboss.system.ServiceMBean (src) |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Constructor Summary | |
InvokerAdaptorService()
|
Method Summary | |
void |
addNotificationListener(ObjectName (src) name,
RMINotificationListener (src) listener,
NotificationFilter (src) filter,
java.lang.Object handback)
|
java.lang.Class[] |
getExportedInterfaces()
|
java.util.Map |
getMethodMap()
Expose the service interface mapping as a read-only attribute |
java.lang.Object |
invoke(Invocation (src) invocation)
Expose the MBeanServer service via JMX to invokers. |
void |
removeNotificationListener(ObjectName (src) name,
RMINotificationListener (src) listener)
|
void |
setExportedInterfaces(java.lang.Class[] exportedInterfaces)
|
protected void |
startService()
Sub-classes should override this method to provide custum 'start' logic. |
protected void |
stopService()
Sub-classes should override this method to provide custum 'stop' logic. |
Methods inherited from class org.jboss.system.ServiceMBeanSupport (src) |
create, createService, destroy, destroyService, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop |
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport (src) |
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.HashMap remoteListeners
Constructor Detail |
public InvokerAdaptorService()
Method Detail |
public java.lang.Class[] getExportedInterfaces()
public void setExportedInterfaces(java.lang.Class[] exportedInterfaces)
protected void startService() throws java.lang.Exception
ServiceMBeanSupport (src)
This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.
startService
in class ServiceMBeanSupport (src)
java.lang.Exception
protected void stopService() throws java.lang.Exception
ServiceMBeanSupport (src)
This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.
stopService
in class ServiceMBeanSupport (src)
java.lang.Exception
public java.util.Map getMethodMap()
public java.lang.Object invoke(Invocation (src) invocation) throws java.lang.Exception
invocation
- A pointer to the invocation object
java.lang.Exception
- Failed to invoke method.public void addNotificationListener(ObjectName (src) name, RMINotificationListener (src) listener, NotificationFilter (src) filter, java.lang.Object handback) throws InstanceNotFoundException (src) , java.rmi.RemoteException
InstanceNotFoundException (src)
java.rmi.RemoteException
public void removeNotificationListener(ObjectName (src) name, RMINotificationListener (src) listener) throws InstanceNotFoundException (src) , ListenerNotFoundException (src) , java.rmi.RemoteException
InstanceNotFoundException (src)
ListenerNotFoundException (src)
java.rmi.RemoteException
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |