|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ace.moab.api.credential.Credential
public class Credential
This class represents a Moab Credential.
Constructor Summary | |
---|---|
Credential()
Creates a credential with no identifying information. |
|
Credential(CredentialType type,
java.lang.String id)
Creates a credential with a specified type and id. |
Method Summary | |
---|---|
java.util.Vector<java.lang.String> |
getAccountList()
Get the list of accounts that have access to this credential, may be null |
java.lang.String |
getClassDefault()
Get the default class. |
java.util.Vector<java.lang.String> |
getClassList()
Get the list of classes with access to this credential. |
java.lang.String |
getComment()
Associates a comment string with the target credential. |
double |
getCredits()
Returns the number of credits given to this credential. |
double |
getDedicatedResourceCost()
Gets the dedicated resource cost for the credential. |
java.lang.String |
getDefaultAccount()
Get the default account. |
java.lang.String |
getDefaultGroup()
Get the default group. |
java.lang.String |
getDefaultQoS()
Get the default QoS for the credential. |
java.lang.String |
getDefaultUser()
Get the default user. |
java.lang.Long |
getDefaultWallClock()
Get the default wall clock limit per job. |
java.lang.String |
getEmailAddress()
Specifies the target email address for the user. |
double |
getFairShareTarget()
Returns the target percentage or absolute usage value target wanted in association with the credential. |
com.moab.api.fairshare.FairshareType |
getFairshareType()
Returns the type of fairshare to use in association with the credential. |
java.util.Vector<java.lang.String> |
getGroupList()
Get the list of groups that have access to this credential. |
java.lang.String |
getID()
Get the ID for the credential. |
java.lang.Long |
getIdleMaxWallClock()
|
double |
getLienCredits()
Returns the number of credits that have a lien on them. |
java.lang.Long |
getMaxWallClock()
Returns the maximum wallclock limit this credential is allowed per job. |
java.lang.Long |
getMinWallClock()
Get the minimum wallclock limit represented in seconds. |
java.lang.String |
getPartition()
Get the partition for the credential. |
java.lang.String |
getPartitionDefault()
Get the default partition for the credential. |
java.lang.Long |
getPriority()
Get the priority of the credential. |
QOSCredentialInformation |
getQOSInformation()
Get all attributes directly related to QOS credentials for this credential. |
java.util.Vector<java.lang.String> |
getQosList()
Get the list of QOS levels that are associated with this credential. |
java.lang.String |
getReservation()
Get the reservation associated with this credential. |
ResourceUsage |
getResourceUsage()
Get the current resource usage of this credential. |
java.lang.String |
getRmList()
Get the list of resource managers. |
CredentialType |
getType()
Return the type of the credential (could be USER, QOS, CLASS, etc). |
double |
getUsedCredits()
Returns the number of credits used by this credential. |
java.util.Vector<java.lang.String> |
getUserList()
Get the list of Users that are associated with this credential. |
double |
getUtilizedResourceCost()
Get the value for the utilized resource cost. |
static boolean |
hasChanged(java.lang.String credentialValue,
java.lang.String textField)
|
boolean |
hasThresholds()
Returns true if the credential is a QoS and if the QoS has at least one threshold value set. |
boolean |
isProfilingEnabled()
If true, statistical profiling is kept track for this credential. |
void |
setAccountList(java.util.Vector<java.lang.String> accountList)
Set the list of accounts that are associated with this credential. |
void |
setClassDefault(java.lang.String defaultClass)
Set the default class value. |
void |
setClassList(java.util.Vector<java.lang.String> classList)
Set the list of classes that have access to the object associated with this credential. |
void |
setComment(java.lang.String comments)
Set the value of the comment for this credential. |
void |
setCredits(double credits)
Sets the number of credits for this credential. |
void |
setDedicatedResourceCost(double dedicatedResourceCost)
Set the dedicated resource cost for this credential. |
void |
setDefaultAccount(java.lang.String defaultAccount)
Set the default account for the credential. |
void |
setDefaultGroup(java.lang.String defaultGroup)
The default group used by the credential. |
void |
setDefaultQoS(java.lang.String defaultQoS)
Set the default QoS used by this credential. |
void |
setDefaultUser(java.lang.String defaultUser)
The default user associated with the credential. |
void |
setDefaultValues(Credential credential)
Sets Default Values for this credential. |
void |
setDefaultWallClock(java.lang.Long defaultWallClock)
Set the default wall clock value that will be assigned to a submitted job if the user does not specify the wall clock time. |
void |
setEmailAddress(java.lang.String emailAddress)
Set the email address. |
void |
setEnableProfiling(boolean enableProfiling)
Specify whether profiling should be enabled or not. |
void |
setFairShareTarget(double fairshareTarget)
Set the target fairshare amount for this credential. |
void |
setFairshareType(com.moab.api.fairshare.FairshareType fairsharetype)
Set the fairshare type associated with the fairshare target value. |
void |
setGroupList(java.util.Vector<java.lang.String> groupList)
Set the group list associated with the credential. |
void |
setID(java.lang.String id)
Set the credential ID value. |
void |
setIdleMaxWallClock(java.lang.Long idleMaxWallClock)
Set the idle maximum wall clock time. |
void |
setLienCredits(double lienCredits)
Sets the number of credits associated with this credential that have a lien on them. |
void |
setMaxWallClock(java.lang.Long maxWallClock)
Sets the maximum wallclock time this credential is allowed per job. |
void |
setMinWallClock(java.lang.Long minWallClock)
Set the minimum wall clock value that a user is allowed to specify. |
void |
setPartition(java.lang.String partition)
Set the partition. |
void |
setPartitionDefault(java.lang.String defaultPartition)
Set the default partition used by this credential |
void |
setPriority(java.lang.Long priority)
Set the priority value |
void |
setQOSInformation(QOSCredentialInformation info)
|
void |
setQosList(java.util.Vector<java.lang.String> qosList)
Set the list of QoSes used by this credential. |
void |
setReservation(java.lang.String reservation)
Set the name of the reservation associated with this credential. |
void |
setResourceUsage(ResourceUsage resourceUsage)
Set the resource usage object for the credential. |
void |
setRmList(java.lang.String rmList)
Set the resource manager list. |
void |
setType(CredentialType credentialType)
|
void |
setUsedCredits(double usedCredits)
Sets the number of credits used by this credential. |
void |
setUserList(java.util.Vector<java.lang.String> userList)
Set the list of users that have access to this credential |
void |
setUtilizedResourceCost(double utilizedResourceCost)
Set the utilized resource cost value. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Credential()
public Credential(CredentialType type, java.lang.String id)
type
- the type of credential.id
- the id or name of the credential.Method Detail |
---|
public java.util.Vector<java.lang.String> getAccountList()
public java.lang.String getClassDefault()
public java.util.Vector<java.lang.String> getClassList()
public java.lang.String getComment()
Can be null.
public double getCredits()
public double getDedicatedResourceCost()
public java.lang.String getDefaultAccount()
public java.lang.String getDefaultGroup()
public java.lang.String getDefaultUser()
public java.lang.Long getDefaultWallClock()
public java.lang.String getEmailAddress()
Can be null.
public double getFairShareTarget()
public com.moab.api.fairshare.FairshareType getFairshareType()
public java.util.Vector<java.lang.String> getGroupList()
public java.lang.String getID()
Can be null.
public java.lang.Long getIdleMaxWallClock()
public java.lang.Long getMaxWallClock()
public java.lang.Long getMinWallClock()
public java.lang.String getPartition()
Can be null.
public java.lang.String getPartitionDefault()
Can be null.
public java.lang.Long getPriority()
public java.lang.String getDefaultQoS()
Can be null.
public QOSCredentialInformation getQOSInformation()
InvalidCredentialException
- if this object is not of type QOSpublic java.util.Vector<java.lang.String> getQosList()
Can be null.
public java.lang.String getReservation()
Can be null.
public ResourceUsage getResourceUsage()
public java.lang.String getRmList()
Can be null.
public CredentialType getType()
public double getUsedCredits()
public java.util.Vector<java.lang.String> getUserList()
Can be null.
public double getUtilizedResourceCost()
public boolean hasThresholds()
public boolean isProfilingEnabled()
public void setAccountList(java.util.Vector<java.lang.String> accountList)
Can be null.
accountList
- the list of accountspublic void setClassDefault(java.lang.String defaultClass)
Can be null.
defaultClass
- the default class valuepublic void setClassList(java.util.Vector<java.lang.String> classList)
Can be null.
classList
- the list of classespublic void setComment(java.lang.String comments)
Can be null.
comments
- the comment to be setpublic void setCredits(double credits)
credits
- the number of credits for this credential.public void setDedicatedResourceCost(double dedicatedResourceCost)
dedicatedResourceCost
- the dedicated resource cost for this credentialpublic void setDefaultAccount(java.lang.String defaultAccount)
Can be null.
defaultAccount
- the default accountpublic void setDefaultGroup(java.lang.String defaultGroup)
Can be null.
defaultGroup
- public void setDefaultUser(java.lang.String defaultUser)
Can be null.
defaultUser
- public void setDefaultValues(Credential credential) throws InvalidMoabArgumentException
credential
- The object that contains all resource information that will be
used in the defaults of the original object
InvalidMoabArgumentException
public void setDefaultWallClock(java.lang.Long defaultWallClock)
defaultWallClock
- the default wall clock valuepublic void setEmailAddress(java.lang.String emailAddress)
Can be null.
emailAddress
- public void setEnableProfiling(boolean enableProfiling)
enableProfiling
- true to enable profiling, and false to disable itpublic void setFairShareTarget(double fairshareTarget)
fairshareTarget
- the target fairshare amount for this credential.public void setFairshareType(com.moab.api.fairshare.FairshareType fairsharetype)
fairsharetype
- the fairshare type associated with the fairshare target value.public void setGroupList(java.util.Vector<java.lang.String> groupList)
Can be null.
groupList
- the list of groupspublic void setID(java.lang.String id)
Can be null.
id
- the id of this credentialpublic void setIdleMaxWallClock(java.lang.Long idleMaxWallClock)
idleMaxWallClock
- public void setMaxWallClock(java.lang.Long maxWallClock)
maxWallClock
- the maximum wall clock valuepublic void setMinWallClock(java.lang.Long minWallClock)
minWallClock
- the minimum wall clock valuepublic void setPartition(java.lang.String partition)
Can be null.
partition
- public void setPartitionDefault(java.lang.String defaultPartition)
defaultPartition
- the default partitionpublic void setPriority(java.lang.Long priority)
priority
- public void setDefaultQoS(java.lang.String defaultQoS)
Can be null.
defaultQoS
- public void setQOSInformation(QOSCredentialInformation info) throws InvalidCredentialException
info
- the qOSInformation to set
InvalidCredentialException
public void setQosList(java.util.Vector<java.lang.String> qosList)
Can be null.
qosList
- the list of QoS valuespublic void setReservation(java.lang.String reservation)
Can be null.
reservation
- the reservation namepublic void setResourceUsage(ResourceUsage resourceUsage) throws java.lang.IllegalArgumentException
Can not be null.
resourceUsage
- the resourceUsage to set
java.lang.IllegalArgumentException
public void setRmList(java.lang.String rmList)
Can be null.
rmList
- the list of resource managerspublic void setType(CredentialType credentialType)
credentialType
- public void setUsedCredits(double usedCredits)
usedCredits
- the number of credits used by this credential.public void setUserList(java.util.Vector<java.lang.String> userList)
Can be null.
userList
- the list of users with access to the credentialpublic void setUtilizedResourceCost(double utilizedResourceCost)
Can be null.
utilizedResourceCost
- public static boolean hasChanged(java.lang.String credentialValue, java.lang.String textField)
public double getLienCredits()
public void setLienCredits(double lienCredits)
lienCredits
- the number of credits associated with this credential that
have a lien on them.public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |