|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ace.moab.api.query.JobQuery
public class JobQuery
Class used for querying the Moab Workload Manager for job information.
| Constructor Summary | |
|---|---|
JobQuery()
|
|
| Method Summary | |
|---|---|
static Jobs |
getActiveJobs(IMoabConnection moabConnection)
Return a list of all the jobs currently active (not completed) according to Moab. |
static Jobs |
getCompletedJobs(IMoabConnection moabConnection)
Returns all completed jobs still left in Moab's completed job buffer. |
static JobsSummary |
getCompleteJobSummary(IMoabConnection moabConnection)
Get the job summary information for all users from Moab. |
static MoabJob |
getSpecificJob(IMoabConnection moabConnection,
java.lang.String jobID,
boolean isCompleted)
Get a specific job from Moab. |
static JobsSummary |
getUserJobSummary(IMoabConnection moabConnection,
java.lang.String username)
Get the job summary information for the given user. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JobQuery()
| Method Detail |
|---|
public static Jobs getActiveJobs(IMoabConnection moabConnection)
throws MoabCommunicationException
moabConnection - The connection used to run the commands
MoabCommunicationException - Thrown if communication with Moab fails or the XML is
invalid.
public static Jobs getCompletedJobs(IMoabConnection moabConnection)
throws MoabCommunicationException
moabConnection - the connection to use to get the completed jobs information.
MoabCommunicationException - Thrown if communication with Moab fails or the XML is
invalid.
public static JobsSummary getCompleteJobSummary(IMoabConnection moabConnection)
throws MoabCommunicationException
moabConnection - The connection to use to get the job information.
MoabCommunicationException - Thrown if communication with Moab fails or the XML is
invalid.
public static MoabJob getSpecificJob(IMoabConnection moabConnection,
java.lang.String jobID,
boolean isCompleted)
throws MoabCommunicationException
moabConnection - The connection to use to connect to Moab.jobID - The unique job identifier according to Moab.isCompleted - If true, the query will be setup to look for completed jobs
with the jobID given, otherwise Moab will look at active (not
completed) jobs only
MoabCommunicationException - Thrown if communication with Moab fails or the XML is
invalid.
public static JobsSummary getUserJobSummary(IMoabConnection moabConnection,
java.lang.String username)
throws MoabCommunicationException
username - The name of the user The connection to use to get the job
information.
MoabCommunicationException - Thrown if communication with Moab fails or the XML is
invalid.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||