|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.remoting.AbstractInvoker (src)
org.jboss.remoting.ServerInvoker
ServerInvoker is the server-side part of a remote Invoker. The ServerInvoker implementation is responsible for calling transport, depending on how the protocol receives the incoming data.
Field Summary | |
protected java.util.Map |
callbackHandlers
|
protected java.util.Map |
handlers
|
static int |
MAX_NUM_ONEWAY_THREADS
The max number of worker threads to be used in the pool for processing one way calls on the server side. |
Fields inherited from class org.jboss.remoting.AbstractInvoker (src) |
classbyteloader, localServerLocator, locator, log |
Constructor Summary | |
ServerInvoker(InvokerLocator (src) locator)
|
|
ServerInvoker(InvokerLocator (src) locator,
java.util.Map configuration)
|
Method Summary | |
void |
addInvocationHandler(java.lang.String subsystem,
ServerInvocationHandler (src) handler)
add a server invocation handler for a particular subsystem. |
void |
destroy()
destory the invoker permanently |
java.util.Map |
getConfiguration()
Gets teh server invoker's transport specific configuration. |
java.lang.String |
getDataType()
Will get the data type for the marshaller factory so know which marshaller to get to marshal the data. |
protected abstract java.lang.String |
getDefaultDataType()
|
ServerInvocationHandler (src) |
getInvocationHandler(java.lang.String subsystem)
get a ServerInvocationHandler for a given subsystem type |
ServerInvocationHandler (src) [] |
getInvocationHandlers()
return an array of the server invocation handlers |
abstract java.lang.String |
getMBeanObjectName()
Returns the String for the object name to be used for the invoker. |
MBeanServer (src) |
getMBeanServer()
|
java.lang.String[] |
getSupportedSubsystems()
return array of keys for each subsystem this invoker can handle |
boolean |
hasInvocationHandler(java.lang.String subsystem)
return true if a server invocation handler has been registered for this subsystem |
java.lang.Object |
invoke(InvocationRequest (src) invocation)
Processes invocation request depending on the invocation type (internal, name based, oneway, etc). |
java.lang.Object |
invoke(java.lang.Object invoke)
|
boolean |
isStarted()
return true if the server invoker is started, false if not |
protected void |
postProcess(java.lang.String sessionId,
java.lang.Object param,
java.util.Map payload,
InvokerLocator (src) locator)
called after an invocation |
protected void |
preProcess(java.lang.String sessionId,
ClassBytes (src) arg,
java.util.Map payload,
InvokerLocator (src) locator)
called prior to an invocation |
ServerInvocationHandler (src) |
removeInvocationHandler(java.lang.String subsystem)
remove a subsystem invocation handler |
void |
setConfigration(java.util.Map configuration)
Sets the server invoker's transport specific configuration. |
void |
setMBeanServer(MBeanServer (src) server)
|
void |
start()
subclasses should override to provide any specific start logic |
void |
stop()
subclasses should override to provide any specific stop logic |
Methods inherited from class org.jboss.remoting.AbstractInvoker (src) |
getClassLoader, getClientLocator, getLocator, setClassLoader, setClientLocator |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jboss.remoting.ServerInvokerMBean (src) |
isTransportBiDirectional |
Field Detail |
public static final int MAX_NUM_ONEWAY_THREADS
protected java.util.Map handlers
protected java.util.Map callbackHandlers
Constructor Detail |
public ServerInvoker(InvokerLocator (src) locator)
public ServerInvoker(InvokerLocator (src) locator, java.util.Map configuration)
Method Detail |
public MBeanServer (src) getMBeanServer()
public void setMBeanServer(MBeanServer (src) server)
public boolean hasInvocationHandler(java.lang.String subsystem)
subsystem
-
public java.lang.String[] getSupportedSubsystems()
public ServerInvocationHandler (src) [] getInvocationHandlers()
public void addInvocationHandler(java.lang.String subsystem, ServerInvocationHandler (src) handler)
subsystem
- handler
- public ServerInvocationHandler (src) removeInvocationHandler(java.lang.String subsystem)
subsystem
- public ServerInvocationHandler (src) getInvocationHandler(java.lang.String subsystem)
subsystem
-
public java.lang.Object invoke(java.lang.Object invoke) throws java.io.IOException
java.io.IOException
public java.lang.String getDataType()
getDataType
in interface ServerInvokerMBean (src)
protected abstract java.lang.String getDefaultDataType()
public java.lang.Object invoke(InvocationRequest (src) invocation) throws java.lang.Throwable
invocation
-
java.lang.Throwable
protected void preProcess(java.lang.String sessionId, ClassBytes (src) arg, java.util.Map payload, InvokerLocator (src) locator)
sessionId
- payload
- locator
- protected void postProcess(java.lang.String sessionId, java.lang.Object param, java.util.Map payload, InvokerLocator (src) locator)
sessionId
- payload
- locator
- public void start() throws java.io.IOException
start
in interface ServerInvokerMBean (src)
java.io.IOException
public boolean isStarted()
isStarted
in interface ServerInvokerMBean (src)
public void stop()
stop
in interface ServerInvokerMBean (src)
public void destroy()
destroy
in interface ServerInvokerMBean (src)
public void setConfigration(java.util.Map configuration)
setConfigration
in interface ServerInvokerMBean (src)
configuration
- public java.util.Map getConfiguration()
getConfiguration
in interface ServerInvokerMBean (src)
public abstract java.lang.String getMBeanObjectName()
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |