public class OpportunisticContainersStatusPBImpl extends OpportunisticContainersStatus
| Constructor | Description |
|---|---|
OpportunisticContainersStatusPBImpl() |
|
OpportunisticContainersStatusPBImpl(org.apache.hadoop.yarn.proto.YarnServerCommonProtos.OpportunisticContainersStatusProto proto) |
| Modifier and Type | Method | Description |
|---|---|---|
int |
getEstimatedQueueWaitTime() |
Returns the estimated time that a container will have to wait if added to
the queue of the node.
|
int |
getOpportCoresUsed() |
Returns CPU cores currently used on the node for running opportunistic
containers.
|
long |
getOpportMemoryUsed() |
Returns memory currently used on the node for running opportunistic
containers.
|
int |
getOpportQueueCapacity() |
Gets the capacity of the opportunistic containers queue on the node.
|
org.apache.hadoop.yarn.proto.YarnServerCommonProtos.OpportunisticContainersStatusProto |
getProto() |
|
int |
getQueuedOpportContainers() |
Returns the number of queued opportunistic containers on the node.
|
int |
getRunningOpportContainers() |
Returns the number of currently running opportunistic containers on the
node.
|
int |
getWaitQueueLength() |
Returns the length of the containers queue on the node.
|
void |
setEstimatedQueueWaitTime(int queueWaitTime) |
Sets the estimated time that a container will have to wait if added to the
queue of the node.
|
void |
setOpportCoresUsed(int opportCoresUsed) |
Sets the CPU cores used on the node for running opportunistic containers.
|
void |
setOpportMemoryUsed(long opportMemoryUsed) |
Sets the memory used on the node for running opportunistic containers.
|
void |
setOpportQueueCapacity(int maxOpportQueueLength) |
Sets the capacity of the opportunistic containers queue on the node.
|
void |
setQueuedOpportContainers(int queuedOpportContainers) |
Sets the number of queued opportunistic containers on the node.
|
void |
setRunningOpportContainers(int runningOpportContainers) |
Sets the number of running opportunistic containers.
|
void |
setWaitQueueLength(int waitQueueLength) |
Sets the length of the containers queue on the node.
|
newInstancepublic OpportunisticContainersStatusPBImpl()
public OpportunisticContainersStatusPBImpl(org.apache.hadoop.yarn.proto.YarnServerCommonProtos.OpportunisticContainersStatusProto proto)
public org.apache.hadoop.yarn.proto.YarnServerCommonProtos.OpportunisticContainersStatusProto getProto()
public int getRunningOpportContainers()
OpportunisticContainersStatusgetRunningOpportContainers in class OpportunisticContainersStatuspublic void setRunningOpportContainers(int runningOpportContainers)
OpportunisticContainersStatussetRunningOpportContainers in class OpportunisticContainersStatusrunningOpportContainers - number of running opportunistic containers.public long getOpportMemoryUsed()
OpportunisticContainersStatusgetOpportMemoryUsed in class OpportunisticContainersStatuspublic void setOpportMemoryUsed(long opportMemoryUsed)
OpportunisticContainersStatussetOpportMemoryUsed in class OpportunisticContainersStatusopportMemoryUsed - memory (in bytes) used for running opportunistic
containers.public int getOpportCoresUsed()
OpportunisticContainersStatusgetOpportCoresUsed in class OpportunisticContainersStatuspublic void setOpportCoresUsed(int opportCoresUsed)
OpportunisticContainersStatussetOpportCoresUsed in class OpportunisticContainersStatusopportCoresUsed - memory (in bytes) used for running opportunistic
containers.public int getQueuedOpportContainers()
OpportunisticContainersStatusgetQueuedOpportContainers in class OpportunisticContainersStatuspublic void setQueuedOpportContainers(int queuedOpportContainers)
OpportunisticContainersStatussetQueuedOpportContainers in class OpportunisticContainersStatusqueuedOpportContainers - number of queued opportunistic containers.public int getWaitQueueLength()
OpportunisticContainersStatusgetWaitQueueLength in class OpportunisticContainersStatuspublic void setWaitQueueLength(int waitQueueLength)
OpportunisticContainersStatussetWaitQueueLength in class OpportunisticContainersStatuswaitQueueLength - length of the containers queue.public int getEstimatedQueueWaitTime()
OpportunisticContainersStatusgetEstimatedQueueWaitTime in class OpportunisticContainersStatuspublic void setEstimatedQueueWaitTime(int queueWaitTime)
OpportunisticContainersStatussetEstimatedQueueWaitTime in class OpportunisticContainersStatusqueueWaitTime - estimated queuing time.public int getOpportQueueCapacity()
OpportunisticContainersStatusgetOpportQueueCapacity in class OpportunisticContainersStatuspublic void setOpportQueueCapacity(int maxOpportQueueLength)
OpportunisticContainersStatussetOpportQueueCapacity in class OpportunisticContainersStatusmaxOpportQueueLength - queue capacity.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.