|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<ResourceSetPriority>
com.ace.moab.api.resourceset.ResourceSetPriority
public enum ResourceSetPriority
This enumeration represents the priority to give a resource set. Resources can be grouped together in a set for use by jobs or any other Moab objects.
When resources are available in more than one resource set, this parameter allows control over how the best resource set is selected.
JobRequirement
Enum Constant Summary | |
---|---|
BESTFIT
Select the smallest resource set possible. |
|
BESTRESOURCE
Select the resource with the best nodes. |
|
MINLOSS
Select the resource set that results in the minimal wasted resources assuming no internal job load balancing is available. |
|
WORSTFIT
Select the largest resource set possible. |
Method Summary | |
---|---|
static ResourceSetPriority |
parseString(java.lang.String string)
Parses a string and converts it into a ResourceSetPriority enum value if possible. |
java.lang.String |
toString()
|
static ResourceSetPriority |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static ResourceSetPriority[] |
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 |
---|
public static final ResourceSetPriority BESTFIT
Select the smallest resource set possible.
Minimizes fragmentation of larger resource sets.
public static final ResourceSetPriority WORSTFIT
Select the largest resource set possible.
Minimizes creation of small resource fragment, but fragments larger resource sets.
public static final ResourceSetPriority BESTRESOURCE
Select the resource with the best nodes.
Best nodes are defined as nodes with the highest proc speed. The Moab parameter NODESETATTRIBUTE must be set to PROCSPEED for this to be taken into account.
public static final ResourceSetPriority MINLOSS
Min. loss uses nodes with the highest proc speed. The Moab parameter NODESETATTRIBUTE must be set to PROCSPEED for this to be taken into account.
Method Detail |
---|
public static final ResourceSetPriority[] values()
for(ResourceSetPriority c : ResourceSetPriority.values()) System.out.println(c);
public static ResourceSetPriority valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namepublic java.lang.String toString()
toString
in class java.lang.Enum<ResourceSetPriority>
public static ResourceSetPriority parseString(java.lang.String string) throws java.text.ParseException
string
- the string to be parsed.
java.text.ParseException
- thrown if the String cannot be parsed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |