|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.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 TaskSummarypublic void setTaskId(java.lang.String taskId)
taskId - the task idpublic java.lang.String getState()
getState in interface TaskSummarypublic void setState(java.lang.String state)
state - state of the taskpublic boolean hasCpuUsage()
hasCpuUsage in interface TaskSummarytrue if the task has cpu usagepublic double getCpuUsage()
hasCpuUsage returns true.
getCpuUsage in interface TaskSummarypublic void setCpuUsage(double cpuUsage)
cpuUsage - the cpu usagepublic boolean hasMemUsage()
hasMemUsage in interface TaskSummarytrue if the task has mem usagepublic double getMemUsage()
hasMemUsage returns true.
getMemUsage in interface TaskSummarypublic void setMemUsage(double memUsage)
memUsage - the mem usagepublic boolean hasIoUsage()
hasIoUsage in interface TaskSummarytrue if the task has io usagepublic double getIoUsage()
hasIoUsage returns true.
getIoUsage in interface TaskSummarypublic void setIoUsage(double ioUsage)
ioUsage - the io usagepublic boolean isRunning()
isRunning in interface TaskSummarytrue if task is runningpublic void setRunning(boolean isRunning)
isRunning - the running flagpublic boolean hasExitStatus()
hasExitStatus in interface TaskSummarytrue if the task has an exit statuspublic int getExitStatus()
hasExitStatus returns true.
getExitStatus in interface TaskSummarypublic void setExitStatus(int exitStatus)
exitStatus - the exit status
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||