public class SchedContainerChangeRequest extends Object implements Comparable<SchedContainerChangeRequest>
Constructor and Description |
---|
SchedContainerChangeRequest(RMContext rmContext,
SchedulerNode schedulerNode,
RMContainer rmContainer,
org.apache.hadoop.yarn.api.records.Resource targetCapacity) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(SchedContainerChangeRequest other) |
boolean |
equals(Object other) |
org.apache.hadoop.yarn.api.records.ContainerId |
getContainerId() |
org.apache.hadoop.yarn.api.records.Resource |
getDeltaCapacity()
Delta capacity = target - before, so if it is a decrease request, delta
capacity will be negative
|
org.apache.hadoop.yarn.api.records.NodeId |
getNodeId() |
String |
getNodePartition() |
org.apache.hadoop.yarn.api.records.Priority |
getPriority() |
RMContainer |
getRMContainer() |
RMContext |
getRmContext() |
SchedulerNode |
getSchedulerNode() |
org.apache.hadoop.yarn.api.records.Resource |
getTargetCapacity() |
int |
hashCode() |
String |
toString() |
public SchedContainerChangeRequest(RMContext rmContext, SchedulerNode schedulerNode, RMContainer rmContainer, org.apache.hadoop.yarn.api.records.Resource targetCapacity)
public org.apache.hadoop.yarn.api.records.NodeId getNodeId()
public RMContainer getRMContainer()
public org.apache.hadoop.yarn.api.records.Resource getTargetCapacity()
public RMContext getRmContext()
public org.apache.hadoop.yarn.api.records.Resource getDeltaCapacity()
public org.apache.hadoop.yarn.api.records.Priority getPriority()
public org.apache.hadoop.yarn.api.records.ContainerId getContainerId()
public String getNodePartition()
public SchedulerNode getSchedulerNode()
public int compareTo(SchedContainerChangeRequest other)
compareTo
in interface Comparable<SchedContainerChangeRequest>
Copyright © 2017 Apache Software Foundation. All Rights Reserved.