|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ace.moab.api.query.ReservationQuery
public class ReservationQuery
Class used for querying the Moab Workload Manager for reservation information.
Constructor Summary | |
---|---|
ReservationQuery()
|
Method Summary | |
---|---|
static Reservations |
getAllReservations(IMoabConnection moabConnection)
Queries moab for all of the reservations in the system. |
static Reservation |
getReservationByName(IMoabConnection moabConnection,
java.lang.String rsvName)
Returns a Reservation object corresponding to the requested Reservation ID. |
static java.util.Vector<StandingReservation> |
getStandingReservations(IMoabConnection moabConnection)
Returns a list of all standing reservations in Moab. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReservationQuery()
Method Detail |
---|
public static Reservation getReservationByName(IMoabConnection moabConnection, java.lang.String rsvName) throws MoabCommunicationException, com.moab.api.connect.exception.RequestException
moabConnection
- the connection to Moab to get a specific reservation. Cannot
be null.rsvName
- the name of the reservation to get.
MoabCommunicationException
- thrown if communication with Moab fails or Moab XML fails.
com.moab.api.connect.exception.RequestException
- thrown if no Reservation is found corresponding to the
rsvName.public static Reservations getAllReservations(IMoabConnection moabConnection) throws MoabCommunicationException
Queries moab for all of the reservations in the system.
All reservations include user and job reservations.
moabConnection
- the connection to Moab that has the reservations.
MoabCommunicationException
- thrown if the connection to Moab has problems or XML parsingpublic static java.util.Vector<StandingReservation> getStandingReservations(IMoabConnection moabConnection)
moabConnection
- The connection used to connect and run commands on Moab.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |