com.ace.moab.api.node
Enum NodeSetPolicy

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

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

The Node Set Policy specifies how nodes will be allocated to the job from the various node set generated.

Author:
Scott Brown

Enum Constant Summary
ANYOF
          Select resources from all sets contained in node set list.
ONEOF
          Select all sets that contain adequate resources to support job.
 
Method Summary
static java.util.List<java.lang.String> getpolicyNames()
          Returns a list of the names of the node set policies.
static NodeSetPolicy parseString(java.lang.String string)
          Attempts to parse a string and convert it into a corresponding NodeSetPolicy enum value.
static NodeSetPolicy valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static NodeSetPolicy[] 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

ANYOF

public static final NodeSetPolicy ANYOF
Select resources from all sets contained in node set list.


ONEOF

public static final NodeSetPolicy ONEOF
Select all sets that contain adequate resources to support job.

Method Detail

values

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

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

valueOf

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

getpolicyNames

public static java.util.List<java.lang.String> getpolicyNames()
Returns a list of the names of the node set policies.

Returns:
the names of the node set policies.

parseString

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

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


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