|
||||||||||
| 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. |
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. |
Object |
invoke(org.jboss.remoting.InvocationRequest invocationReq)
Implementation of the server invoker handler interface. |
void |
removeListener(org.jboss.remoting.callback.InvokerCallbackHandler callbackHandler)
Removes the callback handler that was listening for callbacks from the server invoker handler. |
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. |
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, createService, 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 UnifiedInvokerMBeanisStrict - public boolean getStrictRMIException()
getStrictRMIException in interface UnifiedInvokerMBean
protected void startService()
throws Exception
startService in class org.jboss.system.ServiceMBeanSupportException
public void stopService()
throws Exception
stopService in class org.jboss.system.ServiceMBeanSupportExceptionpublic String getName()
getName in interface org.jboss.system.ServiceMBeangetName in class org.jboss.system.ServiceMBeanSupportpublic String getInvokerLocator()
getInvokerLocator in interface UnifiedInvokerMBean
public Object invoke(org.jboss.remoting.InvocationRequest invocationReq)
throws Throwable
invoke in interface org.jboss.remoting.ServerInvocationHandlerinvocationReq -
Throwablepublic void setMBeanServer(javax.management.MBeanServer server)
setMBeanServer in interface org.jboss.remoting.ServerInvocationHandlerserver - public javax.management.MBeanServer getServer()
getServer in class org.jboss.system.ServiceMBeanSupportpublic void setInvoker(org.jboss.remoting.ServerInvoker invoker)
setInvoker in interface org.jboss.remoting.ServerInvocationHandlerinvoker - public void addListener(org.jboss.remoting.callback.InvokerCallbackHandler callbackHandler)
addListener in interface org.jboss.remoting.ServerInvocationHandlercallbackHandler - public void removeListener(org.jboss.remoting.callback.InvokerCallbackHandler callbackHandler)
removeListener in interface org.jboss.remoting.ServerInvocationHandlercallbackHandler -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||