Groovy Documentation

com.ace.mws.jobs
[Groovy] Enum DependencyType

java.lang.Object
  com.ace.mws.jobs.DependencyType

enum DependencyType

Represents the type of a job dependency.


Enum Constant Summary
BEFORE

Job may start at any time before specified jobs have started execution.

BEFOREANY

Job may start at any time before all specified jobs have completed regardless of completion status.

BEFORENOTOK

Job may start at any time before any specified jobs have completed unsuccessfully.

BEFOREOK

Job may start at any time before all specified jobs have successfully completed.

HIBERNATE

Job was set to Hibernate mode.

JOBCOMPLETE

Job may start at any time after all specified jobs have completed regardless of completion status.

JOBFAILEDCOMPLETE

Job may start at any time after any specified jobs have completed unsuccessfully.

JOBSTART

Job may start at any time after specified jobs have started execution.

JOBSUCCESSFULCOMPLETE

Job may be start at any time after all specified jobs have successfully completed.

SET

Job will wait until a variable on a Moab object is set before starting.

SYNCCOUNT

This job will wait until it can start simultaneously with synccount jobs of type syncwith that have all specified this synccount job is their master job.

SYNCWITH

Job will wait until it can start simultaneously with a master job

 
Property Summary
String commandName

The name associated with this dependency used in making job submit and modification requests.

String humanName

This is the human readable name given to the dependency.

 
Constructor Summary
private DependencyType(String cmdName, String humanName)

Create a dependency of the given name

 
Method Summary
static DependencyType parse(Object object)

Parses a string and converts it into a DependencyType enum value if possible.

DependencyType valueOf(String name)

Returns the enum constant of this type with the specified name.

DependencyType[] values()

Returns an array containing the constants of this enum type, in the order they are declared.

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Enum Constant Detail

BEFORE

DependencyType BEFORE
Job may start at any time before specified jobs have started execution. NOTE: Only reported to Moab and then reported back. Moab currently cannot internally handle this type of dependency.


BEFOREANY

DependencyType BEFOREANY
Job may start at any time before all specified jobs have completed regardless of completion status. NOTE: Only reported to Moab and then reported back. Moab currently cannot internally handle this type of dependency.


BEFORENOTOK

DependencyType BEFORENOTOK
Job may start at any time before any specified jobs have completed unsuccessfully. NOTE: Only reported to Moab and then reported back. Moab currently cannot internally handle this type of dependency.


BEFOREOK

DependencyType BEFOREOK
Job may start at any time before all specified jobs have successfully completed. NOTE: Only reported to Moab and then reported back. Moab currently cannot internally handle this type of dependency.


HIBERNATE

DependencyType HIBERNATE
Job was set to Hibernate mode.


JOBCOMPLETE

DependencyType JOBCOMPLETE
Job may start at any time after all specified jobs have completed regardless of completion status.


JOBFAILEDCOMPLETE

DependencyType JOBFAILEDCOMPLETE
Job may start at any time after any specified jobs have completed unsuccessfully.


JOBSTART

DependencyType JOBSTART
Job may start at any time after specified jobs have started execution.


JOBSUCCESSFULCOMPLETE

DependencyType JOBSUCCESSFULCOMPLETE
Job may be start at any time after all specified jobs have successfully completed.


SET

DependencyType SET
Job will wait until a variable on a Moab object is set before starting.


SYNCCOUNT

DependencyType SYNCCOUNT
This job will wait until it can start simultaneously with synccount jobs of type syncwith that have all specified this synccount job is their master job.


SYNCWITH

DependencyType SYNCWITH
Job will wait until it can start simultaneously with a master job


 
Property Detail

commandName

String commandName
The name associated with this dependency used in making job submit and modification requests. Note that this is not necessarily the name Moab will return in the output of a job query - that name is the actual enum name.


humanName

String humanName
This is the human readable name given to the dependency. This field should be used when displaying general information to a user that might not care or know about the specifics of all the dependency types.


 
Constructor Detail

DependencyType

private DependencyType(String cmdName, String humanName)
Create a dependency of the given name
Parameters:
cmdName - The name of dependency type used when sending submit/modification requests to Moab
humanName - The human readable name of the dependency type


 
Method Detail

parse

static DependencyType parse(Object object)
Parses a string and converts it into a DependencyType enum value if possible. Uses either Moab or command style dependency names.
throws:
IllegalArgumentException if the String cannot be parsed.
throws:
java.text.ParseException
Parameters:
object - the object to be parsed.
Returns:
the corresponding DependencyType enum value.


valueOf

DependencyType valueOf(String name)
Returns the enum constant of this type with the specified name.


values

DependencyType[] values()
Returns an array containing the constants of this enum type, in the order they are declared.


 

Groovy Documentation