|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.grid.jgdi.monitoring.QueueInstanceSummaryImpl
public class QueueInstanceSummaryImpl
Constructor Summary | |
---|---|
QueueInstanceSummaryImpl()
Creates a new instance of QueueInstanceSummary |
Method Summary | |
---|---|
void |
addExplainMessage(java.lang.String message)
Add an explain message |
void |
addJob(JobSummary jobSummary)
Add a job. |
void |
addJobs(java.util.List<JobSummary> jobList)
Add all jobs from a list |
void |
addResource(java.lang.String dom,
java.lang.String name,
java.lang.String value)
Add a resource value to the queue instance |
java.lang.String |
getArch()
Get the architecture of the queue instance |
java.util.List |
getExplainMessageList()
Get the list of explain messages |
int |
getFreeSlots()
Deprecated. |
java.util.List<JobSummary> |
getJobList()
Get the list of jobs which are assigned to the queue instance |
java.lang.String |
getLoadAlarmReason()
Get the load alarm reason for the queue instance |
double |
getLoadAvg()
Get the load average of the queue instance. |
java.lang.String |
getLoadAvgStr()
Get the string representation of the load average |
java.lang.String |
getName()
Get the name of the queue instance |
java.lang.String |
getQueueType()
Get the type of the queue |
int |
getReservedSlots()
Get the number of reserved slots. |
java.util.Set<java.lang.String> |
getResourceDominanceSet()
Get avaialable dominances for the resource values |
java.util.Set<java.lang.String> |
getResourceNames(java.lang.String dom)
Get all resources names which have the dominane dom |
java.lang.String |
getResourceValue(java.lang.String dom,
java.lang.String name)
Get a resource value |
java.lang.String |
getState()
Get the state of the queue instance |
java.lang.String |
getSuspendAlarmReason()
Get the suspend alarm reason for the queue instance |
int |
getTotalSlots()
Get the number of total slots |
int |
getUsedSlots()
Get the number of used slots. |
boolean |
hasLoadValue()
Determine if the queue instance has a load value |
boolean |
isHasLoadValueFromObject()
Determine if the load value is derived from an object |
void |
setArch(java.lang.String arch)
Set the architecture of the queue instance |
void |
setHasLoadValue(boolean hasLoadValue)
Set the has load value flag |
void |
setHasLoadValueFromObject(boolean hasLoadValueFromObject)
Set the has load value from object flag |
void |
setLoadAlarmReason(java.lang.String loadAlarmReason)
Set the load alarm reason for the queue instance |
void |
setLoadAvg(double loadAvg)
Set the load average of the queue instance |
void |
setLoadAvgStr(java.lang.String loadAvgStr)
Set the string representation of the load average |
void |
setName(java.lang.String name)
Set the name of the queue instance |
void |
setQueueType(java.lang.String queueType)
Set the type of the queue |
void |
setReservedSlots(int reservedSlots)
Set the number of reserved slots |
void |
setState(java.lang.String state)
Set the state of a queue instance |
void |
setSuspendAlarmReason(java.lang.String suspendAlarmReason)
Set the suspend alarm reason for the queue instance |
void |
setTotalSlots(int totalSlots)
Set the number of total slots |
void |
setUsedSlots(int usedSlots)
Set the number of used slots |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QueueInstanceSummaryImpl()
Method Detail |
---|
public java.lang.String getName()
getName
in interface QueueInstanceSummary
public void setName(java.lang.String name)
name
- name of the queue instancepublic java.lang.String getQueueType()
getQueueType
in interface QueueInstanceSummary
public void setQueueType(java.lang.String queueType)
queueType
- type of the queuepublic int getReservedSlots()
getReservedSlots
in interface QueueInstanceSummary
public void setReservedSlots(int reservedSlots)
reservedSlots
- number of reserved slotspublic int getUsedSlots()
getUsedSlots
in interface QueueInstanceSummary
public void setUsedSlots(int usedSlots)
usedSlots
- number of used slots@Deprecated public int getFreeSlots()
getFreeSlots
in interface QueueInstanceSummary
public int getTotalSlots()
getTotalSlots
in interface QueueInstanceSummary
public void setTotalSlots(int totalSlots)
totalSlots
- number of total slotspublic java.lang.String getArch()
getArch
in interface QueueInstanceSummary
public void setArch(java.lang.String arch)
arch
- architecture of the queue instancepublic java.lang.String getState()
getState
in interface QueueInstanceSummary
public void setState(java.lang.String state)
state
- state of a queue instancepublic java.lang.String getLoadAvgStr()
getLoadAvgStr
in interface QueueInstanceSummary
public void setLoadAvgStr(java.lang.String loadAvgStr)
loadAvgStr
- the string representation of the load averagepublic boolean hasLoadValue()
hasLoadValue
in interface QueueInstanceSummary
true
if the queue instance has a load valuepublic void setHasLoadValue(boolean hasLoadValue)
hasLoadValue
- the has load value flagpublic boolean isHasLoadValueFromObject()
isHasLoadValueFromObject
in interface QueueInstanceSummary
true
if the load value is derived from an objectpublic void setHasLoadValueFromObject(boolean hasLoadValueFromObject)
hasLoadValueFromObject
- the load value from object flagpublic double getLoadAvg()
hasLoadValue
returns true
.
getLoadAvg
in interface QueueInstanceSummary
hasLoadValue
public void setLoadAvg(double loadAvg)
loadAvg
- the load averagepublic void addJobs(java.util.List<JobSummary> jobList)
jobList
- list of JobSummary
instancespublic void addJob(JobSummary jobSummary)
jobSummary
- the jobpublic java.util.List<JobSummary> getJobList()
getJobList
in interface QueueInstanceSummary
JobSummary
)public java.lang.String getLoadAlarmReason()
getLoadAlarmReason
in interface QueueInstanceSummary
public void setLoadAlarmReason(java.lang.String loadAlarmReason)
loadAlarmReason
- the load alarm reasonpublic java.lang.String getSuspendAlarmReason()
getSuspendAlarmReason
in interface QueueInstanceSummary
public void setSuspendAlarmReason(java.lang.String suspendAlarmReason)
public void addExplainMessage(java.lang.String message)
message
- the explain messagepublic java.util.List getExplainMessageList()
getExplainMessageList
in interface QueueInstanceSummary
public void addResource(java.lang.String dom, java.lang.String name, java.lang.String value)
dom
- dominance of the resource valuename
- name of the resourcevalue
- value of the resourcepublic java.util.Set<java.lang.String> getResourceDominanceSet()
getResourceDominanceSet
in interface QueueInstanceSummary
public java.util.Set<java.lang.String> getResourceNames(java.lang.String dom)
dom
getResourceNames
in interface QueueInstanceSummary
public java.lang.String getResourceValue(java.lang.String dom, java.lang.String name)
getResourceValue
in interface QueueInstanceSummary
dom
- dominance of the resource valuename
- name of the resource
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |