|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.invocation.unified.server.UnifiedInvoker
public class UnifiedInvoker
This is a detached invoker which sits on top of jboss remoting. Since this uses remoting, the transport protocol used is defined within the remoting service and this, the UnifiedInvoker, is declared as the handler.
Field Summary |
---|
Fields inherited from class org.jboss.system.ServiceMBeanSupport |
---|
log, server, SERVICE_CONTROLLER_SIG, serviceName |
Fields inherited from interface org.jboss.system.ServiceMBean |
---|
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Constructor Summary | |
---|---|
UnifiedInvoker()
|
Method Summary | |
---|---|
void |
addListener(org.jboss.remoting.callback.InvokerCallbackHandler callbackHandler)
Adds a callback handler that will listen for callbacks from the server invoker handler. |
protected void |
createService()
|
protected org.jboss.remoting.ServerInvoker |
getInvoker()
|
String |
getInvokerLocator()
Gets the invoker locator string for this server |
String |
getName()
Gives this JMX service a name. |
javax.management.MBeanServer |
getServer()
|
boolean |
getStrictRMIException()
A return of true means that the UnifiedInvokerProxy (on the client side) will wrap all RemoteExceptions within a new ServerException. |
String |
getSubSystem()
Gets the subsystem that the invoker will be registered under within remoting connector |
Object |
invoke(org.jboss.remoting.InvocationRequest invocationReq)
Implementation of the server invoker handler interface. |
protected void |
jmxBind()
|
void |
removeListener(org.jboss.remoting.callback.InvokerCallbackHandler callbackHandler)
Removes the callback handler that was listening for callbacks from the server invoker handler. |
void |
setConnector(org.jboss.remoting.transport.ConnectorMBean connector)
This may be called if set depends in config with optional-attribute-name. |
void |
setInvoker(org.jboss.remoting.ServerInvoker invoker)
set the invoker that owns this handler |
void |
setMBeanServer(javax.management.MBeanServer server)
set the mbean server that the handler can reference |
void |
setStrictRMIException(boolean isStrict)
If set to true, this will cause the UnifiedInvokerProxy (on the client side) to wrap all RemoteExceptions thrown from the server in a new ServerException. |
void |
setSubSystem(String subsystem)
Sets the remoting subsystem |
protected void |
startService()
Will get the invoker locator from the server invoker, start the server invoker, create the proxy, and bind the proxy. |
void |
stopService()
Stops the server invoker. |
Methods inherited from class org.jboss.system.ServiceMBeanSupport |
---|
create, destroy, destroyService, getDeploymentInfo, getLog, getNextNotificationSequenceNumber, getObjectName, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop |
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport |
---|
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jboss.system.ServiceMBean |
---|
getState, getStateString, jbossInternalLifecycle |
Methods inherited from interface org.jboss.system.Service |
---|
create, destroy, start, stop |
Constructor Detail |
---|
public UnifiedInvoker()
Method Detail |
---|
public void setStrictRMIException(boolean isStrict)
setStrictRMIException
in interface UnifiedInvokerMBean
isStrict
- public boolean getStrictRMIException()
getStrictRMIException
in interface UnifiedInvokerMBean
public String getSubSystem()
UnifiedInvokerMBean
getSubSystem
in interface UnifiedInvokerMBean
public void setSubSystem(String subsystem)
setSubSystem
in interface UnifiedInvokerMBean
subsystem
- public void setConnector(org.jboss.remoting.transport.ConnectorMBean connector)
setConnector
in interface UnifiedInvokerMBean
connector
- protected void createService() throws Exception
createService
in class org.jboss.system.ServiceMBeanSupport
Exception
protected void startService() throws Exception
startService
in class org.jboss.system.ServiceMBeanSupport
Exception
protected void jmxBind()
public void stopService() throws Exception
stopService
in class org.jboss.system.ServiceMBeanSupport
Exception
public String getName()
getName
in interface org.jboss.system.ServiceMBean
getName
in class org.jboss.system.ServiceMBeanSupport
public String getInvokerLocator()
getInvokerLocator
in interface UnifiedInvokerMBean
public Object invoke(org.jboss.remoting.InvocationRequest invocationReq) throws Throwable
invoke
in interface org.jboss.remoting.ServerInvocationHandler
invocationReq
-
Throwable
public void setMBeanServer(javax.management.MBeanServer server)
setMBeanServer
in interface org.jboss.remoting.ServerInvocationHandler
server
- public javax.management.MBeanServer getServer()
getServer
in class org.jboss.system.ServiceMBeanSupport
public void setInvoker(org.jboss.remoting.ServerInvoker invoker)
setInvoker
in interface org.jboss.remoting.ServerInvocationHandler
invoker
- protected org.jboss.remoting.ServerInvoker getInvoker()
public void addListener(org.jboss.remoting.callback.InvokerCallbackHandler callbackHandler)
addListener
in interface org.jboss.remoting.ServerInvocationHandler
callbackHandler
- public void removeListener(org.jboss.remoting.callback.InvokerCallbackHandler callbackHandler)
removeListener
in interface org.jboss.remoting.ServerInvocationHandler
callbackHandler
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |