java.lang.Comparable<SchedContainerChangeRequest>public class SchedContainerChangeRequest extends java.lang.Object implements java.lang.Comparable<SchedContainerChangeRequest>
| Constructor | Description |
|---|---|
SchedContainerChangeRequest(RMContext rmContext,
SchedulerNode schedulerNode,
RMContainer rmContainer,
org.apache.hadoop.yarn.api.records.Resource targetCapacity) |
| Modifier and Type | Method | Description |
|---|---|---|
int |
compareTo(SchedContainerChangeRequest other) |
|
boolean |
equals(java.lang.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() |
|
java.lang.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() |
|
java.lang.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 java.lang.String getNodePartition()
public SchedulerNode getSchedulerNode()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int compareTo(SchedContainerChangeRequest other)
compareTo in interface java.lang.Comparable<SchedContainerChangeRequest>public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2008–2025 Apache Software Foundation. All rights reserved.