public class TaskLifecycleMetricsReader extends Object implements TaskLifecycleMetrics
ABNORMAL_TERMINATION, ABORTED, COMPLETE, EXECUTING, INITIALIZED, INITIALIZING, NOT_SET, QUEUED_FOR_EXECUTION, READY, WAITING_FOR_DATA| Modifier | Constructor and Description |
|---|---|
protected |
TaskLifecycleMetricsReader(byte[] marshalledBytes) |
| Modifier and Type | Method and Description |
|---|---|
long |
getArrivalTime()
Retrieve the time at which the operation arrived at this node.
|
byte[] |
getBytes()
Create the serialized representation of this class.
|
long |
getCompletionTime()
Retrieve the time at which this task was completed
|
long |
getCPUBoundTime()
Retrieve the CPU-bound time of the computation.
|
int |
getExecutionStatus()
Retrieve the execution status associated with the operation.
|
String |
getInstanceIdentifier()
Retrieve the instance identifier of the operation that was encapsulated
within a Task.
|
int |
getNumberofIterationsSoFar()
Retrieve the number of iterations performed for the operation so far
|
long |
getStartTime()
Retrieve the time this operation was first launched
|
String |
getTaskCompletionInfo()
Retrieve information about the completion of a task.
|
long |
getTimeResidentInMemory()
Retrieve the time this operation spent residing in memory
|
String |
toString() |
protected TaskLifecycleMetricsReader(byte[] marshalledBytes)
throws IOException
IOExceptionpublic String getInstanceIdentifier()
TaskLifecycleMetricsgetInstanceIdentifier in interface TaskLifecycleMetricspublic long getArrivalTime()
TaskLifecycleMetricsgetArrivalTime in interface TaskLifecycleMetricspublic long getCPUBoundTime()
TaskLifecycleMetricsgetCPUBoundTime in interface TaskLifecycleMetricspublic long getCompletionTime()
TaskLifecycleMetricsgetCompletionTime in interface TaskLifecycleMetricspublic int getNumberofIterationsSoFar()
TaskLifecycleMetricsgetNumberofIterationsSoFar in interface TaskLifecycleMetricspublic long getStartTime()
TaskLifecycleMetricsgetStartTime in interface TaskLifecycleMetricspublic long getTimeResidentInMemory()
TaskLifecycleMetricsgetTimeResidentInMemory in interface TaskLifecycleMetricspublic int getExecutionStatus()
TaskLifecycleMetricsgetExecutionStatus in interface TaskLifecycleMetricspublic String getTaskCompletionInfo()
TaskLifecycleMetricsgetTaskCompletionInfo in interface TaskLifecycleMetricspublic byte[] getBytes()
throws IOException
TaskLifecycleMetricsgetBytes in interface TaskLifecycleMetricsIOExceptionCopyright © 2015. All rights reserved.