|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ReservationAgent
An entity that seeks to acquire resources to satisfy an user's contract
| Method Summary | |
|---|---|
boolean |
createReservation(org.apache.hadoop.yarn.api.records.ReservationId reservationId,
String user,
Plan plan,
org.apache.hadoop.yarn.api.records.ReservationDefinition contract)
Create a reservation for the user that abides by the specified contract |
boolean |
deleteReservation(org.apache.hadoop.yarn.api.records.ReservationId reservationId,
String user,
Plan plan)
Delete an user reservation |
boolean |
updateReservation(org.apache.hadoop.yarn.api.records.ReservationId reservationId,
String user,
Plan plan,
org.apache.hadoop.yarn.api.records.ReservationDefinition contract)
Update a reservation for the user that abides by the specified contract |
| Method Detail |
|---|
boolean createReservation(org.apache.hadoop.yarn.api.records.ReservationId reservationId,
String user,
Plan plan,
org.apache.hadoop.yarn.api.records.ReservationDefinition contract)
throws PlanningException
reservationId - the identifier of the reservation to be created.user - the user who wants to create the reservationplan - the Plan to which the reservation must be fittedcontract - encapsulates the resources the user requires for his
session
PlanningException - if the session cannot be fitted into the plan
boolean updateReservation(org.apache.hadoop.yarn.api.records.ReservationId reservationId,
String user,
Plan plan,
org.apache.hadoop.yarn.api.records.ReservationDefinition contract)
throws PlanningException
reservationId - the identifier of the reservation to be updateduser - the user who wants to create the sessionplan - the Plan to which the reservation must be fittedcontract - encapsulates the resources the user requires for his
reservation
PlanningException - if the reservation cannot be fitted into the plan
boolean deleteReservation(org.apache.hadoop.yarn.api.records.ReservationId reservationId,
String user,
Plan plan)
throws PlanningException
reservationId - the identifier of the reservation to be deleteduser - the user who wants to create the reservationplan - the Plan to which the session must be fitted
PlanningException - if the reservation cannot be fitted into the plan
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||