Class ResourceAllocationRequestPBImpl
java.lang.Object
org.apache.hadoop.yarn.api.records.ResourceAllocationRequest
org.apache.hadoop.yarn.api.records.impl.pb.ResourceAllocationRequestPBImpl
@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:
- StartTime of the allocation.
- EndTime of the allocation.
Resourcereserved for the allocation.
- See Also:
-
Resource
-
Constructor Summary
ConstructorsConstructorDescriptionResourceAllocationRequestPBImpl(org.apache.hadoop.yarn.proto.YarnProtos.ResourceAllocationRequestProto proto) -
Method Summary
Modifier and TypeMethodDescriptionbooleanorg.apache.hadoop.yarn.api.records.Resourcelongorg.apache.hadoop.yarn.proto.YarnProtos.ResourceAllocationRequestProtogetProto()longinthashCode()voidsetCapability(org.apache.hadoop.yarn.api.records.Resource newCapability) voidsetEndTime(long endTime) voidsetStartTime(long startTime) toString()Methods inherited from class org.apache.hadoop.yarn.api.records.ResourceAllocationRequest
newInstance
-
Constructor Details
-
ResourceAllocationRequestPBImpl
public ResourceAllocationRequestPBImpl() -
ResourceAllocationRequestPBImpl
public ResourceAllocationRequestPBImpl(org.apache.hadoop.yarn.proto.YarnProtos.ResourceAllocationRequestProto proto)
-
-
Method Details
-
getProto
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceAllocationRequestProto getProto() -
getCapability
public org.apache.hadoop.yarn.api.records.Resource getCapability()- Specified by:
getCapabilityin classorg.apache.hadoop.yarn.api.records.ResourceAllocationRequest
-
setCapability
public void setCapability(org.apache.hadoop.yarn.api.records.Resource newCapability) - Specified by:
setCapabilityin classorg.apache.hadoop.yarn.api.records.ResourceAllocationRequest
-
getStartTime
public long getStartTime()- Specified by:
getStartTimein classorg.apache.hadoop.yarn.api.records.ResourceAllocationRequest
-
setStartTime
public void setStartTime(long startTime) - Specified by:
setStartTimein classorg.apache.hadoop.yarn.api.records.ResourceAllocationRequest
-
getEndTime
public long getEndTime()- Specified by:
getEndTimein classorg.apache.hadoop.yarn.api.records.ResourceAllocationRequest
-
setEndTime
public void setEndTime(long endTime) - Specified by:
setEndTimein classorg.apache.hadoop.yarn.api.records.ResourceAllocationRequest
-
toString
-
equals
-
hashCode
public int hashCode()
-