public class TaskInformation extends Object implements Serializable
| Constructor and Description |
|---|
TaskInformation(String id,
String jobId,
long cpuTime,
long elapsedTime,
boolean error)
Initialize this event object with the specified task.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getCpuTime()
Get the cpu time taken by the task.
|
long |
getElapsedTime()
Get the wall clock time taken by the task.
|
String |
getId()
Get the task id.
|
String |
getJobId()
Get the id of the job this task belongs to.
|
long |
getTimestamp()
Get the timestamp for the creation of this event.
|
boolean |
hasError()
Determines whether the task had an exception.
|
public TaskInformation(String id, String jobId, long cpuTime, long elapsedTime, boolean error)
id - the task id.jobId - the id of the job this task belongs to.cpuTime - the cpu time taken by the task.elapsedTime - the wall clock time taken by the task.error - determines whether the task had an exception.public String getId()
public String getJobId()
public long getCpuTime()
public long getElapsedTime()
public boolean hasError()
public long getTimestamp()
Copyright © 2005-2012 JPPF Team.