|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ReservationAllocation
A ReservationAllocation represents a concrete allocation of resources over
time that satisfy a certain ReservationDefinition. This is used
internally by a Plan to store information about how each of the
accepted ReservationDefinition have been allocated.
| Method Summary | |
|---|---|
boolean |
containsGangs()
Returns whether the reservation has gang semantics or not |
long |
getAcceptanceTime()
Returns the time at which the reservation was accepted by the system |
Map<ReservationInterval,org.apache.hadoop.yarn.api.records.ReservationRequest> |
getAllocationRequests()
Returns the map of resources requested against the time interval for which they were |
long |
getEndTime()
Returns the time at which the reservation terminates |
String |
getPlanName()
Return a string identifying the plan to which the reservation belongs |
org.apache.hadoop.yarn.api.records.ReservationDefinition |
getReservationDefinition()
Returns the original ReservationDefinition submitted by the client |
org.apache.hadoop.yarn.api.records.ReservationId |
getReservationId()
Returns the unique identifier ReservationId that represents the
reservation |
org.apache.hadoop.yarn.api.records.Resource |
getResourcesAtTime(long tick)
Returns the capacity represented by cumulative resources reserved by the reservation at the specified point of time |
long |
getStartTime()
Returns the time at which the reservation is activated |
String |
getUser()
Returns the user who requested the reservation |
void |
setAcceptanceTimestamp(long acceptedAt)
Sets the time at which the reservation was accepted by the system |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Method Detail |
|---|
org.apache.hadoop.yarn.api.records.ReservationId getReservationId()
ReservationId that represents the
reservation
ReservationId that
represents the reservationorg.apache.hadoop.yarn.api.records.ReservationDefinition getReservationDefinition()
ReservationDefinition submitted by the client
ReservationDefinition submitted by the clientlong getStartTime()
long getEndTime()
Map<ReservationInterval,org.apache.hadoop.yarn.api.records.ReservationRequest> getAllocationRequests()
String getPlanName()
String getUser()
boolean containsGangs()
void setAcceptanceTimestamp(long acceptedAt)
acceptedAt - the time at which the reservation was accepted by the
systemlong getAcceptanceTime()
org.apache.hadoop.yarn.api.records.Resource getResourcesAtTime(long tick)
tick - the time (UTC in ms) for which the reserved resources are
requested
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||