@Private
@Unstable
public class ResourceAllocationRequestPBImpl
extends org.apache.hadoop.yarn.api.records.ResourceAllocationRequest
ResourceAllocationRequestPBImpl which implements the
ResourceAllocationRequest class which 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 a
ReservationDefinition
Resource
It includes:
Resource reserved for the allocation.Resource| Constructor | Description |
|---|---|
ResourceAllocationRequestPBImpl() |
|
ResourceAllocationRequestPBImpl(org.apache.hadoop.yarn.proto.YarnProtos.ResourceAllocationRequestProto proto) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(java.lang.Object other) |
|
org.apache.hadoop.yarn.api.records.Resource |
getCapability() |
|
long |
getEndTime() |
|
org.apache.hadoop.yarn.proto.YarnProtos.ResourceAllocationRequestProto |
getProto() |
|
long |
getStartTime() |
|
int |
hashCode() |
|
void |
setCapability(org.apache.hadoop.yarn.api.records.Resource newCapability) |
|
void |
setEndTime(long endTime) |
|
void |
setStartTime(long startTime) |
|
java.lang.String |
toString() |
public ResourceAllocationRequestPBImpl()
public ResourceAllocationRequestPBImpl(org.apache.hadoop.yarn.proto.YarnProtos.ResourceAllocationRequestProto proto)
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceAllocationRequestProto getProto()
public org.apache.hadoop.yarn.api.records.Resource getCapability()
getCapability in class org.apache.hadoop.yarn.api.records.ResourceAllocationRequestpublic void setCapability(org.apache.hadoop.yarn.api.records.Resource newCapability)
setCapability in class org.apache.hadoop.yarn.api.records.ResourceAllocationRequestpublic long getStartTime()
getStartTime in class org.apache.hadoop.yarn.api.records.ResourceAllocationRequestpublic void setStartTime(long startTime)
setStartTime in class org.apache.hadoop.yarn.api.records.ResourceAllocationRequestpublic long getEndTime()
getEndTime in class org.apache.hadoop.yarn.api.records.ResourceAllocationRequestpublic void setEndTime(long endTime)
setEndTime in class org.apache.hadoop.yarn.api.records.ResourceAllocationRequestpublic 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.