@InterfaceAudience.Private
@InterfaceStability.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 and Description |
---|
ResourceAllocationRequestPBImpl() |
ResourceAllocationRequestPBImpl(org.apache.hadoop.yarn.proto.YarnProtos.ResourceAllocationRequestProto proto) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(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) |
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.ResourceAllocationRequest
public void setCapability(org.apache.hadoop.yarn.api.records.Resource newCapability)
setCapability
in class org.apache.hadoop.yarn.api.records.ResourceAllocationRequest
public long getStartTime()
getStartTime
in class org.apache.hadoop.yarn.api.records.ResourceAllocationRequest
public void setStartTime(long startTime)
setStartTime
in class org.apache.hadoop.yarn.api.records.ResourceAllocationRequest
public long getEndTime()
getEndTime
in class org.apache.hadoop.yarn.api.records.ResourceAllocationRequest
public void setEndTime(long endTime)
setEndTime
in class org.apache.hadoop.yarn.api.records.ResourceAllocationRequest
Copyright © 2008–2018 Apache Software Foundation. All rights reserved.