|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ace.moab.api.triggers.Trigger
public class Trigger
This class represents a Moab trigger. Moab can launch events or triggers based on certain events. For example, an administrator may want to send an email to the owner of a particular reservation when the usage drops below a specific threshold. Or a user may want to launch an evaluation script 5 minutes before his job is scheduled for completion. Triggers can be associated with jobs, nodes, reservations, or the core scheduler and enable actions to be taken when the specified event, offset, and threshold criteria are satisfied.
Field Summary | |
---|---|
static int |
UNDEFINED
Used to allow certain values to be undefined. |
Constructor Summary | |
---|---|
Trigger()
|
Method Summary | |
---|---|
int |
compareTo(Trigger trigger)
|
java.lang.String |
getAction()
Getter for property Action. |
TriggerActionType |
getActionType()
Getter for property ActionType. |
long |
getActualLaunchTime()
Getter for property LaunchTime. |
long |
getBlockTime()
Getter for property MoabTimeout. |
java.lang.String |
getDescription()
Get the description of this trigger. |
long |
getEstimatedLaunchTime()
Getter for property EventLaunchTime. |
TriggerEventType |
getEventType()
Getter for property TriggerType. |
long |
getFailOffset()
Get the fail time offset in seconds |
TriggerFlags |
getFlags()
Get the flags belonging to this trigger |
long |
getLaunchOffset()
Getter for property Offset. |
java.lang.String |
getMessage()
Getter for property MoabMessages. |
java.lang.String |
getMoabCreateCommand()
Creates the full scheduler command necessary to add a trigger to Moab dynamically. |
java.lang.String |
getMoabModifyCommand()
Creates a Moab command necessary to modify key attributes of the trigger. |
java.lang.String |
getObjectID()
Getter for property ObjectID. |
java.lang.String |
getObjectType()
Getter for property ObjectType. |
TriggerPeriod |
getPeriod()
|
int |
getProcessID()
Getter for property ProcessID. |
long |
getRearmDelayTime()
Getter for property RearmDelayTime. |
java.util.Set<TriggerVariable> |
getRequiredVariables()
Getter for property RequiredValues. |
java.lang.String |
getRequiredVariablesString()
Get the required variables as a string. |
java.util.Set<TriggerVariable> |
getSetVariables()
Getter for property SetValues. |
java.lang.String |
getSetVariablesString()
Get the list of variables this trigger sets as a string. |
java.lang.String |
getStandardError()
Getter for property StandardError. |
java.lang.String |
getStandardOut()
Getter for property StandardOut. |
TriggerState |
getState()
Getter for property TriggerState. |
TriggerThreshold |
getThreshold()
Getter for property Threshold. |
long |
getTimeout()
Getter for property TriggerTimeout. |
java.lang.String |
getTriggerCommandAttributes()
Gets a Moab-compatible form of trigger attributes to attach to a moab command For example, 'mschedctl -m trigger' + getTriggerCommandAttributes could be used to create a trigger with the attributes specified in this object |
java.lang.String |
getTriggerID()
Getter for property TriggerID. |
java.lang.String |
getTriggerName()
Getter for property TriggerName. |
java.util.Set<TriggerVariable> |
getUnsetVariables()
Set the variables that are unset by this trigger. |
java.lang.String |
getUnsetVariablesString()
Get the variables that are unset by this trigger as a string. |
boolean |
isFailureDetected()
Getter for property FailureDetected. |
boolean |
isTriggerCompleted()
Getter for property TriggerCompleted. |
void |
setAction(java.lang.String Action)
Setter for property Action. |
void |
setActionType(TriggerActionType actionType)
Setter for property ActionType. |
void |
setActualLaunchTime(long actualLaunchTime)
Setter for property LaunchTime. |
void |
setBlockTime(long blockTime)
Setter for property MoabTimeout. |
void |
setDescription(java.lang.String description)
Set the description of this trigger. |
void |
setEstimatedLaunchTime(long estimatedLaunchTime)
Setter for property EventLaunchTime. |
void |
setEventType(TriggerEventType eventType)
Setter for property TriggerType. |
void |
setFailOffset(long failOffset)
Set the fail offset time in seconds |
void |
setFailureDetected(boolean FailureDetected)
Setter for property FailureDetected. |
void |
setFlags(TriggerFlags flags)
Sets the flags that belong to this trigger. |
void |
setId(java.lang.String TriggerID)
Setter for property TriggerID. |
void |
setLaunchOffset(long offset)
Setter for property Offset. |
void |
setMessage(java.lang.String message)
Setter for property MoabMessages. |
void |
setName(java.lang.String TriggerName)
Setter for property TriggerName. |
void |
setObjectID(java.lang.String ObjectID)
Setter for property ObjectID. |
void |
setObjectType(java.lang.String ObjectType)
Setter for property ObjectType. |
void |
setPeriod(TriggerPeriod period)
Set the trigger's period. |
void |
setProcessID(int processID)
Setter for property ProcessID. |
void |
setRearmDelayTime(long rearmDelayTime)
Setter for property RearmDelayTime. |
void |
setRequiredVariables(java.util.Set<TriggerVariable> RequiredValues)
Setter for property RequiredValues. |
void |
setSetVariables(java.util.Set<TriggerVariable> setVariables)
Setter for property SetValues. |
void |
setStandardErrorOutput(java.lang.String StandardError)
Setter for property StandardError. |
void |
setStandardOutOutput(java.lang.String StandardOut)
Setter for property StandardOut. |
void |
setState(TriggerState state)
Setter for property TriggerState. |
void |
setThreshold(TriggerThreshold thresholdStr)
Setter for property Threshold. |
void |
setTimeout(long timeout)
Setter for property TriggerTimeout. |
void |
setTriggerCompleted(boolean TriggerCompleted)
Setter for property TriggerCompleted. |
void |
setUnsetVariables(java.util.Set<TriggerVariable> unsetVariables)
Set the variables that are unset by this trigger. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int UNDEFINED
Constructor Detail |
---|
public Trigger()
Method Detail |
---|
public java.lang.String getAction()
public TriggerActionType getActionType()
public long getActualLaunchTime()
public long getBlockTime()
public java.lang.String getDescription()
public long getEstimatedLaunchTime()
public TriggerEventType getEventType()
public long getFailOffset()
public TriggerFlags getFlags()
public long getLaunchOffset()
public java.lang.String getMessage()
public java.lang.String getMoabCreateCommand()
public java.lang.String getMoabModifyCommand()
public java.lang.String getObjectID()
public java.lang.String getObjectType()
public TriggerPeriod getPeriod()
public int getProcessID()
public long getRearmDelayTime()
public java.util.Set<TriggerVariable> getRequiredVariables()
public java.lang.String getRequiredVariablesString()
public java.util.Set<TriggerVariable> getSetVariables()
public java.lang.String getSetVariablesString()
public java.lang.String getStandardError()
public java.lang.String getStandardOut()
public TriggerState getState()
public TriggerThreshold getThreshold()
public long getTimeout()
public java.lang.String getTriggerID()
public java.lang.String getTriggerName()
public java.util.Set<TriggerVariable> getUnsetVariables()
public java.lang.String getUnsetVariablesString()
public boolean isFailureDetected()
public boolean isTriggerCompleted()
public void setAction(java.lang.String Action)
Action
- New value of property Action.public void setActionType(TriggerActionType actionType)
actionType
- New value of property ActionType.public void setActualLaunchTime(long actualLaunchTime)
actualLaunchTime
- New value of property LaunchTime.public void setBlockTime(long blockTime)
blockTime
- New value of property MoabTimeout.public void setDescription(java.lang.String description)
description
- the description of the trigger.public void setEstimatedLaunchTime(long estimatedLaunchTime)
estimatedLaunchTime
- New value of property EventLaunchTime.public void setEventType(TriggerEventType eventType)
eventType
- New value of property TriggerType.public void setFailOffset(long failOffset)
failOffset
- the fail offset time in secondspublic void setFailureDetected(boolean FailureDetected)
FailureDetected
- New value of property FailureDetected.public void setFlags(TriggerFlags flags)
flags
- the flags that belong to this trigger.public void setId(java.lang.String TriggerID)
TriggerID
- New value of property TriggerID.public void setLaunchOffset(long offset)
offset
- New value of property Offset.public void setMessage(java.lang.String message)
message
- New value of property MoabMessages.public void setName(java.lang.String TriggerName)
TriggerName
- New value of property TriggerName.public void setObjectID(java.lang.String ObjectID)
ObjectID
- New value of property ObjectID.public void setObjectType(java.lang.String ObjectType)
ObjectType
- New value of property ObjectType.public void setPeriod(TriggerPeriod period)
period
- the trigger period.public void setProcessID(int processID)
processID
- New value of property ProcessID.public void setRearmDelayTime(long rearmDelayTime)
rearmDelayTime
- New value of property RearmDelayTime.public void setRequiredVariables(java.util.Set<TriggerVariable> RequiredValues)
RequiredValues
- New value of property RequiredValues.public void setSetVariables(java.util.Set<TriggerVariable> setVariables)
setVariables
- New value of property SetValues.public void setStandardErrorOutput(java.lang.String StandardError)
StandardError
- New value of property StandardError.public void setStandardOutOutput(java.lang.String StandardOut)
StandardOut
- New value of property StandardOut.public void setState(TriggerState state)
state
- New value of property TriggerState.public void setThreshold(TriggerThreshold thresholdStr)
thresholdStr
- New value of property Threshold.public void setTimeout(long timeout)
timeout
- New value of property TriggerTimeout.public void setTriggerCompleted(boolean TriggerCompleted)
TriggerCompleted
- New value of property TriggerCompleted.public void setUnsetVariables(java.util.Set<TriggerVariable> unsetVariables)
unsetVariables
- the variables that are unset by this trigger.public java.lang.String getTriggerCommandAttributes()
public int compareTo(Trigger trigger)
compareTo
in interface java.lang.Comparable<Trigger>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |