|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ace.moab.api.node.NodeSet
public class NodeSet
This class represents a node set collection that groups a set of resources together for use by a job or other object inside of Moab.
This is a feature that allows jobs to request sets of common resources without specifying exactly what resources are required.
Constructor Summary | |
---|---|
NodeSet(ResourceSetSelection selection,
ResourceSetType type)
Initializes a new NodeSet instance. |
|
NodeSet(ResourceSetSelection selection,
ResourceSetType type,
java.util.List<java.lang.String> resourceList)
|
Method Summary | |
---|---|
ResourceSetPriority |
getPriority()
Returns the priority that allows control over how the best resource set is selected. |
java.util.List<java.lang.String> |
getResourceList()
Returns the list of resources that relates to the type of set this is. |
ResourceSetSelection |
getSelection()
Returns the selection type that defines what kind of node set to use. |
java.lang.Double |
getTolerance()
Returns the specification of the percentage difference between the fastest and slowest node. |
ResourceSetType |
getType()
Returns the type of set that the node set is. |
static NodeSet |
parseString(java.lang.String string)
Parses a string and converts it into a NodeSet object if possible. |
void |
setPriority(ResourceSetPriority priority)
Sets the priority that allows control over how the best resource set is selected. |
void |
setResourceList(java.util.List<java.lang.String> resourceList)
Sets the list of resources that relates to the type of set this is. |
void |
setSelection(ResourceSetSelection selection)
Sets the selection type that defines what kind of node set to use. |
void |
setTolerance(java.lang.Double tolerance)
Sets the specification of the percentage difference between the fastest and slowest node. |
void |
setType(ResourceSetType type)
Set the type of set that the node set is. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NodeSet(ResourceSetSelection selection, ResourceSetType type) throws InvalidMoabArgumentException
selection
- the selection type for the new node set.type
- the type of node set.
InvalidMoabArgumentException
- thrown if either parameter is null.public NodeSet(ResourceSetSelection selection, ResourceSetType type, java.util.List<java.lang.String> resourceList) throws InvalidMoabArgumentException
InvalidMoabArgumentException
Method Detail |
---|
public ResourceSetSelection getSelection()
Returns the selection type that defines what kind of node set to use.
Cannot be null.
public void setSelection(ResourceSetSelection selection) throws InvalidMoabArgumentException
Sets the selection type that defines what kind of node set to use.
Cannot be null.
selection
- the selection type that defines what kind of node set to use.
InvalidMoabArgumentException
- thrown if selection is null.public ResourceSetType getType()
Returns the type of set that the node set is.
Cannot be null.
public void setType(ResourceSetType type) throws InvalidMoabArgumentException
Set the type of set that the node set is.
Cannot be null.
type
- the type of set that the node set is.
thrown
- if type is null.
InvalidMoabArgumentException
public java.util.List<java.lang.String> getResourceList()
Returns the list of resources that relates to the type of set this is.
Can be null.
public void setResourceList(java.util.List<java.lang.String> resourceList)
Sets the list of resources that relates to the type of set this is.
Can be null.
resourceList
- the list of resources that relates to the type of set this is.public ResourceSetPriority getPriority()
Returns the priority that allows control over how the best resource set is selected.
Can be null.
public void setPriority(ResourceSetPriority priority)
Sets the priority that allows control over how the best resource set is selected.
Can be null.
priority
- the priority that allows control over how the best resource
set is selected.public java.lang.Double getTolerance()
Returns the specification of the percentage difference between the fastest and slowest node.
Can be null.
public void setTolerance(java.lang.Double tolerance)
Sets the specification of the percentage difference between the fastest and slowest node.
Can be null.
tolerance
- the specification of the percentage difference between the
fastest and slowest node.public java.lang.String toString()
toString
in class java.lang.Object
public static NodeSet 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 | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |