|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.remoting.Client
Client is a convience method for invoking remote methods for a given subsystem
Field Summary | |
static int |
MAX_NUM_ONEWAY_THREADS
Specifies the number of work threads in the pool for executing one way invocations on the client. |
static String |
RAW
|
Constructor Summary | |
Client(ClassLoader cl,
ClientInvoker invoker,
String subsystem)
|
|
Client(ClassLoader cl,
InvokerLocator locator,
String subsystem)
|
|
Client(InvokerLocator locator)
|
|
Client(InvokerLocator locator,
String subsystem)
|
Method Summary | |
void |
addListener(InvokerCallbackHandler callbackHandler)
Adds the specified handler as a callback listener for pull (sync) callbacks. |
void |
addListener(InvokerCallbackHandler callbackHandler,
InvokerLocator clientLocator)
Adds the specified handler as a callback listener for push (async) callbacks. |
void |
addListener(InvokerCallbackHandler callbackHandler,
InvokerLocator clientLocator,
Object callbackHandlerObject)
Adds the specified handler as a callback listener for push (async) callbacks. |
void |
connect()
|
void |
disconnect()
|
List |
getCallbacks()
|
ClientInvoker |
getInvoker()
|
String |
getSessionId()
|
String |
getSubsystem()
|
Object |
invoke(Object param)
Invokes the server invoker handler with the payload parameter passed. |
Object |
invoke(Object param,
Map metadata)
invoke the method remotely |
void |
invokeOneway(Object param,
Map sendPayload)
Same as calling invokeOneway(Object param, Map sendPayload, boolean clientSide) with clientSide param being false. |
void |
invokeOneway(Object param,
Map sendPayload,
boolean clientSide)
Will invoke a oneway call to server without a return object. |
boolean |
isConnected()
|
void |
removeListener(InvokerCallbackHandler callbackHandler)
Removes callback handler as a callback listener from the server (and client in the case that it was setup to receive async callbacks). |
void |
setInvoker(ClientInvoker invoker)
|
void |
setMarshaller(Marshaller marshaller)
|
void |
setSessionId(String sessionId)
This will set the session id used when making invocations on server invokers. |
void |
setSubsystem(String subsystem)
|
void |
setUnMarshaller(UnMarshaller unmarshaller)
|
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
public static final String RAW
Constructor Detail |
public Client(InvokerLocator locator) throws Exception
public Client(InvokerLocator locator, String subsystem) throws Exception
public Client(ClassLoader cl, InvokerLocator locator, String subsystem) throws Exception
public Client(ClassLoader cl, ClientInvoker invoker, String subsystem) throws Exception
Method Detail |
public void setSessionId(String sessionId)
sessionId
- public String getSessionId()
public boolean isConnected()
public void connect() throws Exception
Exception
public void disconnect()
public ClientInvoker getInvoker()
public void setInvoker(ClientInvoker invoker)
public String getSubsystem()
public void setSubsystem(String subsystem)
public Object invoke(Object param) throws Throwable
param
-
Throwable
public Object invoke(Object param, Map metadata) throws Throwable
param
- - payload for the server invoker handlermetadata
- - any extra metadata that may be needed by the transport (i.e. GET or POST if using
http invoker) or if need to pass along extra data to the server invoker handler.
Throwable
public void invokeOneway(Object param, Map sendPayload, boolean clientSide) throws Throwable
param
- sendPayload
- clientSide
-
Throwable
public void invokeOneway(Object param, Map sendPayload) throws Throwable
param
- sendPayload
-
Throwable
public void addListener(InvokerCallbackHandler callbackHandler) throws Throwable
callbackHandler
-
Throwable
public void addListener(InvokerCallbackHandler callbackHandler, InvokerLocator clientLocator) throws Throwable
callbackHandler
- clientLocator
-
Throwable
public void addListener(InvokerCallbackHandler callbackHandler, InvokerLocator clientLocator, Object callbackHandlerObject) throws Throwable
callbackHandler
- interface to call on with callbackclientLocator
- locator for callback server to callback oncallbackHandlerObject
- will be included in the callback object passed upon callback
Throwable
public void removeListener(InvokerCallbackHandler callbackHandler) throws Throwable
callbackHandler
-
Throwable
public List getCallbacks() throws Throwable
Throwable
public void setMarshaller(Marshaller marshaller)
public void setUnMarshaller(UnMarshaller unmarshaller)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |