|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface NodeMainExecutor
Executes NodeMains and allows shutting down individual
NodeMains or all currently running NodeMains as a group.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
java.util.concurrent.ScheduledExecutorService getScheduledExecutorService()
ScheduledExecutorService that this
NodeMainExecutor uses
void 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 null
void 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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||