|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.xtreemos.xati.API.XReservationManager
public class XReservationManager
Field Summary | |
---|---|
static java.lang.String |
servicename
|
Constructor Summary | |
---|---|
XReservationManager()
|
Method Summary | |
---|---|
static java.lang.Integer |
attachJob(java.lang.String __reservationId,
java.lang.String __jobId,
java.security.cert.X509Certificate __userCertificate)
Attach a job to the reservation. |
static java.lang.String |
createEmptyReservation(java.security.cert.X509Certificate __userCertificate)
Creates an empty reservation and returns its reservation ID. |
static java.lang.String |
createReservation(java.lang.String __query,
java.security.cert.X509Certificate __userCertificate)
Creates a reservation based on the JSDL query. |
static java.lang.String |
createReservationExplicit(java.util.ArrayList<ReservationRequest> __requests,
java.security.cert.X509Certificate __userCertificate)
Creates a reservation based on the list of local allocation requests. |
static java.lang.Integer |
detachJob(java.lang.String __reservationId,
java.lang.String __jobId,
java.security.cert.X509Certificate __userCertificate)
Detach the job from the reservation. |
static FreeSlots |
getAllFreeSlotsFor(CommunicationAddress __nodeAddress,
java.lang.String __resourceID,
java.security.cert.X509Certificate __userCert)
Returns all free slots in a timetable for some metric on the node. |
static FreeSlots |
getFreeSlotsFor(CommunicationAddress __nodeAddress,
java.lang.String __resourceID,
java.util.GregorianCalendar __from,
java.util.GregorianCalendar __to,
java.security.cert.X509Certificate __userCert)
Returns all free slots for a given resource and time frame on the node. |
static java.lang.String |
getReservationFromJob(java.lang.String __jobId,
java.security.cert.X509Certificate __userCertificate)
Query the reservation ID that a job is attached to. |
static java.util.ArrayList<ReservationSlot> |
getReservationResources(java.lang.String __reservationId,
java.security.cert.X509Certificate __userCertificate)
Get the list of the resources and the related time constraints related to the reservation. |
static java.lang.Boolean |
releaseReservation(java.lang.String __reservationId,
java.security.cert.X509Certificate __userCertificate)
Drop the reservation. |
static java.lang.Boolean |
updateReservation(java.lang.String __reservationId,
java.lang.String __query,
java.security.cert.X509Certificate __userCertificate)
Updates the reservation by adding the local reservations as discovered according to the JSDL query. |
static java.lang.Boolean |
updateReservationExplicit(java.lang.String __reservationId,
java.util.ArrayList<UpdateRequest> __requests,
java.security.cert.X509Certificate __userCertificate)
Update previously created reservations. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String servicename
Constructor Detail |
---|
public XReservationManager()
Method Detail |
---|
public static java.lang.String createEmptyReservation(java.security.cert.X509Certificate __userCertificate) throws java.lang.Exception
java.lang.Exception
public static java.lang.String createReservation(java.lang.String __query, java.security.cert.X509Certificate __userCertificate) throws java.lang.Exception
query
- The content of the JSDL document containing the job
description and resource requirements.userCertificate
- The user that is making the reservation.
java.lang.Exception
- if the resource selection fails, if the resource
selection yields a lower number of candidates than requested in the JSDL,
if the selected nodes have no free slotspublic static java.lang.String createReservationExplicit(java.util.ArrayList<ReservationRequest> __requests, java.security.cert.X509Certificate __userCertificate) throws java.lang.Exception
requests
- The collection of reservation requests directed at
individual local requests.userCertificate
- The certificate of the user creating the
reservation.
java.lang.Exception
public static java.lang.Boolean updateReservation(java.lang.String __reservationId, java.lang.String __query, java.security.cert.X509Certificate __userCertificate) throws java.lang.Exception
reservationId
- The ID of the reservation to update.query
- The JSDL query.userCertificate
- The certificate of the user performing the
action.
java.lang.Exception
- If the reservation doesn't exist, if the user
cannot update the reservation (ownership), or if the reservation is not
empty, if the resource selection fails, if the resource
selection yields a lower number of candidates than requested in the JSDL,
if the selected nodes have no free slots.public static java.lang.Boolean updateReservationExplicit(java.lang.String __reservationId, java.util.ArrayList<UpdateRequest> __requests, java.security.cert.X509Certificate __userCertificate) throws java.lang.Exception
reservationId
- requests
- userCertificate
-
java.lang.Exception
public static java.lang.Boolean releaseReservation(java.lang.String __reservationId, java.security.cert.X509Certificate __userCertificate) throws java.lang.Exception
reservationId
- The ID of the reservation to be released.userCertificate
- The certificate of the user performing the action.
If the parameter is null, the method will assert that the call came from
a trusted service.
java.lang.Exception
public static java.lang.Integer attachJob(java.lang.String __reservationId, java.lang.String __jobId, java.security.cert.X509Certificate __userCertificate) throws java.lang.Exception
reservationId
- The ID of the reservation to attach the job to.jobId
- The ID of the job to be attached to the job.userCertificate
- The certificate of the user attempting the
operation.
java.lang.Exception
public static java.lang.Integer detachJob(java.lang.String __reservationId, java.lang.String __jobId, java.security.cert.X509Certificate __userCertificate) throws java.lang.Exception
reservationId
- The ID of the reservation the job is to be detached
from.jobId
- The ID of the job to be detached from the reservation.userCertificate
- The certificate of the user attempting the
operation.
java.lang.Exception
public static java.lang.String getReservationFromJob(java.lang.String __jobId, java.security.cert.X509Certificate __userCertificate) throws java.lang.Exception
jobId
- The job ID we are querying the reservation of.userCertificate
- The certificate of the user attempting the action.
java.lang.Exception
- if the user does not have access to the reservation.public static java.util.ArrayList<ReservationSlot> getReservationResources(java.lang.String __reservationId, java.security.cert.X509Certificate __userCertificate) throws java.lang.Exception
reservationId
- The ID of the reservation we are querying.userCertificate
- The certificate of the user attempting the
operation.
java.lang.Exception
public static FreeSlots getAllFreeSlotsFor(CommunicationAddress __nodeAddress, java.lang.String __resourceID, java.security.cert.X509Certificate __userCert) throws java.lang.Exception
resourceID
-
java.lang.Exception
public static FreeSlots getFreeSlotsFor(CommunicationAddress __nodeAddress, java.lang.String __resourceID, java.util.GregorianCalendar __from, java.util.GregorianCalendar __to, java.security.cert.X509Certificate __userCert) throws java.lang.Exception
resourceID
- from
- to
-
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |