com.ace.moab.api.vm
Enum VMFlag

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

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

This enumeration specifies the VM flag types of a virtual machine.

Author:
Scott Brown

Enum Constant Summary
CAN_MIGRATE
          VM may be directly migrated w/o direction from parent workload
CONSUMER
          VM should be treated as resource consumer regardless of Moab-tracked workload
DESTROY_PENDING
          VM destroy requested
DESTROYED
          VM reported destroyed by Resource Manager (VM will be removed when resource manager no longer reports VM)
ONETIMEUSE
          VM is was created for a job with vmusagepolicy=createvm
SHARED
          Multiple jobs can use VM resources simultaneously
 
Method Summary
 java.lang.String getMoabName()
          Get the name Moab uses for a given flag
static VMFlag parseString(java.lang.String string)
          Attempts to parse a string and convert it into a corresponding VMFlag enum value.
static VMFlag valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static VMFlag[] 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

SHARED

public static final VMFlag SHARED
Multiple jobs can use VM resources simultaneously


CAN_MIGRATE

public static final VMFlag CAN_MIGRATE
VM may be directly migrated w/o direction from parent workload


CONSUMER

public static final VMFlag CONSUMER
VM should be treated as resource consumer regardless of Moab-tracked workload


DESTROY_PENDING

public static final VMFlag DESTROY_PENDING
VM destroy requested


DESTROYED

public static final VMFlag DESTROYED
VM reported destroyed by Resource Manager (VM will be removed when resource manager no longer reports VM)


ONETIMEUSE

public static final VMFlag ONETIMEUSE
VM is was created for a job with vmusagepolicy=createvm

Method Detail

values

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

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

valueOf

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

getMoabName

public java.lang.String getMoabName()
Get the name Moab uses for a given flag

Returns:
the name Moab uses for a given flag

parseString

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

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


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