public class ParameterServerNode extends Object implements AutoCloseable
| Constructor and Description |
|---|
ParameterServerNode(io.aeron.driver.MediaDriver mediaDriver)
Pass in the media driver used for communication
and a defualt status port of 9000
|
ParameterServerNode(io.aeron.driver.MediaDriver mediaDriver,
int statusPort) |
ParameterServerNode(io.aeron.driver.MediaDriver mediaDriver,
int statusPort,
int numWorkers) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Stop the server
|
static void |
main(String[] args) |
void |
runMain(String[] args)
Run this node with the given args
These args are the same ones
that a
ParameterServerSubscriber takes |
boolean |
subscriberLaunched()
Returns true if all susbcribers in the
subscriber pool have been launched
|
public ParameterServerNode(io.aeron.driver.MediaDriver mediaDriver,
int statusPort)
mediaDriver - the media driver to sue for communicationstatusPort - the port for the server statuspublic ParameterServerNode(io.aeron.driver.MediaDriver mediaDriver,
int statusPort,
int numWorkers)
mediaDriver - the media driver to sue for communicationstatusPort - the port for the server statuspublic ParameterServerNode(io.aeron.driver.MediaDriver mediaDriver)
mediaDriver - public void runMain(String[] args)
ParameterServerSubscriber takesargs - the arguments for the ParameterServerSubscriberpublic boolean subscriberLaunched()
public void close()
throws Exception
close in interface AutoCloseableExceptionpublic static void main(String[] args)
Copyright © 2017. All rights reserved.