|
|||||||||||
| 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
Indicated the max number of threads used within oneway thread pool. |
| Fields inherited from class org.jboss.remoting.AbstractInvoker |
classbyteloader, localServerLocator, locator, log, logExtra |
| Constructor Summary | |
ServerInvoker(InvokerLocator locator)
|
|
| Method Summary | |
void |
addInvocationHandler(String subsystem,
ServerInvocationHandler handler)
add a server invocation handler for a particular subsystem. |
ServerInvocationHandler |
getInvocationHandler(String subsystem)
get a ServerInvocationHandler for a given subsystem type |
ServerInvocationHandler[] |
getInvocationHandlers()
return an array of the server invocation handlers |
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 |
byte[] |
invoke(byte[] buf)
called by the transport to handle unmarshalling, invocation, and re-marshalling the result back to the client |
Object |
invoke(InvocationRequest invocation)
Processes invocation request depending on the invocation type (internal, name based, oneway, etc). |
boolean |
isStarted()
return true if the server invoker is started, false if not |
abstract boolean |
isTransportBiDirectional()
returns true if the transport is bi-directional in nature, for example, SOAP in unidirectional and SOCKETs are bi-directional (unless behind a firewall for example). |
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 |
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 |
addClass, getClassBytes, getClientLocator, getLocator, loadClass, read, setClassLoader, setClientLocator, unmarshal |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int MAX_NUM_ONEWAY_THREADS
protected Map handlers
protected Map callbackHandlers
| Constructor Detail |
public ServerInvoker(InvokerLocator locator)
| Method Detail |
public boolean hasInvocationHandler(String subsystem)
subsystem -
public String[] getSupportedSubsystems()
public ServerInvocationHandler[] getInvocationHandlers()
public void addInvocationHandler(String subsystem,
ServerInvocationHandler handler)
subsystem - handler - public ServerInvocationHandler removeInvocationHandler(String subsystem)
subsystem - public ServerInvocationHandler getInvocationHandler(String subsystem)
subsystem -
public byte[] invoke(byte[] buf)
throws IOException
buf -
IOException
public Object invoke(InvocationRequest invocation)
throws Throwable
invocation -
Throwablepublic abstract boolean isTransportBiDirectional()
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
IOExceptionpublic boolean isStarted()
public void stop()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||