@InterfaceAudience.Public @InterfaceStability.Stable public abstract class ReservationAllocationState extends Object
ReservationAllocationState represents the reservation that is
 made by a user.
 It includes:
ResourceAllocationRequest, which includes the time
       interval, and capability of the allocation.
       ResourceAllocationRequest represents an allocation
       made for a reservation for the current state of the queue. This can be
       changed for reasons such as re-planning, but will always be subject to
       the constraints of the user contract as described by
       ReservationDefinition
   ReservationId of the reservation.ReservationDefinition used to make the reservation.| Constructor and Description | 
|---|
| ReservationAllocationState() | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract long | getAcceptanceTime()Get the acceptance time of the reservation. | 
| abstract ReservationDefinition | getReservationDefinition()Get the reservation definition used to make the reservation. | 
| abstract ReservationId | getReservationId()Get the id of the reservation. | 
| abstract List<ResourceAllocationRequest> | getResourceAllocationRequests()Get the Resource allocations of the reservation based on the current state
 of the plan. | 
| abstract String | getUser()Get the user who made the reservation. | 
| static ReservationAllocationState | newInstance(long acceptanceTime,
           String user,
           List<ResourceAllocationRequest> resourceAllocations,
           ReservationId reservationId,
           ReservationDefinition reservationDefinition) | 
@InterfaceAudience.Public @InterfaceStability.Stable public static ReservationAllocationState newInstance(long acceptanceTime, String user, List<ResourceAllocationRequest> resourceAllocations, ReservationId reservationId, ReservationDefinition reservationDefinition)
acceptanceTime - The acceptance time of the reservation.user - The username of the user who made the reservation.resourceAllocations - List of ResourceAllocationRequest
                            representing the current state of the
                            reservation resource allocations. This is
                            subject to change in the event of re-planning.reservationId - ReservationId of the reservation being
                                            listed.reservationDefinition - ReservationDefinition used to make
                              the reservation.ReservationAllocationState that represents the state of
 the reservation.@InterfaceAudience.Public @InterfaceStability.Unstable public abstract long getAcceptanceTime()
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract String getUser()
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract List<ResourceAllocationRequest> getResourceAllocationRequests()
ReservationDefinition@InterfaceAudience.Public @InterfaceStability.Unstable public abstract ReservationId getReservationId()
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract ReservationDefinition getReservationDefinition()
Copyright © 2023 Apache Software Foundation. All rights reserved.