Server.ServerStateActive, Server.ServerStateInactive
Constructor and Description |
---|
RemoteServer(Scope scope)
Create a new RemoteServer object that provides its methods under the
scope @a scope.
|
RemoteServer(Scope scope,
double timeout)
Create a new RemoteServer object that provides its methods under the
scope @a scope.
|
RemoteServer(java.lang.String scope)
Create a new RemoteServer object that provides its methods under the
scope @a scope.
|
RemoteServer(java.lang.String scope,
double timeout)
Create a new RemoteServer object that provides its methods under the
scope @a scope.
|
Modifier and Type | Method and Description |
---|---|
protected <U,T> AbstractRemoteMethod<?,?> |
addMethod(java.lang.String name,
boolean isEvent) |
Event |
call(java.lang.String name,
Event event) |
<U,T> U |
call(java.lang.String name,
T data)
Blocking call directly returning the data or throwing an
exception upon timeout, interruption or failure.
|
Future<Event> |
callAsync(java.lang.String name,
Event event) |
<T,U> Future<T> |
callAsync(java.lang.String name,
U data)
Async call returning an rsb.patterns.Future object
|
double |
getTimeout() |
activate, deactivate, getMethods, isActive
getId, getRouter, getScope, getTransportFactory
public RemoteServer(Scope scope, double timeout)
scope
- The common super-scope under which the methods of the remote
created server are provided.timeout
- The amount of seconds methods calls should wait for their
replies to arrive before failing.public RemoteServer(java.lang.String scope, double timeout)
scope
- The common super-scope under which the methods of the remote
created server are provided.timeout
- The amount of seconds methods calls should wait for their
replies to arrive before failing.public RemoteServer(Scope scope)
scope
- The common super-scope under which the methods of the remote
created server are provided.public RemoteServer(java.lang.String scope)
scope
- The common super-scope under which the methods of the remote
created server are provided.public double getTimeout()
public Future<Event> callAsync(java.lang.String name, Event event) throws RSBException
RSBException
public <T,U> Future<T> callAsync(java.lang.String name, U data) throws RSBException
name
- data
- RSBException
public Event call(java.lang.String name, Event event) throws RSBException
RSBException
public <U,T> U call(java.lang.String name, T data) throws RSBException
name
- data
- RSBException
protected <U,T> AbstractRemoteMethod<?,?> addMethod(java.lang.String name, boolean isEvent) throws InitializeException
InitializeException