|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.grid.jgdi.monitoring.TaskSummaryImpl
public class TaskSummaryImpl
Default implementation of the TaskSummary
interface
Constructor Summary | |
---|---|
TaskSummaryImpl()
Creates a new instance of TaskSummary |
Method Summary | |
---|---|
double |
getCpuUsage()
Get the cpu usage of the task. |
int |
getExitStatus()
Get the exit status of the task. |
double |
getIoUsage()
Get the io usage of the task. |
double |
getMemUsage()
Get the mem usage of the task. |
java.lang.String |
getState()
Get the state of the task |
java.lang.String |
getTaskId()
Get the task id. |
boolean |
hasCpuUsage()
Determine if the task has cpu usage |
boolean |
hasExitStatus()
Determine if the task has an exit status. |
boolean |
hasIoUsage()
Determine if the task has io usage |
boolean |
hasMemUsage()
Determine if the task has mem usage |
boolean |
isRunning()
Determine if the task is running |
void |
setCpuUsage(double cpuUsage)
Set the cpu usage of the task. |
void |
setExitStatus(int exitStatus)
Set the exit status of the task |
void |
setIoUsage(double ioUsage)
Set the io usage of the task. |
void |
setMemUsage(double memUsage)
Set the mem usage of the task. |
void |
setRunning(boolean isRunning)
Set the running flag of the task |
void |
setState(java.lang.String state)
Set the state of the task |
void |
setTaskId(java.lang.String taskId)
Set the task id |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TaskSummaryImpl()
Method Detail |
---|
public java.lang.String getTaskId()
getTaskId
in interface TaskSummary
public void setTaskId(java.lang.String taskId)
taskId
- the task idpublic java.lang.String getState()
getState
in interface TaskSummary
public void setState(java.lang.String state)
state
- state of the taskpublic boolean hasCpuUsage()
hasCpuUsage
in interface TaskSummary
true
if the task has cpu usagepublic double getCpuUsage()
hasCpuUsage
returns true.
getCpuUsage
in interface TaskSummary
public void setCpuUsage(double cpuUsage)
cpuUsage
- the cpu usagepublic boolean hasMemUsage()
hasMemUsage
in interface TaskSummary
true
if the task has mem usagepublic double getMemUsage()
hasMemUsage
returns true.
getMemUsage
in interface TaskSummary
public void setMemUsage(double memUsage)
memUsage
- the mem usagepublic boolean hasIoUsage()
hasIoUsage
in interface TaskSummary
true
if the task has io usagepublic double getIoUsage()
hasIoUsage
returns true.
getIoUsage
in interface TaskSummary
public void setIoUsage(double ioUsage)
ioUsage
- the io usagepublic boolean isRunning()
isRunning
in interface TaskSummary
true
if task is runningpublic void setRunning(boolean isRunning)
isRunning
- the running flagpublic boolean hasExitStatus()
hasExitStatus
in interface TaskSummary
true
if the task has an exit statuspublic int getExitStatus()
hasExitStatus
returns true
.
getExitStatus
in interface TaskSummary
public void setExitStatus(int exitStatus)
exitStatus
- the exit status
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |