@Public
@Stable
public abstract class ReservationAllocationState
extends java.lang.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 | Description |
|---|---|
ReservationAllocationState() |
| Modifier and Type | Method | 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 java.util.List<ResourceAllocationRequest> |
getResourceAllocationRequests() |
Get the Resource allocations of the reservation based on the current state
of the plan.
|
abstract java.lang.String |
getUser() |
Get the user who made the reservation.
|
static ReservationAllocationState |
newInstance(long acceptanceTime,
java.lang.String user,
java.util.List<ResourceAllocationRequest> resourceAllocations,
ReservationId reservationId,
ReservationDefinition reservationDefinition) |
|
abstract void |
setAcceptanceTime(long acceptanceTime) |
Set the time that the reservation was accepted.
|
abstract void |
setReservationDefinition(ReservationDefinition reservationDefinition) |
Set the definition of the reservation.
|
abstract void |
setReservationId(ReservationId reservationId) |
Set the id corresponding to the reservation.
|
abstract void |
setResourceAllocationRequests(java.util.List<ResourceAllocationRequest> resourceAllocations) |
Set the list of resource allocations made for the reservation.
|
abstract void |
setUser(java.lang.String user) |
Set the user who made the reservation.
|
@Public @Stable public static ReservationAllocationState newInstance(long acceptanceTime, java.lang.String user, java.util.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.@Public @Unstable public abstract long getAcceptanceTime()
@Private @Unstable public abstract void setAcceptanceTime(long acceptanceTime)
acceptanceTime - The acceptance time of the reservation.@Public @Unstable public abstract java.lang.String getUser()
@Private @Unstable public abstract void setUser(java.lang.String user)
user - The username of the user who made the reservation.@Public @Unstable public abstract java.util.List<ResourceAllocationRequest> getResourceAllocationRequests()
ReservationDefinition@Private @Unstable public abstract void setResourceAllocationRequests(java.util.List<ResourceAllocationRequest> resourceAllocations)
resourceAllocations - List of ResourceAllocationRequest
representing the current state of the
reservation resource allocations. This is
subject to change in the event of re-planning.@Public @Unstable public abstract ReservationId getReservationId()
@Private @Unstable public abstract void setReservationId(ReservationId reservationId)
reservationId - ReservationId of the reservation being
listed.@Public @Unstable public abstract ReservationDefinition getReservationDefinition()
@Private @Unstable public abstract void setReservationDefinition(ReservationDefinition reservationDefinition)
reservationDefinition - ReservationDefinition used to make
the reservation.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.