com.sun.grid.jgdi.configuration
public class ResourceQuotaRuleImpl extends GEObjectImpl implements ResourceQuotaRule
Warning: The ResourceQuotaRuleImpl class will not be compatible with future Sun™ Grid Engine releases.
Constructor and Description |
---|
ResourceQuotaRuleImpl()
Create a new instance of ResourceQuotaRuleImpl.
|
ResourceQuotaRuleImpl(boolean initWithDefaultValues)
Create a new instanceof
|
ResourceQuotaRuleImpl(java.lang.String name)
Create a new instance of ResourceQuotaRuleImpl
|
Modifier and Type | Method and Description |
---|---|
void |
addLimit(ResourceQuotaRuleLimit alimit)
Add a com.sun.grid.jgdi.configuration.ResourceQuotaRuleLimit 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) |
ResourceQuotaRuleFilter |
getFilterHosts()
Get the value of the filterHosts attribute.
|
ResourceQuotaRuleFilter |
getFilterPes()
Get the value of the filterPes attribute.
|
ResourceQuotaRuleFilter |
getFilterProjects()
Get the value of the filterProjects attribute.
|
ResourceQuotaRuleFilter |
getFilterQueues()
Get the value of the filterQueues attribute.
|
ResourceQuotaRuleFilter |
getFilterUsers()
Get the value of the filterUsers attribute.
|
int |
getLevel()
Get the value of the level attribute.
|
ResourceQuotaRuleLimit |
getLimit(int index)
Get a com.sun.grid.jgdi.configuration.ResourceQuotaRuleLimit attribute at an index.
|
int |
getLimitCount()
Get the number of com.sun.grid.jgdi.configuration.ResourceQuotaRuleLimit attributes.
|
java.util.List<ResourceQuotaRuleLimit> |
getLimitList()
Get a unmodifiable list of all com.sun.grid.jgdi.configuration.ResourceQuotaRuleLimit attributes.
|
java.lang.String |
getName()
Get the value of the name attribute.
|
boolean |
isSetFilterHosts()
Determine if the filterHosts attribute is set
|
boolean |
isSetFilterPes()
Determine if the filterPes attribute is set
|
boolean |
isSetFilterProjects()
Determine if the filterProjects attribute is set
|
boolean |
isSetFilterQueues()
Determine if the filterQueues attribute is set
|
boolean |
isSetFilterUsers()
Determine if the filterUsers attribute is set
|
boolean |
isSetLevel()
Determine if the level attribute is set
|
boolean |
isSetLimit()
Determine if the limit attribute is set
|
boolean |
isSetName()
Determine if the name attribute is set
|
void |
removeAllLimit()
Remove all com.sun.grid.jgdi.configuration.ResourceQuotaRuleLimit attributes.
|
ResourceQuotaRuleLimit |
removeLimit(int index)
Remote a com.sun.grid.jgdi.configuration.ResourceQuotaRuleLimit attribute at an index.
|
boolean |
removeLimit(ResourceQuotaRuleLimit alimit)
Remote a specific com.sun.grid.jgdi.configuration.ResourceQuotaRuleLimit attribute.
|
void |
setFilterHosts(ResourceQuotaRuleFilter aFilterHosts)
Set the filterHosts attribute.
|
void |
setFilterPes(ResourceQuotaRuleFilter aFilterPes)
Set the filterPes attribute.
|
void |
setFilterProjects(ResourceQuotaRuleFilter aFilterProjects)
Set the filterProjects attribute.
|
void |
setFilterQueues(ResourceQuotaRuleFilter aFilterQueues)
Set the filterQueues attribute.
|
void |
setFilterUsers(ResourceQuotaRuleFilter aFilterUsers)
Set the filterUsers attribute.
|
void |
setLevel(int aLevel)
Set the level attribute.
|
void |
setLimit(int index,
ResourceQuotaRuleLimit alimit)
Set a com.sun.grid.jgdi.configuration.ResourceQuotaRuleLimit attribute.
|
void |
setName(java.lang.String aName)
Set the name attribute.
|
java.lang.String |
toString() |
getParent, getPathName, getRoot, setParent
public ResourceQuotaRuleImpl()
public ResourceQuotaRuleImpl(boolean initWithDefaultValues)
initWithDefaultValues
- if true
the new instance will
be initialized with the default values as defined
in the cull definition.public ResourceQuotaRuleImpl(java.lang.String name)
public boolean isSetName()
isSetName
in interface ResourceQuotaRule
true
if the name attribute is setpublic void setName(java.lang.String aName)
setName
in interface ResourceQuotaRule
setName
in class GEObjectImpl
aName
- the new value for the name attributepublic java.lang.String getName()
getName
in interface GEObject
getName
in interface ResourceQuotaRule
getName
in class GEObjectImpl
public boolean isSetFilterUsers()
isSetFilterUsers
in interface ResourceQuotaRule
true
if the filterUsers attribute is setpublic void setFilterUsers(ResourceQuotaRuleFilter aFilterUsers)
setFilterUsers
in interface ResourceQuotaRule
aFilterUsers
- the new value for the filterUsers attributepublic ResourceQuotaRuleFilter getFilterUsers()
getFilterUsers
in interface ResourceQuotaRule
public boolean isSetFilterProjects()
isSetFilterProjects
in interface ResourceQuotaRule
true
if the filterProjects attribute is setpublic void setFilterProjects(ResourceQuotaRuleFilter aFilterProjects)
setFilterProjects
in interface ResourceQuotaRule
aFilterProjects
- the new value for the filterProjects attributepublic ResourceQuotaRuleFilter getFilterProjects()
getFilterProjects
in interface ResourceQuotaRule
public boolean isSetFilterPes()
isSetFilterPes
in interface ResourceQuotaRule
true
if the filterPes attribute is setpublic void setFilterPes(ResourceQuotaRuleFilter aFilterPes)
setFilterPes
in interface ResourceQuotaRule
aFilterPes
- the new value for the filterPes attributepublic ResourceQuotaRuleFilter getFilterPes()
getFilterPes
in interface ResourceQuotaRule
public boolean isSetFilterQueues()
isSetFilterQueues
in interface ResourceQuotaRule
true
if the filterQueues attribute is setpublic void setFilterQueues(ResourceQuotaRuleFilter aFilterQueues)
setFilterQueues
in interface ResourceQuotaRule
aFilterQueues
- the new value for the filterQueues attributepublic ResourceQuotaRuleFilter getFilterQueues()
getFilterQueues
in interface ResourceQuotaRule
public boolean isSetFilterHosts()
isSetFilterHosts
in interface ResourceQuotaRule
true
if the filterHosts attribute is setpublic void setFilterHosts(ResourceQuotaRuleFilter aFilterHosts)
setFilterHosts
in interface ResourceQuotaRule
aFilterHosts
- the new value for the filterHosts attributepublic ResourceQuotaRuleFilter getFilterHosts()
getFilterHosts
in interface ResourceQuotaRule
public void addLimit(ResourceQuotaRuleLimit alimit)
addLimit
in interface ResourceQuotaRule
alimit
- the new com.sun.grid.jgdi.configuration.ResourceQuotaRuleLimit attributepublic void setLimit(int index, ResourceQuotaRuleLimit alimit)
setLimit
in interface ResourceQuotaRule
index
- index of the com.sun.grid.jgdi.configuration.ResourceQuotaRuleLimit attributealimit
- the new com.sun.grid.jgdi.configuration.ResourceQuotaRuleLimit attributepublic void removeAllLimit()
removeAllLimit
in interface ResourceQuotaRule
public ResourceQuotaRuleLimit removeLimit(int index)
removeLimit
in interface ResourceQuotaRule
index
- the index of the com.sun.grid.jgdi.configuration.ResourceQuotaRuleLimit attribute which should be
removednull
if
no attribute at this index is storedpublic boolean removeLimit(ResourceQuotaRuleLimit alimit)
removeLimit
in interface ResourceQuotaRule
alimit
- the com.sun.grid.jgdi.configuration.ResourceQuotaRuleLimit attribute which should be
removedtrue
if the com.sun.grid.jgdi.configuration.ResourceQuotaRuleLimit attribute has been removedpublic java.util.List<ResourceQuotaRuleLimit> getLimitList()
getLimitList
in interface ResourceQuotaRule
public int getLimitCount()
getLimitCount
in interface ResourceQuotaRule
public ResourceQuotaRuleLimit getLimit(int index)
getLimit
in interface ResourceQuotaRule
index
- the index of the com.sun.grid.jgdi.configuration.ResourceQuotaRuleLimit attribute which should be
removedpublic boolean isSetLimit()
isSetLimit
in interface ResourceQuotaRule
true
if the limit attribute is setpublic boolean isSetLevel()
isSetLevel
in interface ResourceQuotaRule
true
if the level attribute is setpublic void setLevel(int aLevel)
aLevel
- the new value for the level attributepublic int getLevel()
getLevel
in interface ResourceQuotaRule
public 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 ResourceQuotaRule
Copyright © 2007 Sun Microsystems, Inc. All rights reserved.