public class TransporterClient extends Object implements InvocationHandler, Serializable
bs@nuxeo.com - Fixed bugs related to client subsystem initialization
Modifier and Type | Method and Description |
---|---|
static Object |
createTransporterClient(InvokerLocator locator,
Class targetClass)
Creates a remote proxy to a POJO on a remote server.
|
static Object |
createTransporterClient(String locatorURI,
Class targetClass)
Creates a remote proxy to a POJO on a remote server.
|
static Object |
createTransporterClient(String locatorURI,
Class targetClass,
boolean clustered)
Creates a remote proxy to a POJO on a remote server.
|
static void |
destroyTransporterClient(Object transporterClient)
Needs to be called by user when no longer need to make calls on remote
POJO.
|
Object |
invoke(Object proxy,
Method method,
Object[] args)
The method called when anyone calls on the dynamic proxy returned by
getProcessor().
|
public static Object createTransporterClient(String locatorURI, Class targetClass, boolean clustered) throws Exception
locatorURI
- the remoting locator URI to the target server where the target
POJO exists.targetClass
- the interface class of the POJO will be calling upon.clustered
- true will cause the transporter to look for other remoting
serves that have the POJO running and include it in the
client's target list. If a call on first target fails, will
seamlessly failover to one of the other discovered targets.Exception
public static Object createTransporterClient(String locatorURI, Class targetClass) throws Exception
locatorURI
- the remoting locator URI to the target server where the target
POJO existstargetClass
- the interface class of the POJO will be calling upon.Exception
public static Object createTransporterClient(InvokerLocator locator, Class targetClass) throws Exception
locator
- the remoting locator to the target server where the target
POJO existstargetClass
- the interface class of the POJO will be calling upon.Exception
public static void destroyTransporterClient(Object transporterClient)
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke
in interface InvocationHandler
Throwable
Copyright © 2013 Nuxeo SA. All Rights Reserved.