public interface NodeMainExecutor
| Modifier and Type | Method and Description | 
|---|---|
void | 
execute(NodeMain nodeMain,
       NodeConfiguration nodeConfiguration)
Executes the supplied  
NodeMain using the supplied
 NodeConfiguration. | 
void | 
execute(NodeMain nodeMain,
       NodeConfiguration nodeConfiguration,
       java.util.Collection<NodeListener> nodeListeners)
Executes the supplied  
NodeMain using the supplied
 NodeConfiguration. | 
java.util.concurrent.ScheduledExecutorService | 
getScheduledExecutorService()  | 
void | 
shutdown()
Shutdown all started  
Nodes. | 
void | 
shutdownNodeMain(NodeMain nodeMain)
Shuts down the supplied  
NodeMain (i.e. | 
java.util.concurrent.ScheduledExecutorService getScheduledExecutorService()
ScheduledExecutorService that this
         NodeMainExecutor usesvoid execute(NodeMain nodeMain, NodeConfiguration nodeConfiguration, java.util.Collection<NodeListener> nodeListeners)
NodeMain using the supplied
 NodeConfiguration.nodeMain - the NodeMain to executenodeConfiguration - the NodeConfiguration that will be used to create the
          NodenodeListeners - a Collection of NodeListeners to be added to the
          Node before it starts, can be nullvoid execute(NodeMain nodeMain, NodeConfiguration nodeConfiguration)
NodeMain using the supplied
 NodeConfiguration.nodeMain - the NodeMain to executenodeConfiguration - the NodeConfiguration that will be used to create the
          Nodevoid shutdownNodeMain(NodeMain nodeMain)
NodeMain (i.e.
 NodeListener.onShutdown(Node) will be called). This does not
 necessarily shut down the Node that is associated with the
 NodeMain.
 
 
 This has no effect if the NodeMain has not started.
nodeMain - the NodeMain to shutdownvoid shutdown()
Nodes. This does not shut down the supplied
 ExecutorService.