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. | 
| long | getPeriodicity()Get the periodicity of this reservation representing the time period of the
 periodic job. | 
| String | getPlanName()Return a string identifying the plan to which the reservation belongs | 
| org.apache.hadoop.yarn.api.records.ReservationDefinition | getReservationDefinition()Returns the original  ReservationDefinitionsubmitted by the client | 
| org.apache.hadoop.yarn.api.records.ReservationId | getReservationId()Returns the unique identifier  ReservationIdthat 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. | 
| RLESparseResourceAllocation | getResourcesOverTime(long start,
                    long end)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 | 
| void | setPeriodicity(long period)Set the periodicity of this reservation representing the time period of the
 periodic job. | 
compareToorg.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()
RLESparseResourceAllocation getResourcesOverTime(long start, long end)
start - start of the time interval.end - end of the time interval.long getPeriodicity()
void setPeriodicity(long period)
period - periodicity of this reservationCopyright © 2008–2023 Apache Software Foundation. All rights reserved.