com.sun.grid.jgdi.configuration
public class PETaskImpl extends GEObjectImpl implements PETask
Warning: The PETaskImpl class will not be compatible with future Sun™ Grid Engine releases.
Constructor and Description |
---|
PETaskImpl()
Create a new instance of PETaskImpl.
|
PETaskImpl(boolean initWithDefaultValues)
Create a new instanceof
|
PETaskImpl(java.lang.String id)
Create a new instance of PETaskImpl
|
Modifier and Type | Method and Description |
---|---|
void |
addGrantedDestinIdentifier(JG agrantedDestinIdentifier)
Add a com.sun.grid.jgdi.configuration.JG attribute.
|
void |
addPathAliases(PathAlias apathAliases)
Add a com.sun.grid.jgdi.configuration.PathAlias 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 |
getCwd()
Get the value of the cwd attribute.
|
java.lang.String |
getDefaultEnvironment()
Get the default value of the attribute environment.
|
double |
getDefaultPreviousUsage()
Get the default value of the attribute previousUsage.
|
double |
getDefaultReportedUsage()
Get the default value of the attribute reportedUsage.
|
double |
getDefaultScaledUsage()
Get the default value of the attribute scaledUsage.
|
double |
getDefaultUsage()
Get the default value of the attribute usage.
|
int |
getEndTime()
Get the value of the endTime attribute.
|
java.lang.String |
getEnvironment(java.lang.String key)
Get the environment attribute for a key.
|
int |
getEnvironmentCount()
Get the number of keys which have the attribute environment set.
|
java.util.Set<java.lang.String> |
getEnvironmentKeys()
Get the set of keys which have the attribute environment set.
|
JG |
getGrantedDestinIdentifier(int index)
Get a com.sun.grid.jgdi.configuration.JG attribute at an index.
|
int |
getGrantedDestinIdentifierCount()
Get the number of com.sun.grid.jgdi.configuration.JG attributes.
|
java.util.List<JG> |
getGrantedDestinIdentifierList()
Get a unmodifiable list of all com.sun.grid.jgdi.configuration.JG attributes.
|
java.lang.String |
getId()
Get the value of the id attribute.
|
java.lang.String |
getName()
Get the value of the name attribute.
|
java.lang.String |
getOsjobid()
Get the value of the osjobid attribute.
|
PathAlias |
getPathAliases(int index)
Get a com.sun.grid.jgdi.configuration.PathAlias attribute at an index.
|
int |
getPathAliasesCount()
Get the number of com.sun.grid.jgdi.configuration.PathAlias attributes.
|
java.util.List<PathAlias> |
getPathAliasesList()
Get a unmodifiable list of all com.sun.grid.jgdi.configuration.PathAlias attributes.
|
int |
getPid()
Get the value of the pid attribute.
|
double |
getPreviousUsage(java.lang.String key)
Get the previousUsage attribute for a key.
|
int |
getPreviousUsageCount()
Get the number of keys which have the attribute previousUsage set.
|
java.util.Set<java.lang.String> |
getPreviousUsageKeys()
Get the set of keys which have the attribute previousUsage set.
|
double |
getReportedUsage(java.lang.String key)
Get the reportedUsage attribute for a key.
|
int |
getReportedUsageCount()
Get the number of keys which have the attribute reportedUsage set.
|
java.util.Set<java.lang.String> |
getReportedUsageKeys()
Get the set of keys which have the attribute reportedUsage set.
|
double |
getScaledUsage(java.lang.String key)
Get the scaledUsage attribute for a key.
|
int |
getScaledUsageCount()
Get the number of keys which have the attribute scaledUsage set.
|
java.util.Set<java.lang.String> |
getScaledUsageKeys()
Get the set of keys which have the attribute scaledUsage set.
|
int |
getStartTime()
Get the value of the startTime attribute.
|
int |
getStatus()
Get the value of the status attribute.
|
int |
getSubmissionTime()
Get the value of the submissionTime attribute.
|
double |
getUsage(java.lang.String key)
Get the usage attribute for a key.
|
int |
getUsageCount()
Get the number of keys which have the attribute usage set.
|
java.util.Set<java.lang.String> |
getUsageKeys()
Get the set of keys which have the attribute usage set.
|
boolean |
isDoContact()
Get the value of the doContact attribute.
|
boolean |
isSetCwd()
Determine if the cwd attribute is set
|
boolean |
isSetDoContact()
Determine if the doContact attribute is set
|
boolean |
isSetEndTime()
Determine if the endTime attribute is set
|
boolean |
isSetEnvironment()
Determine if any environment attribute is set
|
boolean |
isSetEnvironment(java.lang.String key)
Determine if any environment attribute is for a key is set
|
boolean |
isSetGrantedDestinIdentifier()
Determine if the grantedDestinIdentifier attribute is set
|
boolean |
isSetId()
Determine if the id attribute is set
|
boolean |
isSetName()
Determine if the name attribute is set
|
boolean |
isSetOsjobid()
Determine if the osjobid attribute is set
|
boolean |
isSetPathAliases()
Determine if the pathAliases attribute is set
|
boolean |
isSetPid()
Determine if the pid attribute is set
|
boolean |
isSetPreviousUsage()
Determine if any previousUsage attribute is set
|
boolean |
isSetPreviousUsage(java.lang.String key)
Determine if any previousUsage attribute is for a key is set
|
boolean |
isSetReportedUsage()
Determine if any reportedUsage attribute is set
|
boolean |
isSetReportedUsage(java.lang.String key)
Determine if any reportedUsage attribute is for a key is set
|
boolean |
isSetScaledUsage()
Determine if any scaledUsage attribute is set
|
boolean |
isSetScaledUsage(java.lang.String key)
Determine if any scaledUsage attribute is for a key is set
|
boolean |
isSetStartTime()
Determine if the startTime attribute is set
|
boolean |
isSetStatus()
Determine if the status attribute is set
|
boolean |
isSetSubmissionTime()
Determine if the submissionTime attribute is set
|
boolean |
isSetUsage()
Determine if any usage attribute is set
|
boolean |
isSetUsage(java.lang.String key)
Determine if any usage attribute is for a key is set
|
void |
putEnvironment(java.lang.String key,
java.lang.String value)
Put the attribute environment for a key.
|
void |
putPreviousUsage(java.lang.String key,
double value)
Put the attribute previousUsage for a key.
|
void |
putReportedUsage(java.lang.String key,
double value)
Put the attribute reportedUsage for a key.
|
void |
putScaledUsage(java.lang.String key,
double value)
Put the attribute scaledUsage for a key.
|
void |
putUsage(java.lang.String key,
double value)
Put the attribute usage for a key.
|
void |
removeAllEnvironment()
Remove the attribute environment for all keys.
|
void |
removeAllGrantedDestinIdentifier()
Remove all com.sun.grid.jgdi.configuration.JG attributes.
|
void |
removeAllPathAliases()
Remove all com.sun.grid.jgdi.configuration.PathAlias attributes.
|
void |
removeAllPreviousUsage()
Remove the attribute previousUsage for all keys.
|
void |
removeAllReportedUsage()
Remove the attribute reportedUsage for all keys.
|
void |
removeAllScaledUsage()
Remove the attribute scaledUsage for all keys.
|
void |
removeAllUsage()
Remove the attribute usage for all keys.
|
java.lang.String |
removeEnvironment(java.lang.String key)
remove the attribute environment for a key.
|
JG |
removeGrantedDestinIdentifier(int index)
Remote a com.sun.grid.jgdi.configuration.JG attribute at an index.
|
boolean |
removeGrantedDestinIdentifier(JG agrantedDestinIdentifier)
Remote a specific com.sun.grid.jgdi.configuration.JG attribute.
|
PathAlias |
removePathAliases(int index)
Remote a com.sun.grid.jgdi.configuration.PathAlias attribute at an index.
|
boolean |
removePathAliases(PathAlias apathAliases)
Remote a specific com.sun.grid.jgdi.configuration.PathAlias attribute.
|
java.lang.Double |
removePreviousUsage(java.lang.String key)
remove the attribute previousUsage for a key.
|
java.lang.Double |
removeReportedUsage(java.lang.String key)
remove the attribute reportedUsage for a key.
|
java.lang.Double |
removeScaledUsage(java.lang.String key)
remove the attribute scaledUsage for a key.
|
java.lang.Double |
removeUsage(java.lang.String key)
remove the attribute usage for a key.
|
void |
setCwd(java.lang.String aCwd)
Set the cwd attribute.
|
void |
setDoContact(boolean aDoContact)
Set the doContact attribute.
|
void |
setEndTime(int aEndTime)
Set the endTime attribute.
|
void |
setGrantedDestinIdentifier(int index,
JG agrantedDestinIdentifier)
Set a com.sun.grid.jgdi.configuration.JG attribute.
|
void |
setId(java.lang.String aId)
Set the id attribute.
|
void |
setName(java.lang.String aName)
Set the name attribute.
|
void |
setOsjobid(java.lang.String aOsjobid)
Set the osjobid attribute.
|
void |
setPathAliases(int index,
PathAlias apathAliases)
Set a com.sun.grid.jgdi.configuration.PathAlias attribute.
|
void |
setPid(int aPid)
Set the pid attribute.
|
void |
setStartTime(int aStartTime)
Set the startTime attribute.
|
void |
setStatus(int aStatus)
Set the status attribute.
|
void |
setSubmissionTime(int aSubmissionTime)
Set the submissionTime attribute.
|
java.lang.String |
toString() |
getParent, getPathName, getRoot, setParent
public PETaskImpl()
public PETaskImpl(boolean initWithDefaultValues)
initWithDefaultValues
- if true
the new instance will
be initialized with the default values as defined
in the cull definition.public PETaskImpl(java.lang.String id)
public boolean isSetId()
public void setId(java.lang.String aId)
public java.lang.String getId()
public boolean isSetName()
public void setName(java.lang.String aName)
setName
in interface PETask
setName
in class GEObjectImpl
aName
- the new value for the name attributepublic java.lang.String getName()
public boolean isSetStatus()
isSetStatus
in interface PETask
true
if the status attribute is setpublic void setStatus(int aStatus)
public int getStatus()
public void addGrantedDestinIdentifier(JG agrantedDestinIdentifier)
addGrantedDestinIdentifier
in interface PETask
agrantedDestinIdentifier
- the new com.sun.grid.jgdi.configuration.JG attributepublic void setGrantedDestinIdentifier(int index, JG agrantedDestinIdentifier)
setGrantedDestinIdentifier
in interface PETask
index
- index of the com.sun.grid.jgdi.configuration.JG attributeagrantedDestinIdentifier
- the new com.sun.grid.jgdi.configuration.JG attributepublic void removeAllGrantedDestinIdentifier()
removeAllGrantedDestinIdentifier
in interface PETask
public JG removeGrantedDestinIdentifier(int index)
removeGrantedDestinIdentifier
in interface PETask
index
- the index of the com.sun.grid.jgdi.configuration.JG attribute which should be
removednull
if
no attribute at this index is storedpublic boolean removeGrantedDestinIdentifier(JG agrantedDestinIdentifier)
removeGrantedDestinIdentifier
in interface PETask
agrantedDestinIdentifier
- the com.sun.grid.jgdi.configuration.JG attribute which should be
removedtrue
if the com.sun.grid.jgdi.configuration.JG attribute has been removedpublic java.util.List<JG> getGrantedDestinIdentifierList()
getGrantedDestinIdentifierList
in interface PETask
public int getGrantedDestinIdentifierCount()
getGrantedDestinIdentifierCount
in interface PETask
public JG getGrantedDestinIdentifier(int index)
getGrantedDestinIdentifier
in interface PETask
index
- the index of the com.sun.grid.jgdi.configuration.JG attribute which should be
removedpublic boolean isSetGrantedDestinIdentifier()
isSetGrantedDestinIdentifier
in interface PETask
true
if the grantedDestinIdentifier attribute is setpublic boolean isSetPid()
public void setPid(int aPid)
public int getPid()
public boolean isSetOsjobid()
isSetOsjobid
in interface PETask
true
if the osjobid attribute is setpublic void setOsjobid(java.lang.String aOsjobid)
setOsjobid
in interface PETask
aOsjobid
- the new value for the osjobid attributepublic java.lang.String getOsjobid()
getOsjobid
in interface PETask
public void putUsage(java.lang.String key, double value)
Put the attribute usage for a key.
public double getDefaultUsage()
Get the default value of the attribute usage.
getDefaultUsage
in interface PETask
java.lang.IllegalStateException
- if the default value is not setpublic double getUsage(java.lang.String key)
Get the usage attribute for a key.
public java.lang.Double removeUsage(java.lang.String key)
remove the attribute usage for a key.
removeUsage
in interface PETask
key
- tje keynull
if the value attribute was not defined for the key.public void removeAllUsage()
Remove the attribute usage for all keys.
removeAllUsage
in interface PETask
public java.util.Set<java.lang.String> getUsageKeys()
getUsageKeys
in interface PETask
public int getUsageCount()
getUsageCount
in interface PETask
public boolean isSetUsage()
isSetUsage
in interface PETask
true
if the usage attribute is setpublic boolean isSetUsage(java.lang.String key)
isSetUsage
in interface PETask
key
- the keytrue
if the usage attribute is setpublic void putScaledUsage(java.lang.String key, double value)
Put the attribute scaledUsage for a key.
putScaledUsage
in interface PETask
key
- the keyvalue
- the valuepublic double getDefaultScaledUsage()
Get the default value of the attribute scaledUsage.
getDefaultScaledUsage
in interface PETask
java.lang.IllegalStateException
- if the default value is not setpublic double getScaledUsage(java.lang.String key)
Get the scaledUsage attribute for a key.
getScaledUsage
in interface PETask
key
- the keypublic java.lang.Double removeScaledUsage(java.lang.String key)
remove the attribute scaledUsage for a key.
removeScaledUsage
in interface PETask
key
- tje keynull
if the value attribute was not defined for the key.public void removeAllScaledUsage()
Remove the attribute scaledUsage for all keys.
removeAllScaledUsage
in interface PETask
public java.util.Set<java.lang.String> getScaledUsageKeys()
getScaledUsageKeys
in interface PETask
public int getScaledUsageCount()
getScaledUsageCount
in interface PETask
public boolean isSetScaledUsage()
isSetScaledUsage
in interface PETask
true
if the scaledUsage attribute is setpublic boolean isSetScaledUsage(java.lang.String key)
isSetScaledUsage
in interface PETask
key
- the keytrue
if the scaledUsage attribute is setpublic void putReportedUsage(java.lang.String key, double value)
Put the attribute reportedUsage for a key.
putReportedUsage
in interface PETask
key
- the keyvalue
- the valuepublic double getDefaultReportedUsage()
Get the default value of the attribute reportedUsage.
getDefaultReportedUsage
in interface PETask
java.lang.IllegalStateException
- if the default value is not setpublic double getReportedUsage(java.lang.String key)
Get the reportedUsage attribute for a key.
getReportedUsage
in interface PETask
key
- the keypublic java.lang.Double removeReportedUsage(java.lang.String key)
remove the attribute reportedUsage for a key.
removeReportedUsage
in interface PETask
key
- tje keynull
if the value attribute was not defined for the key.public void removeAllReportedUsage()
Remove the attribute reportedUsage for all keys.
removeAllReportedUsage
in interface PETask
public java.util.Set<java.lang.String> getReportedUsageKeys()
getReportedUsageKeys
in interface PETask
public int getReportedUsageCount()
getReportedUsageCount
in interface PETask
public boolean isSetReportedUsage()
isSetReportedUsage
in interface PETask
true
if the reportedUsage attribute is setpublic boolean isSetReportedUsage(java.lang.String key)
isSetReportedUsage
in interface PETask
key
- the keytrue
if the reportedUsage attribute is setpublic void putPreviousUsage(java.lang.String key, double value)
Put the attribute previousUsage for a key.
putPreviousUsage
in interface PETask
key
- the keyvalue
- the valuepublic double getDefaultPreviousUsage()
Get the default value of the attribute previousUsage.
getDefaultPreviousUsage
in interface PETask
java.lang.IllegalStateException
- if the default value is not setpublic double getPreviousUsage(java.lang.String key)
Get the previousUsage attribute for a key.
getPreviousUsage
in interface PETask
key
- the keypublic java.lang.Double removePreviousUsage(java.lang.String key)
remove the attribute previousUsage for a key.
removePreviousUsage
in interface PETask
key
- tje keynull
if the value attribute was not defined for the key.public void removeAllPreviousUsage()
Remove the attribute previousUsage for all keys.
removeAllPreviousUsage
in interface PETask
public java.util.Set<java.lang.String> getPreviousUsageKeys()
getPreviousUsageKeys
in interface PETask
public int getPreviousUsageCount()
getPreviousUsageCount
in interface PETask
public boolean isSetPreviousUsage()
isSetPreviousUsage
in interface PETask
true
if the previousUsage attribute is setpublic boolean isSetPreviousUsage(java.lang.String key)
isSetPreviousUsage
in interface PETask
key
- the keytrue
if the previousUsage attribute is setpublic boolean isSetSubmissionTime()
isSetSubmissionTime
in interface PETask
true
if the submissionTime attribute is setpublic void setSubmissionTime(int aSubmissionTime)
setSubmissionTime
in interface PETask
aSubmissionTime
- the new value for the submissionTime attributepublic int getSubmissionTime()
getSubmissionTime
in interface PETask
public boolean isSetStartTime()
isSetStartTime
in interface PETask
true
if the startTime attribute is setpublic void setStartTime(int aStartTime)
setStartTime
in interface PETask
aStartTime
- the new value for the startTime attributepublic int getStartTime()
getStartTime
in interface PETask
public boolean isSetEndTime()
isSetEndTime
in interface PETask
true
if the endTime attribute is setpublic void setEndTime(int aEndTime)
setEndTime
in interface PETask
aEndTime
- the new value for the endTime attributepublic int getEndTime()
getEndTime
in interface PETask
public boolean isSetCwd()
public void setCwd(java.lang.String aCwd)
public java.lang.String getCwd()
public void addPathAliases(PathAlias apathAliases)
addPathAliases
in interface PETask
apathAliases
- the new com.sun.grid.jgdi.configuration.PathAlias attributepublic void setPathAliases(int index, PathAlias apathAliases)
setPathAliases
in interface PETask
index
- index of the com.sun.grid.jgdi.configuration.PathAlias attributeapathAliases
- the new com.sun.grid.jgdi.configuration.PathAlias attributepublic void removeAllPathAliases()
removeAllPathAliases
in interface PETask
public PathAlias removePathAliases(int index)
removePathAliases
in interface PETask
index
- the index of the com.sun.grid.jgdi.configuration.PathAlias attribute which should be
removednull
if
no attribute at this index is storedpublic boolean removePathAliases(PathAlias apathAliases)
removePathAliases
in interface PETask
apathAliases
- the com.sun.grid.jgdi.configuration.PathAlias attribute which should be
removedtrue
if the com.sun.grid.jgdi.configuration.PathAlias attribute has been removedpublic java.util.List<PathAlias> getPathAliasesList()
getPathAliasesList
in interface PETask
public int getPathAliasesCount()
getPathAliasesCount
in interface PETask
public PathAlias getPathAliases(int index)
getPathAliases
in interface PETask
index
- the index of the com.sun.grid.jgdi.configuration.PathAlias attribute which should be
removedpublic boolean isSetPathAliases()
isSetPathAliases
in interface PETask
true
if the pathAliases attribute is setpublic void putEnvironment(java.lang.String key, java.lang.String value)
Put the attribute environment for a key.
putEnvironment
in interface PETask
key
- the keyvalue
- the valuepublic java.lang.String getDefaultEnvironment()
Get the default value of the attribute environment.
getDefaultEnvironment
in interface PETask
java.lang.IllegalStateException
- if the default value is not setpublic java.lang.String getEnvironment(java.lang.String key)
Get the environment attribute for a key.
getEnvironment
in interface PETask
key
- the keypublic java.lang.String removeEnvironment(java.lang.String key)
remove the attribute environment for a key.
removeEnvironment
in interface PETask
key
- tje keynull
if the value attribute was not defined for the key.public void removeAllEnvironment()
Remove the attribute environment for all keys.
removeAllEnvironment
in interface PETask
public java.util.Set<java.lang.String> getEnvironmentKeys()
getEnvironmentKeys
in interface PETask
public int getEnvironmentCount()
getEnvironmentCount
in interface PETask
public boolean isSetEnvironment()
isSetEnvironment
in interface PETask
true
if the environment attribute is setpublic boolean isSetEnvironment(java.lang.String key)
isSetEnvironment
in interface PETask
key
- the keytrue
if the environment attribute is setpublic boolean isSetDoContact()
isSetDoContact
in interface PETask
true
if the doContact attribute is setpublic void setDoContact(boolean aDoContact)
setDoContact
in interface PETask
aDoContact
- the new value for the doContact attributepublic boolean isDoContact()
isDoContact
in interface PETask
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
Copyright © 2007 Sun Microsystems, Inc. All rights reserved.