@Private
@Unstable
public class ReservationAllocationStatePBImpl
extends org.apache.hadoop.yarn.api.records.ReservationAllocationState
ReservationAllocationStatePBImpl implements the ReservationAllocationState that 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 plan. 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.ResourceAllocationRequest,
ReservationId,
ReservationDefinition| Constructor | Description |
|---|---|
ReservationAllocationStatePBImpl() |
|
ReservationAllocationStatePBImpl(org.apache.hadoop.yarn.proto.YarnProtos.ReservationAllocationStateProto proto) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(java.lang.Object other) |
|
long |
getAcceptanceTime() |
|
org.apache.hadoop.yarn.proto.YarnProtos.ReservationAllocationStateProto |
getProto() |
|
org.apache.hadoop.yarn.api.records.ReservationDefinition |
getReservationDefinition() |
|
org.apache.hadoop.yarn.api.records.ReservationId |
getReservationId() |
|
java.util.List<org.apache.hadoop.yarn.api.records.ResourceAllocationRequest> |
getResourceAllocationRequests() |
|
java.lang.String |
getUser() |
|
int |
hashCode() |
|
void |
setAcceptanceTime(long acceptanceTime) |
|
void |
setReservationDefinition(org.apache.hadoop.yarn.api.records.ReservationDefinition newReservationDefinition) |
|
void |
setReservationId(org.apache.hadoop.yarn.api.records.ReservationId newReservationId) |
|
void |
setResourceAllocationRequests(java.util.List<org.apache.hadoop.yarn.api.records.ResourceAllocationRequest> newResourceAllocations) |
|
void |
setUser(java.lang.String user) |
|
java.lang.String |
toString() |
public ReservationAllocationStatePBImpl()
public ReservationAllocationStatePBImpl(org.apache.hadoop.yarn.proto.YarnProtos.ReservationAllocationStateProto proto)
public org.apache.hadoop.yarn.proto.YarnProtos.ReservationAllocationStateProto getProto()
public long getAcceptanceTime()
getAcceptanceTime in class org.apache.hadoop.yarn.api.records.ReservationAllocationStatepublic void setAcceptanceTime(long acceptanceTime)
setAcceptanceTime in class org.apache.hadoop.yarn.api.records.ReservationAllocationStatepublic java.lang.String getUser()
getUser in class org.apache.hadoop.yarn.api.records.ReservationAllocationStatepublic void setUser(java.lang.String user)
setUser in class org.apache.hadoop.yarn.api.records.ReservationAllocationStatepublic java.util.List<org.apache.hadoop.yarn.api.records.ResourceAllocationRequest> getResourceAllocationRequests()
getResourceAllocationRequests in class org.apache.hadoop.yarn.api.records.ReservationAllocationStatepublic void setResourceAllocationRequests(java.util.List<org.apache.hadoop.yarn.api.records.ResourceAllocationRequest> newResourceAllocations)
setResourceAllocationRequests in class org.apache.hadoop.yarn.api.records.ReservationAllocationStatepublic org.apache.hadoop.yarn.api.records.ReservationId getReservationId()
getReservationId in class org.apache.hadoop.yarn.api.records.ReservationAllocationStatepublic void setReservationId(org.apache.hadoop.yarn.api.records.ReservationId newReservationId)
setReservationId in class org.apache.hadoop.yarn.api.records.ReservationAllocationStatepublic org.apache.hadoop.yarn.api.records.ReservationDefinition getReservationDefinition()
getReservationDefinition in class org.apache.hadoop.yarn.api.records.ReservationAllocationStatepublic void setReservationDefinition(org.apache.hadoop.yarn.api.records.ReservationDefinition newReservationDefinition)
setReservationDefinition in class org.apache.hadoop.yarn.api.records.ReservationAllocationStatepublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2008–2025 Apache Software Foundation. All rights reserved.