com.sun.grid.jgdi.configuration
public class ExecHostImpl extends GEObjectImpl implements ExecHost
Warning: The ExecHostImpl class will not be compatible with future Sun™ Grid Engine releases.
Constructor and Description |
---|
ExecHostImpl()
Create a new instance of ExecHostImpl.
|
ExecHostImpl(boolean initWithDefaultValues)
Create a new instanceof
|
ExecHostImpl(java.lang.String name)
Create a new instance of ExecHostImpl
|
Modifier and Type | Method and Description |
---|---|
void |
addAcl(UserSet aacl)
Add a com.sun.grid.jgdi.configuration.UserSet attribute.
|
void |
addConsumableConfig(ComplexEntry aconsumableConfig)
Add a com.sun.grid.jgdi.configuration.ComplexEntry attribute.
|
void |
addPrj(Project aprj)
Add a com.sun.grid.jgdi.configuration.Project attribute.
|
void |
addReportVariables(java.lang.String areportVariables)
Add a java.lang.String attribute.
|
void |
addXacl(UserSet axacl)
Add a com.sun.grid.jgdi.configuration.UserSet attribute.
|
void |
addXprj(Project axprj)
Add a com.sun.grid.jgdi.configuration.Project 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) |
UserSet |
getAcl(int index)
Get a com.sun.grid.jgdi.configuration.UserSet attribute at an index.
|
int |
getAclCount()
Get the number of com.sun.grid.jgdi.configuration.UserSet attributes.
|
java.util.List<UserSet> |
getAclList()
Get a unmodifiable list of all com.sun.grid.jgdi.configuration.UserSet attributes.
|
ComplexEntry |
getConsumableConfig(int index)
Get a com.sun.grid.jgdi.configuration.ComplexEntry attribute at an index.
|
int |
getConsumableConfigCount()
Get the number of com.sun.grid.jgdi.configuration.ComplexEntry attributes.
|
java.util.List<ComplexEntry> |
getConsumableConfigList()
Get a unmodifiable list of all com.sun.grid.jgdi.configuration.ComplexEntry attributes.
|
java.lang.String |
getDefaultLoad()
Get the default value of the attribute load.
|
double |
getDefaultScaling()
Get the default value of the attribute scaling.
|
double |
getDefaultUsageScaling()
Get the default value of the attribute usageScaling.
|
java.lang.String |
getLoad(java.lang.String key)
Get the load attribute for a key.
|
int |
getLoadCount()
Get the number of keys which have the attribute load set.
|
java.util.Set<java.lang.String> |
getLoadKeys()
Get the set of keys which have the attribute load set.
|
java.lang.String |
getName()
Get the value of the name attribute.
|
Project |
getPrj(int index)
Get a com.sun.grid.jgdi.configuration.Project attribute at an index.
|
int |
getPrjCount()
Get the number of com.sun.grid.jgdi.configuration.Project attributes.
|
java.util.List<Project> |
getPrjList()
Get a unmodifiable list of all com.sun.grid.jgdi.configuration.Project attributes.
|
int |
getProcessors()
Get the value of the processors attribute.
|
java.lang.String |
getReportVariables(int index)
Get a java.lang.String attribute at an index.
|
int |
getReportVariablesCount()
Get the number of java.lang.String attributes.
|
java.util.List<java.lang.String> |
getReportVariablesList()
Get a unmodifiable list of all java.lang.String attributes.
|
double |
getScaling(java.lang.String key)
Get the scaling attribute for a key.
|
int |
getScalingCount()
Get the number of keys which have the attribute scaling set.
|
java.util.Set<java.lang.String> |
getScalingKeys()
Get the set of keys which have the attribute scaling set.
|
double |
getUsageScaling(java.lang.String key)
Get the usageScaling attribute for a key.
|
int |
getUsageScalingCount()
Get the number of keys which have the attribute usageScaling set.
|
java.util.Set<java.lang.String> |
getUsageScalingKeys()
Get the set of keys which have the attribute usageScaling set.
|
UserSet |
getXacl(int index)
Get a com.sun.grid.jgdi.configuration.UserSet attribute at an index.
|
int |
getXaclCount()
Get the number of com.sun.grid.jgdi.configuration.UserSet attributes.
|
java.util.List<UserSet> |
getXaclList()
Get a unmodifiable list of all com.sun.grid.jgdi.configuration.UserSet attributes.
|
Project |
getXprj(int index)
Get a com.sun.grid.jgdi.configuration.Project attribute at an index.
|
int |
getXprjCount()
Get the number of com.sun.grid.jgdi.configuration.Project attributes.
|
java.util.List<Project> |
getXprjList()
Get a unmodifiable list of all com.sun.grid.jgdi.configuration.Project attributes.
|
boolean |
isSetAcl()
Determine if the acl attribute is set
|
boolean |
isSetConsumableConfig()
Determine if the consumableConfig attribute is set
|
boolean |
isSetLoad()
Determine if any load attribute is set
|
boolean |
isSetLoad(java.lang.String key)
Determine if any load attribute is for a key is set
|
boolean |
isSetName()
Determine if the name attribute is set
|
boolean |
isSetPrj()
Determine if the prj attribute is set
|
boolean |
isSetProcessors()
Determine if the processors attribute is set
|
boolean |
isSetReportVariables()
Determine if the reportVariables attribute is set
|
boolean |
isSetScaling()
Determine if any scaling attribute is set
|
boolean |
isSetScaling(java.lang.String key)
Determine if any scaling attribute is for a key is set
|
boolean |
isSetUsageScaling()
Determine if any usageScaling attribute is set
|
boolean |
isSetUsageScaling(java.lang.String key)
Determine if any usageScaling attribute is for a key is set
|
boolean |
isSetXacl()
Determine if the xacl attribute is set
|
boolean |
isSetXprj()
Determine if the xprj attribute is set
|
void |
putLoad(java.lang.String key,
java.lang.String value)
Put the attribute load for a key.
|
void |
putScaling(java.lang.String key,
double value)
Put the attribute scaling for a key.
|
void |
putUsageScaling(java.lang.String key,
double value)
Put the attribute usageScaling for a key.
|
UserSet |
removeAcl(int index)
Remote a com.sun.grid.jgdi.configuration.UserSet attribute at an index.
|
boolean |
removeAcl(UserSet aacl)
Remote a specific com.sun.grid.jgdi.configuration.UserSet attribute.
|
void |
removeAllAcl()
Remove all com.sun.grid.jgdi.configuration.UserSet attributes.
|
void |
removeAllConsumableConfig()
Remove all com.sun.grid.jgdi.configuration.ComplexEntry attributes.
|
void |
removeAllLoad()
Remove the attribute load for all keys.
|
void |
removeAllPrj()
Remove all com.sun.grid.jgdi.configuration.Project attributes.
|
void |
removeAllReportVariables()
Remove all java.lang.String attributes.
|
void |
removeAllScaling()
Remove the attribute scaling for all keys.
|
void |
removeAllUsageScaling()
Remove the attribute usageScaling for all keys.
|
void |
removeAllXacl()
Remove all com.sun.grid.jgdi.configuration.UserSet attributes.
|
void |
removeAllXprj()
Remove all com.sun.grid.jgdi.configuration.Project attributes.
|
boolean |
removeConsumableConfig(ComplexEntry aconsumableConfig)
Remote a specific com.sun.grid.jgdi.configuration.ComplexEntry attribute.
|
ComplexEntry |
removeConsumableConfig(int index)
Remote a com.sun.grid.jgdi.configuration.ComplexEntry attribute at an index.
|
java.lang.String |
removeLoad(java.lang.String key)
remove the attribute load for a key.
|
Project |
removePrj(int index)
Remote a com.sun.grid.jgdi.configuration.Project attribute at an index.
|
boolean |
removePrj(Project aprj)
Remote a specific com.sun.grid.jgdi.configuration.Project attribute.
|
java.lang.String |
removeReportVariables(int index)
Remote a java.lang.String attribute at an index.
|
boolean |
removeReportVariables(java.lang.String areportVariables)
Remote a specific java.lang.String attribute.
|
java.lang.Double |
removeScaling(java.lang.String key)
remove the attribute scaling for a key.
|
java.lang.Double |
removeUsageScaling(java.lang.String key)
remove the attribute usageScaling for a key.
|
UserSet |
removeXacl(int index)
Remote a com.sun.grid.jgdi.configuration.UserSet attribute at an index.
|
boolean |
removeXacl(UserSet axacl)
Remote a specific com.sun.grid.jgdi.configuration.UserSet attribute.
|
Project |
removeXprj(int index)
Remote a com.sun.grid.jgdi.configuration.Project attribute at an index.
|
boolean |
removeXprj(Project axprj)
Remote a specific com.sun.grid.jgdi.configuration.Project attribute.
|
void |
setAcl(int index,
UserSet aacl)
Set a com.sun.grid.jgdi.configuration.UserSet attribute.
|
void |
setConsumableConfig(int index,
ComplexEntry aconsumableConfig)
Set a com.sun.grid.jgdi.configuration.ComplexEntry attribute.
|
void |
setName(java.lang.String aName)
Set the name attribute.
|
void |
setPrj(int index,
Project aprj)
Set a com.sun.grid.jgdi.configuration.Project attribute.
|
void |
setProcessors(int aProcessors)
Set the processors attribute.
|
void |
setReportVariables(int index,
java.lang.String areportVariables)
Set a java.lang.String attribute.
|
void |
setXacl(int index,
UserSet axacl)
Set a com.sun.grid.jgdi.configuration.UserSet attribute.
|
void |
setXprj(int index,
Project axprj)
Set a com.sun.grid.jgdi.configuration.Project attribute.
|
java.lang.String |
toString() |
getParent, getPathName, getRoot, setParent
public ExecHostImpl()
public ExecHostImpl(boolean initWithDefaultValues)
initWithDefaultValues
- if true
the new instance will
be initialized with the default values as defined
in the cull definition.public ExecHostImpl(java.lang.String name)
public boolean isSetName()
public void setName(java.lang.String aName)
setName
in interface ExecHost
setName
in class GEObjectImpl
aName
- the new value for the name attributepublic java.lang.String getName()
public void putScaling(java.lang.String key, double value)
Put the attribute scaling for a key.
putScaling
in interface ExecHost
key
- the keyvalue
- the valuepublic double getDefaultScaling()
Get the default value of the attribute scaling.
getDefaultScaling
in interface ExecHost
java.lang.IllegalStateException
- if the default value is not setpublic double getScaling(java.lang.String key)
Get the scaling attribute for a key.
getScaling
in interface ExecHost
key
- the keypublic java.lang.Double removeScaling(java.lang.String key)
remove the attribute scaling for a key.
removeScaling
in interface ExecHost
key
- tje keynull
if the value attribute was not defined for the key.public void removeAllScaling()
Remove the attribute scaling for all keys.
removeAllScaling
in interface ExecHost
public java.util.Set<java.lang.String> getScalingKeys()
getScalingKeys
in interface ExecHost
public int getScalingCount()
getScalingCount
in interface ExecHost
public boolean isSetScaling()
isSetScaling
in interface ExecHost
true
if the scaling attribute is setpublic boolean isSetScaling(java.lang.String key)
isSetScaling
in interface ExecHost
key
- the keytrue
if the scaling attribute is setpublic void addConsumableConfig(ComplexEntry aconsumableConfig)
addConsumableConfig
in interface ExecHost
aconsumableConfig
- the new com.sun.grid.jgdi.configuration.ComplexEntry attributepublic void setConsumableConfig(int index, ComplexEntry aconsumableConfig)
setConsumableConfig
in interface ExecHost
index
- index of the com.sun.grid.jgdi.configuration.ComplexEntry attributeaconsumableConfig
- the new com.sun.grid.jgdi.configuration.ComplexEntry attributepublic void removeAllConsumableConfig()
removeAllConsumableConfig
in interface ExecHost
public ComplexEntry removeConsumableConfig(int index)
removeConsumableConfig
in interface ExecHost
index
- the index of the com.sun.grid.jgdi.configuration.ComplexEntry attribute which should be
removednull
if
no attribute at this index is storedpublic boolean removeConsumableConfig(ComplexEntry aconsumableConfig)
removeConsumableConfig
in interface ExecHost
aconsumableConfig
- the com.sun.grid.jgdi.configuration.ComplexEntry attribute which should be
removedtrue
if the com.sun.grid.jgdi.configuration.ComplexEntry attribute has been removedpublic java.util.List<ComplexEntry> getConsumableConfigList()
getConsumableConfigList
in interface ExecHost
public int getConsumableConfigCount()
getConsumableConfigCount
in interface ExecHost
public ComplexEntry getConsumableConfig(int index)
getConsumableConfig
in interface ExecHost
index
- the index of the com.sun.grid.jgdi.configuration.ComplexEntry attribute which should be
removedpublic boolean isSetConsumableConfig()
isSetConsumableConfig
in interface ExecHost
true
if the consumableConfig attribute is setpublic void putUsageScaling(java.lang.String key, double value)
Put the attribute usageScaling for a key.
putUsageScaling
in interface ExecHost
key
- the keyvalue
- the valuepublic double getDefaultUsageScaling()
Get the default value of the attribute usageScaling.
getDefaultUsageScaling
in interface ExecHost
java.lang.IllegalStateException
- if the default value is not setpublic double getUsageScaling(java.lang.String key)
Get the usageScaling attribute for a key.
getUsageScaling
in interface ExecHost
key
- the keypublic java.lang.Double removeUsageScaling(java.lang.String key)
remove the attribute usageScaling for a key.
removeUsageScaling
in interface ExecHost
key
- tje keynull
if the value attribute was not defined for the key.public void removeAllUsageScaling()
Remove the attribute usageScaling for all keys.
removeAllUsageScaling
in interface ExecHost
public java.util.Set<java.lang.String> getUsageScalingKeys()
getUsageScalingKeys
in interface ExecHost
public int getUsageScalingCount()
getUsageScalingCount
in interface ExecHost
public boolean isSetUsageScaling()
isSetUsageScaling
in interface ExecHost
true
if the usageScaling attribute is setpublic boolean isSetUsageScaling(java.lang.String key)
isSetUsageScaling
in interface ExecHost
key
- the keytrue
if the usageScaling attribute is setpublic void putLoad(java.lang.String key, java.lang.String value)
Put the attribute load for a key.
key
- the keyvalue
- the valuepublic java.lang.String getDefaultLoad()
Get the default value of the attribute load.
getDefaultLoad
in interface ExecHost
java.lang.IllegalStateException
- if the default value is not setpublic java.lang.String getLoad(java.lang.String key)
Get the load attribute for a key.
public java.lang.String removeLoad(java.lang.String key)
remove the attribute load for a key.
key
- tje keynull
if the value attribute was not defined for the key.public void removeAllLoad()
Remove the attribute load for all keys.
public java.util.Set<java.lang.String> getLoadKeys()
getLoadKeys
in interface ExecHost
public int getLoadCount()
getLoadCount
in interface ExecHost
public boolean isSetLoad()
public boolean isSetLoad(java.lang.String key)
public boolean isSetProcessors()
isSetProcessors
in interface ExecHost
true
if the processors attribute is setpublic void setProcessors(int aProcessors)
aProcessors
- the new value for the processors attributepublic int getProcessors()
getProcessors
in interface ExecHost
public void addAcl(UserSet aacl)
public void setAcl(int index, UserSet aacl)
public void removeAllAcl()
removeAllAcl
in interface ExecHost
public UserSet removeAcl(int index)
public boolean removeAcl(UserSet aacl)
public java.util.List<UserSet> getAclList()
getAclList
in interface ExecHost
public int getAclCount()
getAclCount
in interface ExecHost
public UserSet getAcl(int index)
public boolean isSetAcl()
public void addXacl(UserSet axacl)
public void setXacl(int index, UserSet axacl)
public void removeAllXacl()
removeAllXacl
in interface ExecHost
public UserSet removeXacl(int index)
removeXacl
in interface ExecHost
index
- the index of the com.sun.grid.jgdi.configuration.UserSet attribute which should be
removednull
if
no attribute at this index is storedpublic boolean removeXacl(UserSet axacl)
removeXacl
in interface ExecHost
axacl
- the com.sun.grid.jgdi.configuration.UserSet attribute which should be
removedtrue
if the com.sun.grid.jgdi.configuration.UserSet attribute has been removedpublic java.util.List<UserSet> getXaclList()
getXaclList
in interface ExecHost
public int getXaclCount()
getXaclCount
in interface ExecHost
public UserSet getXacl(int index)
public boolean isSetXacl()
public void addPrj(Project aprj)
public void setPrj(int index, Project aprj)
public void removeAllPrj()
removeAllPrj
in interface ExecHost
public Project removePrj(int index)
public boolean removePrj(Project aprj)
public java.util.List<Project> getPrjList()
getPrjList
in interface ExecHost
public int getPrjCount()
getPrjCount
in interface ExecHost
public Project getPrj(int index)
public boolean isSetPrj()
public void addXprj(Project axprj)
public void setXprj(int index, Project axprj)
public void removeAllXprj()
removeAllXprj
in interface ExecHost
public Project removeXprj(int index)
removeXprj
in interface ExecHost
index
- the index of the com.sun.grid.jgdi.configuration.Project attribute which should be
removednull
if
no attribute at this index is storedpublic boolean removeXprj(Project axprj)
removeXprj
in interface ExecHost
axprj
- the com.sun.grid.jgdi.configuration.Project attribute which should be
removedtrue
if the com.sun.grid.jgdi.configuration.Project attribute has been removedpublic java.util.List<Project> getXprjList()
getXprjList
in interface ExecHost
public int getXprjCount()
getXprjCount
in interface ExecHost
public Project getXprj(int index)
public boolean isSetXprj()
public void addReportVariables(java.lang.String areportVariables)
addReportVariables
in interface ExecHost
areportVariables
- the new java.lang.String attributepublic void setReportVariables(int index, java.lang.String areportVariables)
setReportVariables
in interface ExecHost
index
- index of the java.lang.String attributeareportVariables
- the new java.lang.String attributepublic void removeAllReportVariables()
removeAllReportVariables
in interface ExecHost
public java.lang.String removeReportVariables(int index)
removeReportVariables
in interface ExecHost
index
- the index of the java.lang.String attribute which should be
removednull
if
no attribute at this index is storedpublic boolean removeReportVariables(java.lang.String areportVariables)
removeReportVariables
in interface ExecHost
areportVariables
- the java.lang.String attribute which should be
removedtrue
if the java.lang.String attribute has been removedpublic java.util.List<java.lang.String> getReportVariablesList()
getReportVariablesList
in interface ExecHost
public int getReportVariablesCount()
getReportVariablesCount
in interface ExecHost
public java.lang.String getReportVariables(int index)
getReportVariables
in interface ExecHost
index
- the index of the java.lang.String attribute which should be
removedpublic boolean isSetReportVariables()
isSetReportVariables
in interface ExecHost
true
if the reportVariables 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
Copyright © 2007 Sun Microsystems, Inc. All rights reserved.