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 AddressAwareMessage
address
- The address.CommunicationException
- If the address is not valid for this message type.public WorkerAddress getProcessAddress()
getProcessAddress
in interface ProcessReport
public WorkerIdentity getWorkerIdentity()
getWorkerIdentity
in interface WorkerProcessReport
public ProcessReport.State getState()
getState
in interface ProcessReport
public short getNumberOfRunningThreads()
getNumberOfRunningThreads
in interface WorkerProcessReport
public short getMaximumNumberOfThreads()
getMaximumNumberOfThreads
in interface WorkerProcessReport
Copyright © 2000-2014. All Rights Reserved.