Constructor and Description |
---|
TransporterServer(InvokerLocator locator,
Object target,
String subsystem)
Creates a remoting server using the provided locator and subsytem and
creating a TransporterHandler which takes the specified target object.
|
Modifier and Type | Method and Description |
---|---|
void |
addHandler(Object target,
String proxyclassname)
Adds a transporter handler to receive remote invocations on the target
object passed.
|
static TransporterServer |
createTransporterServer(InvokerLocator locator,
Object target)
Creates a remoting server based on given locator.
|
static TransporterServer |
createTransporterServer(InvokerLocator locator,
Object target,
String subsystem)
Creates a remoting server based on given locator.
|
static TransporterServer |
createTransporterServer(InvokerLocator locator,
Object target,
String subsystem,
boolean isClustered)
Creates a remoting server based on given locator.
|
static TransporterServer |
createTransporterServer(String locatorURI,
Object target)
Creates a remoting server based on given locator.
|
static TransporterServer |
createTransporterServer(String locatorURI,
Object target,
String subsystem)
Creates a remoting server based on given locator.
|
static TransporterServer |
createTransporterServer(String locatorURI,
Object target,
String subsystem,
boolean isClustered)
Creates a remoting server based on given locator.
|
Connector |
getConnector() |
String |
getLocatorURI() |
void |
start()
Starts the remoting server.
|
void |
stop()
Stops the remoting server.
|
public TransporterServer(InvokerLocator locator, Object target, String subsystem) throws Exception
locator
- target
- subsystem
- Exception
public Connector getConnector()
public void addHandler(Object target, String proxyclassname) throws Exception
target
- the target implementation to call onproxyclassname
- the fully qualified classname of the interface that clients
will use to call onException
public String getLocatorURI()
public void start() throws Exception
Exception
public void stop()
public static TransporterServer createTransporterServer(InvokerLocator locator, Object target, String subsystem, boolean isClustered) throws Exception
locator
- -
specifies what transport, host and port binding, etc. to use
by the remoting server.target
- -
the target POJO to receive the method call upon getting remote
invocation requests.subsystem
- -
the name under which to register the handler within the
remoting server. This must be the fully qualified name of
the interface for clients to use a the remote proxy to the
target POJO. Otherwise, clustering will not work, as this is
the value used to identifiy remote POJOs on the client side.
If not clustered, this is not as critical, and simply use the
fully qualified class name of the POJO if desired.isClustered
- -
true indicates that would like this server to be considered
available for failover from clients calling on the same
interface as exposed by the subsystem value. False will only
allow those client that explicitly targeting this server to
make calls on it.Exception
public static TransporterServer createTransporterServer(String locatorURI, Object target, String subsystem, boolean isClustered) throws Exception
locatorURI
- -
specifies what transport, host and port binding, etc. to use
by the remoting server.target
- -
the target POJO to receive the method call upon getting remote
invocation requests.subsystem
- -
the name under which to register the handler within the
remoting server. This must be the fully qualified name of
the interface for clients to use a the remote proxy to the
target POJO. Otherwise, clustering will not work, as this is
the value used to identifiy remote POJOs on the client side.
If not clustered, this is not as critical, and simply use the
fully qualified class name of the POJO if desired.isClustered
- -
true indicates that would like this server to be considered
available for failover from clients calling on the same
interface as exposed by the subsystem value. False will only
allow those client that explicitly targeting this server to
make calls on it.Exception
public static TransporterServer createTransporterServer(InvokerLocator locator, Object target, String subsystem) throws Exception
locator
- -
specifies what transport, host and port binding, etc. to use
by the remoting server.target
- -
the target POJO to receive the method call upon getting remote
invocation requests.subsystem
- -
the name under which to register the handler within the
remoting server. Can simply use the fully qualified class name
of the POJO if desired.Exception
public static TransporterServer createTransporterServer(String locatorURI, Object target, String subsystem) throws Exception
locatorURI
- -
specifies what transport, host and port binding, etc. to use
by the remoting server.target
- -
the target POJO to receive the method call upon getting remote
invocation requests.subsystem
- -
the name under which to register the handler within the
remoting server. Can simply use the fully qualified class name
of the POJO if desired.Exception
public static TransporterServer createTransporterServer(InvokerLocator locator, Object target) throws Exception
locator
- -
specifies what transport, host and port binding, etc. to use
by the remoting server.target
- -
the target POJO to receive the method call upon getting remote
invocation requests.Exception
public static TransporterServer createTransporterServer(String locatorURI, Object target) throws Exception
locatorURI
- -
specifies what transport, host and port binding, etc. to use
by the remoting server.target
- -
the target POJO to receive the method call upon getting remote
invocation requests.Exception
Copyright © 2013 Nuxeo SA. All Rights Reserved.