com.sun.grid.jgdi.configuration
public class ResourceQuotaSetImpl extends GEObjectImpl implements ResourceQuotaSet
Warning: The ResourceQuotaSetImpl class will not be compatible with future Sun™ Grid Engine releases.
Constructor and Description |
---|
ResourceQuotaSetImpl()
Create a new instance of ResourceQuotaSetImpl.
|
ResourceQuotaSetImpl(boolean initWithDefaultValues)
Create a new instanceof
|
ResourceQuotaSetImpl(java.lang.String name)
Create a new instance of ResourceQuotaSetImpl
|
Modifier and Type | Method and Description |
---|---|
void |
addRule(ResourceQuotaRule arule)
Add a com.sun.grid.jgdi.configuration.ResourceQuotaRule 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 |
getDescription()
Get the value of the description attribute.
|
java.lang.String |
getName()
Get the value of the name attribute.
|
ResourceQuotaRule |
getRule(int index)
Get a com.sun.grid.jgdi.configuration.ResourceQuotaRule attribute at an index.
|
int |
getRuleCount()
Get the number of com.sun.grid.jgdi.configuration.ResourceQuotaRule attributes.
|
java.util.List<ResourceQuotaRule> |
getRuleList()
Get a unmodifiable list of all com.sun.grid.jgdi.configuration.ResourceQuotaRule attributes.
|
boolean |
isEnabled()
Get the value of the enabled attribute.
|
boolean |
isSetDescription()
Determine if the description attribute is set
|
boolean |
isSetEnabled()
Determine if the enabled attribute is set
|
boolean |
isSetName()
Determine if the name attribute is set
|
boolean |
isSetRule()
Determine if the rule attribute is set
|
void |
removeAllRule()
Remove all com.sun.grid.jgdi.configuration.ResourceQuotaRule attributes.
|
ResourceQuotaRule |
removeRule(int index)
Remote a com.sun.grid.jgdi.configuration.ResourceQuotaRule attribute at an index.
|
boolean |
removeRule(ResourceQuotaRule arule)
Remote a specific com.sun.grid.jgdi.configuration.ResourceQuotaRule attribute.
|
void |
setDescription(java.lang.String aDescription)
Set the description attribute.
|
void |
setEnabled(boolean aEnabled)
Set the enabled attribute.
|
void |
setName(java.lang.String aName)
Set the name attribute.
|
void |
setRule(int index,
ResourceQuotaRule arule)
Set a com.sun.grid.jgdi.configuration.ResourceQuotaRule attribute.
|
java.lang.String |
toString() |
getParent, getPathName, getRoot, setParent
public ResourceQuotaSetImpl()
public ResourceQuotaSetImpl(boolean initWithDefaultValues)
initWithDefaultValues
- if true
the new instance will
be initialized with the default values as defined
in the cull definition.public ResourceQuotaSetImpl(java.lang.String name)
public boolean isSetName()
isSetName
in interface ResourceQuotaSet
true
if the name attribute is setpublic void setName(java.lang.String aName)
setName
in interface ResourceQuotaSet
setName
in class GEObjectImpl
aName
- the new value for the name attributepublic java.lang.String getName()
getName
in interface GEObject
getName
in interface ResourceQuotaSet
getName
in class GEObjectImpl
public boolean isSetDescription()
isSetDescription
in interface ResourceQuotaSet
true
if the description attribute is setpublic void setDescription(java.lang.String aDescription)
setDescription
in interface ResourceQuotaSet
aDescription
- the new value for the description attributepublic java.lang.String getDescription()
getDescription
in interface ResourceQuotaSet
public boolean isSetEnabled()
isSetEnabled
in interface ResourceQuotaSet
true
if the enabled attribute is setpublic void setEnabled(boolean aEnabled)
setEnabled
in interface ResourceQuotaSet
aEnabled
- the new value for the enabled attributepublic boolean isEnabled()
isEnabled
in interface ResourceQuotaSet
public void addRule(ResourceQuotaRule arule)
addRule
in interface ResourceQuotaSet
arule
- the new com.sun.grid.jgdi.configuration.ResourceQuotaRule attributepublic void setRule(int index, ResourceQuotaRule arule)
setRule
in interface ResourceQuotaSet
index
- index of the com.sun.grid.jgdi.configuration.ResourceQuotaRule attributearule
- the new com.sun.grid.jgdi.configuration.ResourceQuotaRule attributepublic void removeAllRule()
removeAllRule
in interface ResourceQuotaSet
public ResourceQuotaRule removeRule(int index)
removeRule
in interface ResourceQuotaSet
index
- the index of the com.sun.grid.jgdi.configuration.ResourceQuotaRule attribute which should be
removednull
if
no attribute at this index is storedpublic boolean removeRule(ResourceQuotaRule arule)
removeRule
in interface ResourceQuotaSet
arule
- the com.sun.grid.jgdi.configuration.ResourceQuotaRule attribute which should be
removedtrue
if the com.sun.grid.jgdi.configuration.ResourceQuotaRule attribute has been removedpublic java.util.List<ResourceQuotaRule> getRuleList()
getRuleList
in interface ResourceQuotaSet
public int getRuleCount()
getRuleCount
in interface ResourceQuotaSet
public ResourceQuotaRule getRule(int index)
getRule
in interface ResourceQuotaSet
index
- the index of the com.sun.grid.jgdi.configuration.ResourceQuotaRule attribute which should be
removedpublic boolean isSetRule()
isSetRule
in interface ResourceQuotaSet
true
if the rule 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 ResourceQuotaSet
Copyright © 2007 Sun Microsystems, Inc. All rights reserved.