|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ace.moab.api.query.NodeQuery
public class NodeQuery
Class used for querying the Moab Workload Manager for node or server information.
| Constructor Summary | |
|---|---|
NodeQuery()
|
|
| Method Summary | |
|---|---|
static Nodes |
getAllNodes(IMoabConnection moabConnection)
Get all the nodes according to Moab. |
static MoabNode |
getNodeDefaults(IMoabConnection moabConnection)
Get the node defaults and package them into a MoabNode object. |
static NodesSummary |
getNodeSummary(IMoabConnection moabConnection,
java.lang.String userName)
Returns a node summary either for all nodes or just the nodes accessible by a specified user. |
static MoabNode |
getSpecificNode(IMoabConnection moabConnection,
java.lang.String nodeID)
Gets a specific node using the node's ID. |
static Nodes |
getSpecificPartitionNodes(IMoabConnection moabConnection,
java.lang.String partition)
Get the nodes for the partition/cluster name passed but does not put them in the global cache. |
static Nodes |
getUserSpecificNodes(IMoabConnection moabConnection,
java.lang.String username)
Get all the nodes the given user has access to according to Moab. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NodeQuery()
| Method Detail |
|---|
public static Nodes getAllNodes(IMoabConnection moabConnection)
throws MoabCommunicationException
moabConnection - The IMoabConneciton used to connect to Moab.
MoabCommunicationException - thrown if communication with Moab has problems or Moab's XML
in malformed.
public static Nodes getUserSpecificNodes(IMoabConnection moabConnection,
java.lang.String username)
throws MoabCommunicationException
moabConnection - The IMoabConneciton used to connect to Moab.username - The name of the user to get nodes for.
MoabCommunicationException - thrown if communication with Moab has problems or Moab's XML
in malformed.
public static MoabNode getSpecificNode(IMoabConnection moabConnection,
java.lang.String nodeID)
throws MoabCommunicationException
moabConnection - The IMoabConneciton used to connect to Moab.nodeID - the ID of the MoabStatsNode object requested.
MoabNode object corresponding to the requested ID.
MoabCommunicationException - thrown if the communication to Moab has problems or Moab's
XML is malformed.
public static MoabNode getNodeDefaults(IMoabConnection moabConnection)
throws MoabCommunicationException
moabConnection - The IMoabConneciton used to connect to Moab.
MoabCommunicationException - thrown if the communication to Moab has problems or Moab's
XML is malformed.
public static NodesSummary getNodeSummary(IMoabConnection moabConnection,
java.lang.String userName)
throws MoabCommunicationException
moabConnection - The IMoabConneciton used to connect to Moab.userName - the optional user name to specify to get the node summary for.
If null, all nodes will be reported.
MoabCommunicationException - thrown if communication with Moab has problems or the XML is
malformed.
public static Nodes getSpecificPartitionNodes(IMoabConnection moabConnection,
java.lang.String partition)
throws MoabCommunicationException
moabConnection - The IMoabConneciton used to connect to Moab.partition - The name of the partition to get the nodes for.
MoabCommunicationException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||