public interface ReservationAllocation extends Comparable<ReservationAllocation>
ReservationDefinition
. This is used
internally by a Plan
to store information about how each of the
accepted ReservationDefinition
have been allocated.Modifier and Type | Method and Description |
---|---|
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.Resource> |
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
|
RLESparseResourceAllocation |
getResourcesOverTime()
Return a RLE representation of used resources.
|
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
|
compareTo
org.apache.hadoop.yarn.api.records.ReservationId getReservationId()
ReservationId
that represents the
reservationReservationId
that
represents the reservationorg.apache.hadoop.yarn.api.records.ReservationDefinition getReservationDefinition()
ReservationDefinition
submitted by the clientReservationDefinition
submitted by the clientlong getStartTime()
long getEndTime()
Map<ReservationInterval,org.apache.hadoop.yarn.api.records.Resource> 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
requestedRLESparseResourceAllocation getResourcesOverTime()
Copyright © 2017 Apache Software Foundation. All Rights Reserved.