com.ace.moab.api.resourceset
Enum ResourceSetType

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

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

This enumeration represents the type of resources that a set can be placed over. This is used for grouping resources together for use by a job or another Moab object.

Author:
Brady Kimball
See Also:
JobRequirement

Enum Constant Summary
ARCH
          Base node set boundaries on node's architecture attribute.
FEATURE
          Base node set boundaries on node feature attribute.
MEMORY
          Base node set boundaries on node's architecture attribute.
NETWORK
          Base node set boundaries on node's configured network adapters/interfaces.
PROCSPEED
          Base node set boundaries on node's reported processor speed.
 
Method Summary
static ResourceSetType parseString(java.lang.String string)
          Parses a string and converts it into a ResourceSetType enum value if possible.
 java.lang.String toString()
           
static ResourceSetType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ResourceSetType[] 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, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ARCH

public static final ResourceSetType ARCH
Base node set boundaries on node's architecture attribute.


FEATURE

public static final ResourceSetType FEATURE
Base node set boundaries on node feature attribute.


MEMORY

public static final ResourceSetType MEMORY
Base node set boundaries on node's architecture attribute.


NETWORK

public static final ResourceSetType NETWORK
Base node set boundaries on node's configured network adapters/interfaces.


PROCSPEED

public static final ResourceSetType PROCSPEED
Base node set boundaries on node's reported processor speed.

Method Detail

values

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

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

valueOf

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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<ResourceSetType>

parseString

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

Parameters:
string - the string to be parsed.
Returns:
the corresponding ResourceSetType enum value.
Throws:
java.text.ParseException - thrown if the String cannot be parsed.


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