Class ReservationAllocationStatePBImpl
java.lang.Object
org.apache.hadoop.yarn.api.records.ReservationAllocationState
org.apache.hadoop.yarn.api.records.impl.pb.ReservationAllocationStatePBImpl
@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:
- Duration of the reservation.
- Acceptance time of the duration.
-
List of
ResourceAllocationRequest, which includes the time interval, and capability of the allocation.ResourceAllocationRequestrepresents 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 byReservationDefinition ReservationIdof the reservation.ReservationDefinitionused to make the reservation.
- See Also:
-
ResourceAllocationRequestReservationIdReservationDefinition
-
Constructor Summary
ConstructorsConstructorDescriptionReservationAllocationStatePBImpl(org.apache.hadoop.yarn.proto.YarnProtos.ReservationAllocationStateProto proto) -
Method Summary
Modifier and TypeMethodDescriptionbooleanlongorg.apache.hadoop.yarn.proto.YarnProtos.ReservationAllocationStateProtogetProto()org.apache.hadoop.yarn.api.records.ReservationDefinitionorg.apache.hadoop.yarn.api.records.ReservationIdList<org.apache.hadoop.yarn.api.records.ResourceAllocationRequest>getUser()inthashCode()voidsetAcceptanceTime(long acceptanceTime) voidsetReservationDefinition(org.apache.hadoop.yarn.api.records.ReservationDefinition newReservationDefinition) voidsetReservationId(org.apache.hadoop.yarn.api.records.ReservationId newReservationId) voidsetResourceAllocationRequests(List<org.apache.hadoop.yarn.api.records.ResourceAllocationRequest> newResourceAllocations) voidtoString()Methods inherited from class org.apache.hadoop.yarn.api.records.ReservationAllocationState
newInstance
-
Constructor Details
-
ReservationAllocationStatePBImpl
public ReservationAllocationStatePBImpl() -
ReservationAllocationStatePBImpl
public ReservationAllocationStatePBImpl(org.apache.hadoop.yarn.proto.YarnProtos.ReservationAllocationStateProto proto)
-
-
Method Details
-
getProto
public org.apache.hadoop.yarn.proto.YarnProtos.ReservationAllocationStateProto getProto() -
getAcceptanceTime
public long getAcceptanceTime()- Specified by:
getAcceptanceTimein classorg.apache.hadoop.yarn.api.records.ReservationAllocationState
-
setAcceptanceTime
public void setAcceptanceTime(long acceptanceTime) - Specified by:
setAcceptanceTimein classorg.apache.hadoop.yarn.api.records.ReservationAllocationState
-
getUser
- Specified by:
getUserin classorg.apache.hadoop.yarn.api.records.ReservationAllocationState
-
setUser
- Specified by:
setUserin classorg.apache.hadoop.yarn.api.records.ReservationAllocationState
-
getResourceAllocationRequests
public List<org.apache.hadoop.yarn.api.records.ResourceAllocationRequest> getResourceAllocationRequests()- Specified by:
getResourceAllocationRequestsin classorg.apache.hadoop.yarn.api.records.ReservationAllocationState
-
setResourceAllocationRequests
public void setResourceAllocationRequests(List<org.apache.hadoop.yarn.api.records.ResourceAllocationRequest> newResourceAllocations) - Specified by:
setResourceAllocationRequestsin classorg.apache.hadoop.yarn.api.records.ReservationAllocationState
-
getReservationId
public org.apache.hadoop.yarn.api.records.ReservationId getReservationId()- Specified by:
getReservationIdin classorg.apache.hadoop.yarn.api.records.ReservationAllocationState
-
setReservationId
public void setReservationId(org.apache.hadoop.yarn.api.records.ReservationId newReservationId) - Specified by:
setReservationIdin classorg.apache.hadoop.yarn.api.records.ReservationAllocationState
-
getReservationDefinition
public org.apache.hadoop.yarn.api.records.ReservationDefinition getReservationDefinition()- Specified by:
getReservationDefinitionin classorg.apache.hadoop.yarn.api.records.ReservationAllocationState
-
setReservationDefinition
public void setReservationDefinition(org.apache.hadoop.yarn.api.records.ReservationDefinition newReservationDefinition) - Specified by:
setReservationDefinitionin classorg.apache.hadoop.yarn.api.records.ReservationAllocationState
-
toString
-
equals
-
hashCode
public int hashCode()
-