public interface Node extends ComponentManager
| Modifier and Type | Interface and Description |
|---|---|
static class |
Node.NodeState |
| Modifier and Type | Method and Description |
|---|---|
NodeDetails |
getDetails() |
java.lang.String |
getName() |
Node.NodeState |
getState() |
boolean |
runCommand(java.lang.String... inArgs)
Pass a command to be executed by the node.
|
<T> ScheduledTask<T> |
runTask(ScheduledTask<T> inTask)
Run a task in this node's thread pool.
|
void |
startNode(java.lang.ThreadGroup inThreadGroup)
Start the node threads.
|
void |
stopNode()
Interrupt and stop node threads.
|
getComponent, registerComponent, unregisterComponentvoid startNode(java.lang.ThreadGroup inThreadGroup)
throws ComponentException,
java.lang.InterruptedException
inThreadGroup - - The thread group to start threads in. Null for current thread.ComponentExceptionjava.lang.InterruptedExceptionvoid stopNode()
java.lang.String getName()
NodeDetails getDetails()
Node.NodeState getState()
<T> ScheduledTask<T> runTask(ScheduledTask<T> inTask)
inTask - - The task to run.boolean runCommand(java.lang.String... inArgs)
throws java.lang.Exception
inArgs - - The command arguments.java.lang.Exception