public final class Task
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
int |
getHeapUse()
Returns heap use of given task.
|
java.lang.String |
getName()
Convenient method to return the name of the task.
|
TaskPriority |
getPriority()
Returns priority of given task, one of the pre-defined values
TaskPriority.TP_MAX , TaskPriority.TP_MIN , or
TaskPriority.TP_NORM . |
TaskStatus |
getStatus()
Returns task's current status.
|
Suite |
getSuite()
Returns suite information this task executed from.
|
boolean |
isSystemTask()
Retrieve information about whether a task is a system task or not.
|
public java.lang.String getName()
public TaskPriority getPriority()
TaskPriority.TP_MAX
, TaskPriority.TP_MIN
, or
TaskPriority.TP_NORM
.TaskPriority.TP_MAX
, TaskPriority.TP_MIN
, or
TaskPriority.TP_NORM
public int getHeapUse()
public TaskStatus getStatus()
TaskStatus.TS_STARTING
,
TaskStatus.TS_RUNNING
, TaskStatus.TS_EXITED_REGULAR
,
TaskStatus.TS_EXITED_FATAL
,
TaskStatus.TS_EXITED_TERMINATED
, or
TaskStatus.TS_START_FAILED
.public Suite getSuite()
Suite
this task belongs to.public boolean isSystemTask()
true
if the task is a system task,
false
otherwiseCopyright (c) 2013, Oracle and/or its affiliates. All Rights Reserved. Use of this specification is subject to license terms.