com.ace.moab.api.triggers
Enum TriggerEventType

java.lang.Object
  extended by java.lang.Enum<TriggerEventType>
      extended by com.ace.moab.api.triggers.TriggerEventType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TriggerEventType>

public enum TriggerEventType
extends java.lang.Enum<TriggerEventType>

This enum describes the type of event that signals that the trigger can fire. Some events are only applicable to certain objects (i.e. threshold unique for reservations).


Enum Constant Summary
CANCEL
           
CHECKPOINT
           
CREATE
           
END
           
EPOCH
           
FAIL
           
HOLD
           
MIGRATE
           
MODIFY
           
PREEMPT
           
STANDING
           
START
           
THRESHOLD
           
 
Method Summary
static TriggerEventType parseString(java.lang.String string)
          Parses a string and converts it into a TriggerEventType enum value if possible.
static TriggerEventType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TriggerEventType[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CANCEL

public static final TriggerEventType CANCEL

CHECKPOINT

public static final TriggerEventType CHECKPOINT

CREATE

public static final TriggerEventType CREATE

END

public static final TriggerEventType END

EPOCH

public static final TriggerEventType EPOCH

FAIL

public static final TriggerEventType FAIL

HOLD

public static final TriggerEventType HOLD

MIGRATE

public static final TriggerEventType MIGRATE

MODIFY

public static final TriggerEventType MODIFY

PREEMPT

public static final TriggerEventType PREEMPT

STANDING

public static final TriggerEventType STANDING

START

public static final TriggerEventType START

THRESHOLD

public static final TriggerEventType THRESHOLD
Method Detail

values

public static final TriggerEventType[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(TriggerEventType c : TriggerEventType.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static TriggerEventType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

parseString

public static TriggerEventType parseString(java.lang.String string)
                                    throws java.lang.IllegalArgumentException
Parses a string and converts it into a TriggerEventType enum value if possible.

Parameters:
string - the string to be parsed.
Returns:
the corresponding TriggerEventType enum value.
Throws:
java.lang.IllegalArgumentException - if the String cannot be parsed.


Copyright © 2001-2009 Cluster Resources, Inc. All Rights Reserved.