|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.remoting.AbstractInvoker
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 Map |
callbackHandlers
|
protected 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 |
classbyteloader, localServerLocator, locator, log |
Constructor Summary | |
ServerInvoker(InvokerLocator locator)
|
|
ServerInvoker(InvokerLocator locator,
Map configuration)
|
Method Summary | |
ServerInvocationHandler |
addInvocationHandler(String subsystem,
ServerInvocationHandler handler)
add a server invocation handler for a particular subsystem. |
void |
destroy()
destory the invoker permanently |
Map |
getConfiguration()
Gets teh server invoker's transport specific configuration. |
String |
getDataType()
Will get the data type for the marshaller factory so know which marshaller to get to marshal the data. |
protected abstract String |
getDefaultDataType()
|
ServerInvocationHandler |
getInvocationHandler(String subsystem)
get a ServerInvocationHandler for a given subsystem type |
ServerInvocationHandler[] |
getInvocationHandlers()
return an array of the server invocation handlers |
String |
getMBeanObjectName()
Returns the String for the object name to be used for the invoker. |
javax.management.MBeanServer |
getMBeanServer()
|
String[] |
getSupportedSubsystems()
return array of keys for each subsystem this invoker can handle |
boolean |
hasInvocationHandler(String subsystem)
return true if a server invocation handler has been registered for this subsystem |
Object |
invoke(InvocationRequest invocation)
Processes invocation request depending on the invocation type (internal, name based, oneway, etc). |
Object |
invoke(Object invoke)
|
boolean |
isStarted()
return true if the server invoker is started, false if not |
protected void |
postProcess(String sessionId,
Object param,
Map payload,
InvokerLocator locator)
called after an invocation |
protected void |
preProcess(String sessionId,
ClassBytes arg,
Map payload,
InvokerLocator locator)
called prior to an invocation |
ServerInvocationHandler |
removeInvocationHandler(String subsystem)
remove a subsystem invocation handler |
void |
setConfigration(Map configuration)
Sets the server invoker's transport specific configuration. |
void |
setMBeanServer(javax.management.MBeanServer 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 |
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 |
isTransportBiDirectional |
Field Detail |
public static final int MAX_NUM_ONEWAY_THREADS
protected Map handlers
protected Map callbackHandlers
Constructor Detail |
public ServerInvoker(InvokerLocator locator)
public ServerInvoker(InvokerLocator locator, Map configuration)
Method Detail |
public javax.management.MBeanServer getMBeanServer()
public void setMBeanServer(javax.management.MBeanServer server)
public boolean hasInvocationHandler(String subsystem)
subsystem
-
public String[] getSupportedSubsystems()
public ServerInvocationHandler[] getInvocationHandlers()
public ServerInvocationHandler addInvocationHandler(String subsystem, ServerInvocationHandler handler)
subsystem
- handler
-
public ServerInvocationHandler removeInvocationHandler(String subsystem)
subsystem
- public ServerInvocationHandler getInvocationHandler(String subsystem)
subsystem
-
public Object invoke(Object invoke) throws IOException
IOException
public String getDataType()
getDataType
in interface ServerInvokerMBean
protected abstract String getDefaultDataType()
public Object invoke(InvocationRequest invocation) throws Throwable
invocation
-
Throwable
protected void preProcess(String sessionId, ClassBytes arg, Map payload, InvokerLocator locator)
sessionId
- payload
- locator
- protected void postProcess(String sessionId, Object param, Map payload, InvokerLocator locator)
sessionId
- payload
- locator
- public void start() throws IOException
start
in interface ServerInvokerMBean
IOException
public boolean isStarted()
isStarted
in interface ServerInvokerMBean
public void stop()
stop
in interface ServerInvokerMBean
public void destroy()
destroy
in interface ServerInvokerMBean
public void setConfigration(Map configuration)
setConfigration
in interface ServerInvokerMBean
configuration
- public Map getConfiguration()
getConfiguration
in interface ServerInvokerMBean
public String getMBeanObjectName()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |