public class ParameterServerSubscriber extends Object implements AutoCloseable
| Modifier and Type | Class and Description |
|---|---|
static class |
ParameterServerSubscriber.UpdateType
Update types are for
instantiating various kinds of update types
|
| Modifier and Type | Field and Description |
|---|---|
static String |
CUSTOM_UPDATE_TYPE
Specify a custom class as a jvm arg.
|
| Constructor and Description |
|---|
ParameterServerSubscriber(io.aeron.driver.MediaDriver mediaDriver)
Allow passing in a
media driver that already exists
|
| Modifier and Type | Method and Description |
|---|---|
SubscriberState |
asState()
Return the current
SubscriberState
of this subscriber |
void |
close() |
io.aeron.Aeron.Context |
getContext() |
org.nd4j.linalg.api.ndarray.INDArray |
getMasterArray()
Get the master ndarray from the
internal
NDArrayHolder |
static void |
main(String[] args) |
MasterConnectionInfo |
masterConnectionInfo()
When this is a master node,
it returns the connection url for this node,
it's slaves (if any exist) and the responder
connection url in the form of:
host:port:streamId
|
void |
run(String[] args) |
SlaveConnectionInfo |
slaveConnectionInfo()
When this is a slave node
it returns the connection url for this node
and the associated master connection urls in the form of:
host:port:streamId
|
boolean |
subscriberLaunched()
Returns true if the subscriber is launched
|
public static final String CUSTOM_UPDATE_TYPE
public ParameterServerSubscriber(io.aeron.driver.MediaDriver mediaDriver)
mediaDriver - public SubscriberState asState()
SubscriberState
of this subscriberpublic SlaveConnectionInfo slaveConnectionInfo()
public MasterConnectionInfo masterConnectionInfo()
public void run(String[] args)
args - public void close()
close in interface AutoCloseablepublic io.aeron.Aeron.Context getContext()
public org.nd4j.linalg.api.ndarray.INDArray getMasterArray()
NDArrayHolderpublic boolean subscriberLaunched()
public static void main(String[] args)
Copyright © 2021. All rights reserved.