com.sun.grid.jgdi.configuration
public class ResourceUtilizationImpl extends GEObjectImpl implements ResourceUtilization
Warning: The ResourceUtilizationImpl class will not be compatible with future Sun™ Grid Engine releases.
Constructor and Description |
---|
ResourceUtilizationImpl()
Create a new instance of ResourceUtilizationImpl.
|
ResourceUtilizationImpl(boolean initWithDefaultValues)
Create a new instanceof
|
ResourceUtilizationImpl(java.lang.String name)
Create a new instance of ResourceUtilizationImpl
|
Modifier and Type | Method and Description |
---|---|
void |
addUtilized(ResourceDiagramEntry autilized)
Add a com.sun.grid.jgdi.configuration.ResourceDiagramEntry attribute.
|
void |
addUtilizedNonexclusive(ResourceDiagramEntry autilizedNonexclusive)
Add a com.sun.grid.jgdi.configuration.ResourceDiagramEntry attribute.
|
java.lang.String |
dump() |
boolean |
equals(java.lang.Object obj)
Is the primary key information equal to the primary key information
of
obj . |
boolean |
equalsCompletely(java.lang.Object obj) |
java.lang.String |
getName()
Get the value of the name attribute.
|
ResourceDiagramEntry |
getUtilized(int index)
Get a com.sun.grid.jgdi.configuration.ResourceDiagramEntry attribute at an index.
|
int |
getUtilizedCount()
Get the number of com.sun.grid.jgdi.configuration.ResourceDiagramEntry attributes.
|
java.util.List<ResourceDiagramEntry> |
getUtilizedList()
Get a unmodifiable list of all com.sun.grid.jgdi.configuration.ResourceDiagramEntry attributes.
|
ResourceDiagramEntry |
getUtilizedNonexclusive(int index)
Get a com.sun.grid.jgdi.configuration.ResourceDiagramEntry attribute at an index.
|
int |
getUtilizedNonexclusiveCount()
Get the number of com.sun.grid.jgdi.configuration.ResourceDiagramEntry attributes.
|
java.util.List<ResourceDiagramEntry> |
getUtilizedNonexclusiveList()
Get a unmodifiable list of all com.sun.grid.jgdi.configuration.ResourceDiagramEntry attributes.
|
double |
getUtilizedNow()
Get the value of the utilizedNow attribute.
|
double |
getUtilizedNowNonexclusive()
Get the value of the utilizedNowNonexclusive attribute.
|
boolean |
isSetName()
Determine if the name attribute is set
|
boolean |
isSetUtilized()
Determine if the utilized attribute is set
|
boolean |
isSetUtilizedNonexclusive()
Determine if the utilizedNonexclusive attribute is set
|
boolean |
isSetUtilizedNow()
Determine if the utilizedNow attribute is set
|
boolean |
isSetUtilizedNowNonexclusive()
Determine if the utilizedNowNonexclusive attribute is set
|
void |
removeAllUtilized()
Remove all com.sun.grid.jgdi.configuration.ResourceDiagramEntry attributes.
|
void |
removeAllUtilizedNonexclusive()
Remove all com.sun.grid.jgdi.configuration.ResourceDiagramEntry attributes.
|
ResourceDiagramEntry |
removeUtilized(int index)
Remote a com.sun.grid.jgdi.configuration.ResourceDiagramEntry attribute at an index.
|
boolean |
removeUtilized(ResourceDiagramEntry autilized)
Remote a specific com.sun.grid.jgdi.configuration.ResourceDiagramEntry attribute.
|
ResourceDiagramEntry |
removeUtilizedNonexclusive(int index)
Remote a com.sun.grid.jgdi.configuration.ResourceDiagramEntry attribute at an index.
|
boolean |
removeUtilizedNonexclusive(ResourceDiagramEntry autilizedNonexclusive)
Remote a specific com.sun.grid.jgdi.configuration.ResourceDiagramEntry attribute.
|
void |
setName(java.lang.String aName)
Set the name attribute.
|
void |
setUtilized(int index,
ResourceDiagramEntry autilized)
Set a com.sun.grid.jgdi.configuration.ResourceDiagramEntry attribute.
|
void |
setUtilizedNonexclusive(int index,
ResourceDiagramEntry autilizedNonexclusive)
Set a com.sun.grid.jgdi.configuration.ResourceDiagramEntry attribute.
|
void |
setUtilizedNow(double aUtilizedNow)
Set the utilizedNow attribute.
|
void |
setUtilizedNowNonexclusive(double aUtilizedNowNonexclusive)
Set the utilizedNowNonexclusive attribute.
|
java.lang.String |
toString() |
getParent, getPathName, getRoot, setParent
public ResourceUtilizationImpl()
public ResourceUtilizationImpl(boolean initWithDefaultValues)
initWithDefaultValues
- if true
the new instance will
be initialized with the default values as defined
in the cull definition.public ResourceUtilizationImpl(java.lang.String name)
public boolean isSetName()
isSetName
in interface ResourceUtilization
true
if the name attribute is setpublic void setName(java.lang.String aName)
setName
in interface ResourceUtilization
setName
in class GEObjectImpl
aName
- the new value for the name attributepublic java.lang.String getName()
getName
in interface GEObject
getName
in interface ResourceUtilization
getName
in class GEObjectImpl
public boolean isSetUtilizedNow()
isSetUtilizedNow
in interface ResourceUtilization
true
if the utilizedNow attribute is setpublic void setUtilizedNow(double aUtilizedNow)
setUtilizedNow
in interface ResourceUtilization
aUtilizedNow
- the new value for the utilizedNow attributepublic double getUtilizedNow()
getUtilizedNow
in interface ResourceUtilization
public void addUtilized(ResourceDiagramEntry autilized)
addUtilized
in interface ResourceUtilization
autilized
- the new com.sun.grid.jgdi.configuration.ResourceDiagramEntry attributepublic void setUtilized(int index, ResourceDiagramEntry autilized)
setUtilized
in interface ResourceUtilization
index
- index of the com.sun.grid.jgdi.configuration.ResourceDiagramEntry attributeautilized
- the new com.sun.grid.jgdi.configuration.ResourceDiagramEntry attributepublic void removeAllUtilized()
removeAllUtilized
in interface ResourceUtilization
public ResourceDiagramEntry removeUtilized(int index)
removeUtilized
in interface ResourceUtilization
index
- the index of the com.sun.grid.jgdi.configuration.ResourceDiagramEntry attribute which should be
removednull
if
no attribute at this index is storedpublic boolean removeUtilized(ResourceDiagramEntry autilized)
removeUtilized
in interface ResourceUtilization
autilized
- the com.sun.grid.jgdi.configuration.ResourceDiagramEntry attribute which should be
removedtrue
if the com.sun.grid.jgdi.configuration.ResourceDiagramEntry attribute has been removedpublic java.util.List<ResourceDiagramEntry> getUtilizedList()
getUtilizedList
in interface ResourceUtilization
public int getUtilizedCount()
getUtilizedCount
in interface ResourceUtilization
public ResourceDiagramEntry getUtilized(int index)
getUtilized
in interface ResourceUtilization
index
- the index of the com.sun.grid.jgdi.configuration.ResourceDiagramEntry attribute which should be
removedpublic boolean isSetUtilized()
isSetUtilized
in interface ResourceUtilization
true
if the utilized attribute is setpublic boolean isSetUtilizedNowNonexclusive()
isSetUtilizedNowNonexclusive
in interface ResourceUtilization
true
if the utilizedNowNonexclusive attribute is setpublic void setUtilizedNowNonexclusive(double aUtilizedNowNonexclusive)
setUtilizedNowNonexclusive
in interface ResourceUtilization
aUtilizedNowNonexclusive
- the new value for the utilizedNowNonexclusive attributepublic double getUtilizedNowNonexclusive()
getUtilizedNowNonexclusive
in interface ResourceUtilization
public void addUtilizedNonexclusive(ResourceDiagramEntry autilizedNonexclusive)
addUtilizedNonexclusive
in interface ResourceUtilization
autilizedNonexclusive
- the new com.sun.grid.jgdi.configuration.ResourceDiagramEntry attributepublic void setUtilizedNonexclusive(int index, ResourceDiagramEntry autilizedNonexclusive)
setUtilizedNonexclusive
in interface ResourceUtilization
index
- index of the com.sun.grid.jgdi.configuration.ResourceDiagramEntry attributeautilizedNonexclusive
- the new com.sun.grid.jgdi.configuration.ResourceDiagramEntry attributepublic void removeAllUtilizedNonexclusive()
removeAllUtilizedNonexclusive
in interface ResourceUtilization
public ResourceDiagramEntry removeUtilizedNonexclusive(int index)
removeUtilizedNonexclusive
in interface ResourceUtilization
index
- the index of the com.sun.grid.jgdi.configuration.ResourceDiagramEntry attribute which should be
removednull
if
no attribute at this index is storedpublic boolean removeUtilizedNonexclusive(ResourceDiagramEntry autilizedNonexclusive)
removeUtilizedNonexclusive
in interface ResourceUtilization
autilizedNonexclusive
- the com.sun.grid.jgdi.configuration.ResourceDiagramEntry attribute which should be
removedtrue
if the com.sun.grid.jgdi.configuration.ResourceDiagramEntry attribute has been removedpublic java.util.List<ResourceDiagramEntry> getUtilizedNonexclusiveList()
getUtilizedNonexclusiveList
in interface ResourceUtilization
public int getUtilizedNonexclusiveCount()
getUtilizedNonexclusiveCount
in interface ResourceUtilization
public ResourceDiagramEntry getUtilizedNonexclusive(int index)
getUtilizedNonexclusive
in interface ResourceUtilization
index
- the index of the com.sun.grid.jgdi.configuration.ResourceDiagramEntry attribute which should be
removedpublic boolean isSetUtilizedNonexclusive()
isSetUtilizedNonexclusive
in interface ResourceUtilization
true
if the utilizedNonexclusive attribute is setpublic boolean equals(java.lang.Object obj)
obj
.equals
in class java.lang.Object
obj
- the compared objecttrue
if the primary key information is equal to the
primary key informations of obj
.public boolean equalsCompletely(java.lang.Object obj)
equalsCompletely
in interface GEObject
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String dump()
dump
in interface ResourceUtilization
Copyright © 2007 Sun Microsystems, Inc. All rights reserved.