com.ace.moab.api.jobs
Enum JobBlockReasonType

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

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

An enumeration of the possible reasons a job might be blocked.

Author:
Scott Brown

Enum Constant Summary
ACTIVEPOLICY
           
BADUSER
           
DEPENDENCY
           
ESTATE
           
FAIRSHARE
           
HOLD
           
IDLEPOLICY
           
LOCALPOLICY
           
NOCLASS
           
NODATA
           
NORESOURCE
           
NOTIME
           
PARTITIONACCESS
           
PRIORITY
           
RMSUBMISSIONFAILURE
           
STARTDATE
           
STATE
           
SYSLIMITS
           
 
Method Summary
static java.util.List<java.lang.String> getJobBlockReasonNames()
          Returns a list of the names of the job block reasons.
static JobBlockReasonType parseString(java.lang.String string)
          Attempts to parse a string and convert it into a corresponding JobBlockReasonType enum value.
static JobBlockReasonType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static JobBlockReasonType[] 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

ACTIVEPOLICY

public static final JobBlockReasonType ACTIVEPOLICY

BADUSER

public static final JobBlockReasonType BADUSER

DEPENDENCY

public static final JobBlockReasonType DEPENDENCY

ESTATE

public static final JobBlockReasonType ESTATE

FAIRSHARE

public static final JobBlockReasonType FAIRSHARE

HOLD

public static final JobBlockReasonType HOLD

IDLEPOLICY

public static final JobBlockReasonType IDLEPOLICY

LOCALPOLICY

public static final JobBlockReasonType LOCALPOLICY

NOCLASS

public static final JobBlockReasonType NOCLASS

NODATA

public static final JobBlockReasonType NODATA

NORESOURCE

public static final JobBlockReasonType NORESOURCE

NOTIME

public static final JobBlockReasonType NOTIME

PARTITIONACCESS

public static final JobBlockReasonType PARTITIONACCESS

PRIORITY

public static final JobBlockReasonType PRIORITY

RMSUBMISSIONFAILURE

public static final JobBlockReasonType RMSUBMISSIONFAILURE

STARTDATE

public static final JobBlockReasonType STARTDATE

STATE

public static final JobBlockReasonType STATE

SYSLIMITS

public static final JobBlockReasonType SYSLIMITS
Method Detail

values

public static final JobBlockReasonType[] 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(JobBlockReasonType c : JobBlockReasonType.values())
        System.out.println(c);

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

valueOf

public static JobBlockReasonType 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

getJobBlockReasonNames

public static java.util.List<java.lang.String> getJobBlockReasonNames()
Returns a list of the names of the job block reasons.

Returns:
the names of the job block reasons.

parseString

public static JobBlockReasonType parseString(java.lang.String string)
                                      throws java.text.ParseException
Attempts to parse a string and convert it into a corresponding JobBlockReasonType enum value.

Parameters:
string - the string to parse into a corresponding JobBlockReasonType enum value.
Returns:
the corresponding JobBlockReasonType enum value.
Throws:
java.text.ParseException - thrown if the string cannot be parsed into a respective JobBlockReasonType.


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