public class ExecutorInfo
extends java.lang.Object
| Constructor and Description |
|---|
ExecutorInfo(java.lang.String name,
java.lang.String host,
java.lang.String os,
java.lang.String machine,
java.lang.String processor,
java.lang.String release)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
addCommanderId(int commanderId,
int executorId)
Store a commander id, executor id pair in Map, both of which
correspond to the same start-process or start-thread action.
|
(package private) void |
clearIds()
Clear everything in the Map.
|
(package private) java.util.Collection<java.lang.Integer> |
getCommanderIds()
Get all the commander ids.
|
(package private) java.lang.Integer |
getExecutorId(int commanderId)
Get the executor id corresponding to the given commander id.
|
java.lang.String |
getHost()
Get the name of the host the Executor is running on.
|
java.lang.String |
getMachine()
Get the machine type the Executor is running on.
|
java.lang.String |
getName()
Get the name of the Executor.
|
java.lang.String |
getOS()
Get the operating system the Executor is running on.
|
java.lang.String |
getOSRelease()
Get the operating system release the Executor is running on.
|
java.lang.String |
getProcessor()
Get the processor the Executor is running on.
|
(package private) java.lang.Integer |
removeCommanderId(int commanderId)
Remove a commander id / executor id pair from Map.
|
public ExecutorInfo(java.lang.String name,
java.lang.String host,
java.lang.String os,
java.lang.String machine,
java.lang.String processor,
java.lang.String release)
name - Executor name.host - host Executor running on.os - os Executor running on.machine - machine type Executor running on.processor - processor type Executor running on.release - os release Executor running on.public java.lang.String getName()
public java.lang.String getHost()
public java.lang.String getOS()
public java.lang.String getMachine()
public java.lang.String getProcessor()
public java.lang.String getOSRelease()
void addCommanderId(int commanderId,
int executorId)
commanderId - commander's id for start process or start thread actionexecutorId - executor's id for same actionjava.lang.Integer removeCommanderId(int commanderId)
commanderId - commander id to remove from Map.java.lang.Integer getExecutorId(int commanderId)
commanderId - commander idjava.util.Collection<java.lang.Integer> getCommanderIds()
void clearIds()