public final class RemoteDataflows extends LocalHost
| Modifier and Type | Field and Description |
|---|---|
private java.util.concurrent.ConcurrentMap<java.lang.String,DataflowBroadcast> |
publishedBroadcasts
Stores DataflowBroadcasts published in context of this instance of RemoteDataflows.
|
private java.util.concurrent.ConcurrentMap<java.lang.String,DataflowQueue<?>> |
publishedQueues
Stores DataflowQueues published in context of this instance of RemoteDataflows.
|
private java.util.concurrent.ConcurrentMap<java.lang.String,DataflowVariable<?>> |
publishedVariables
Stores DataflowVariables published in context of this instance of RemoteDataflows.
|
private java.util.concurrent.ConcurrentMap<java.lang.String,DataflowVariable<RemoteDataflowBroadcast>> |
remoteBroadcasts
Stores promises to remote instances of DataflowBroadcasts.
|
private java.util.concurrent.ConcurrentMap<java.lang.String,DataflowVariable<RemoteDataflowQueue<?>>> |
remoteQueues
Stores promises to remote instances of DataflowQueues.
|
private java.util.concurrent.ConcurrentMap<java.lang.String,DataflowVariable<DataflowVariable>> |
remoteVariables
Stores promises to remote instances of DataflowVariables.
|
remoteHostsid| Constructor and Description |
|---|
RemoteDataflows() |
| Modifier and Type | Method and Description |
|---|---|
static RemoteDataflows |
create()
Factory method for creating RemoteDataflows
|
<T> T |
get(java.lang.Class<T> klass,
java.lang.String name) |
Promise<RemoteDataflowQueue<?>> |
getDataflowQueue(java.lang.String host,
int port,
java.lang.String name)
Retrieves
DataflowQueue published under specified name on remote host. |
Promise<DataflowReadChannel> |
getReadChannel(java.lang.String host,
int port,
java.lang.String name)
Retrieves
DataflowReadChannel corresponding to
DataflowBroadcast published under given name on remote host. |
Promise<DataflowVariable> |
getVariable(java.lang.String host,
int port,
java.lang.String name)
Retrieves
DataflowVariable published under specified name on remote host. |
void |
publish(DataflowBroadcast broadcastStream,
java.lang.String name)
Publishes
DataflowBroadcast under given name. |
void |
publish(DataflowQueue<?> queue,
java.lang.String name)
Publishes
DataflowQueue under given name. |
void |
publish(DataflowVariable<?> variable,
java.lang.String name)
Publishes
DataflowVariable under given name. |
<T> void |
registerProxy(java.lang.Class<T> klass,
java.lang.String name,
T object) |
disconnect, getPromise, getSerialHost, onDisconnect, startServer, stopServeradd, finalizeHandle, get, getId, removeprivate final java.util.concurrent.ConcurrentMap<java.lang.String,DataflowVariable<?>> publishedVariables
private final java.util.concurrent.ConcurrentMap<java.lang.String,DataflowVariable<DataflowVariable>> remoteVariables
private final java.util.concurrent.ConcurrentMap<java.lang.String,DataflowBroadcast> publishedBroadcasts
private final java.util.concurrent.ConcurrentMap<java.lang.String,DataflowVariable<RemoteDataflowBroadcast>> remoteBroadcasts
private final java.util.concurrent.ConcurrentMap<java.lang.String,DataflowQueue<?>> publishedQueues
private final java.util.concurrent.ConcurrentMap<java.lang.String,DataflowVariable<RemoteDataflowQueue<?>>> remoteQueues
public void publish(DataflowVariable<?> variable, java.lang.String name)
DataflowVariable under given name.
It overrides previously published variable if the same name is given.variable - the variable to be publishedname - the name under which variable is publishedpublic Promise<DataflowVariable> getVariable(java.lang.String host, int port, java.lang.String name)
DataflowVariable published under specified name on remote host.host - the address of remote hostport - the the port of remote hostname - the name under which variable was publishedDataflowVariablepublic void publish(DataflowBroadcast broadcastStream, java.lang.String name)
DataflowBroadcast under given name.
It overrides previously published broadcast if the same name is given.broadcastStream - the stream to be publishedname - the name under which stream is publishedpublic Promise<DataflowReadChannel> getReadChannel(java.lang.String host, int port, java.lang.String name)
DataflowReadChannel corresponding to
DataflowBroadcast published under given name on remote host.host - the address of remote hostport - the port of remote hostname - the name under which broadcast is publishedDataflowReadChannelpublic void publish(DataflowQueue<?> queue, java.lang.String name)
DataflowQueue under given name.
It overrides previously published queue if the same name is given.queue - the queue to be publishedname - the name under which queue is publishedpublic Promise<RemoteDataflowQueue<?>> getDataflowQueue(java.lang.String host, int port, java.lang.String name)
DataflowQueue published under specified name on remote host.host - the address of remote hostport - the port of remote hostname - the name under which queue was publishedRemoteDataflowQueuepublic static RemoteDataflows create()
public <T> void registerProxy(java.lang.Class<T> klass,
java.lang.String name,
T object)
registerProxy in class LocalHost