public final class WorkerProcessReportMessage extends Object implements AddressAwareMessage, WorkerProcessReport
ProcessReport.State, ProcessReport.StateThenNameThenNumberComparator| Constructor and Description |
|---|
WorkerProcessReportMessage(ProcessReport.State finished,
short runningThreads,
short totalThreads)
Creates a new
WorkerProcessReportMessage instance. |
| Modifier and Type | Method and Description |
|---|---|
short |
getMaximumNumberOfThreads()
Accessor for the maximum number of threads for the process.
|
short |
getNumberOfRunningThreads()
Accessor for the number of running threads for the process.
|
WorkerAddress |
getProcessAddress()
Accessor for the process identity.
|
ProcessReport.State |
getState()
Accessor for the process state.
|
WorkerIdentity |
getWorkerIdentity()
Accessor for the process identity.
|
void |
setAddress(Address address)
Set the origin address.
|
public WorkerProcessReportMessage(ProcessReport.State finished, short runningThreads, short totalThreads)
WorkerProcessReportMessage instance.finished - The process state. See
ProcessReport.totalThreads - The total number of threads.runningThreads - The number of threads that are still running.public void setAddress(Address address) throws CommunicationException
setAddress in interface AddressAwareMessageaddress - The address.CommunicationException - If the address is not valid for this message type.public WorkerAddress getProcessAddress()
getProcessAddress in interface ProcessReportpublic WorkerIdentity getWorkerIdentity()
getWorkerIdentity in interface WorkerProcessReportpublic ProcessReport.State getState()
getState in interface ProcessReportpublic short getNumberOfRunningThreads()
getNumberOfRunningThreads in interface WorkerProcessReportpublic short getMaximumNumberOfThreads()
getMaximumNumberOfThreads in interface WorkerProcessReportCopyright © 2000-2014. All Rights Reserved.