java.lang.Comparable<java.util.concurrent.Delayed>, java.util.concurrent.Delayed@Private
@Unstable
public class ContainerSimulator
extends java.lang.Object
implements java.util.concurrent.Delayed
| Constructor | Description |
|---|---|
ContainerSimulator(org.apache.hadoop.yarn.api.records.ContainerId id,
org.apache.hadoop.yarn.api.records.Resource resource,
long endTime,
long lifeTime,
long allocationId) |
Invoked when NM schedules containers to run.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
compareTo(java.util.concurrent.Delayed o) |
|
static ContainerSimulator |
createFromTaskContainerDefinition(TaskContainerDefinition def) |
Invoked when AM schedules containers to allocate.
|
long |
getAllocationId() |
|
long |
getDelay(java.util.concurrent.TimeUnit unit) |
|
long |
getEndTime() |
|
org.apache.hadoop.yarn.api.records.ExecutionType |
getExecutionType() |
|
java.lang.String |
getHostname() |
|
org.apache.hadoop.yarn.api.records.ContainerId |
getId() |
|
long |
getLifeTime() |
|
int |
getPriority() |
|
long |
getRequestDelay() |
|
org.apache.hadoop.yarn.api.records.Resource |
getResource() |
|
java.lang.String |
getType() |
|
void |
setPriority(int p) |
public ContainerSimulator(org.apache.hadoop.yarn.api.records.ContainerId id,
org.apache.hadoop.yarn.api.records.Resource resource,
long endTime,
long lifeTime,
long allocationId)
public static ContainerSimulator createFromTaskContainerDefinition(TaskContainerDefinition def)
def - The task's definition object.public org.apache.hadoop.yarn.api.records.Resource getResource()
public org.apache.hadoop.yarn.api.records.ContainerId getId()
public int compareTo(java.util.concurrent.Delayed o)
compareTo in interface java.lang.Comparable<java.util.concurrent.Delayed>public long getDelay(java.util.concurrent.TimeUnit unit)
getDelay in interface java.util.concurrent.Delayedpublic long getLifeTime()
public java.lang.String getHostname()
public long getEndTime()
public int getPriority()
public java.lang.String getType()
public void setPriority(int p)
public org.apache.hadoop.yarn.api.records.ExecutionType getExecutionType()
public long getAllocationId()
public long getRequestDelay()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.