@InterfaceAudience.Private
@InterfaceStability.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 and Description |
|---|
ReservationAllocationStatePBImpl() |
ReservationAllocationStatePBImpl(org.apache.hadoop.yarn.proto.YarnProtos.ReservationAllocationStateProto proto) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(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() |
List<org.apache.hadoop.yarn.api.records.ResourceAllocationRequest> |
getResourceAllocationRequests() |
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(List<org.apache.hadoop.yarn.api.records.ResourceAllocationRequest> newResourceAllocations) |
void |
setUser(String user) |
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 String getUser()
getUser in class org.apache.hadoop.yarn.api.records.ReservationAllocationStatepublic void setUser(String user)
setUser in class org.apache.hadoop.yarn.api.records.ReservationAllocationStatepublic List<org.apache.hadoop.yarn.api.records.ResourceAllocationRequest> getResourceAllocationRequests()
getResourceAllocationRequests in class org.apache.hadoop.yarn.api.records.ReservationAllocationStatepublic void setResourceAllocationRequests(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.ReservationAllocationStateCopyright © 2008–2022 Apache Software Foundation. All rights reserved.