@InterfaceAudience.Private @InterfaceStability.Unstable public abstract class OpportunisticContainersStatus extends Object
OpportunisticContainersStatus captures information
pertaining to the state of execution of the opportunistic containers within a
node.
| Constructor and Description |
|---|
OpportunisticContainersStatus() |
| Modifier and Type | Method and Description |
|---|---|
abstract int |
getEstimatedQueueWaitTime()
Returns the estimated time that a container will have to wait if added to
the queue of the node.
|
abstract int |
getOpportCoresUsed()
Returns CPU cores currently used on the node for running opportunistic
containers.
|
abstract long |
getOpportMemoryUsed()
Returns memory currently used on the node for running opportunistic
containers.
|
abstract int |
getOpportQueueCapacity()
Gets the capacity of the opportunistic containers queue on the node.
|
abstract int |
getQueuedOpportContainers()
Returns the number of queued opportunistic containers on the node.
|
abstract int |
getRunningOpportContainers()
Returns the number of currently running opportunistic containers on the
node.
|
abstract int |
getWaitQueueLength()
Returns the length of the containers queue on the node.
|
static OpportunisticContainersStatus |
newInstance() |
abstract void |
setEstimatedQueueWaitTime(int queueWaitTime)
Sets the estimated time that a container will have to wait if added to the
queue of the node.
|
abstract void |
setOpportCoresUsed(int opportCoresUsed)
Sets the CPU cores used on the node for running opportunistic containers.
|
abstract void |
setOpportMemoryUsed(long opportMemoryUsed)
Sets the memory used on the node for running opportunistic containers.
|
abstract void |
setOpportQueueCapacity(int queueCapacity)
Sets the capacity of the opportunistic containers queue on the node.
|
abstract void |
setQueuedOpportContainers(int queuedOpportContainers)
Sets the number of queued opportunistic containers on the node.
|
abstract void |
setRunningOpportContainers(int runningOpportContainers)
Sets the number of running opportunistic containers.
|
abstract void |
setWaitQueueLength(int waitQueueLength)
Sets the length of the containers queue on the node.
|
public static OpportunisticContainersStatus newInstance()
@InterfaceAudience.Private @InterfaceStability.Unstable public abstract int getRunningOpportContainers()
@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setRunningOpportContainers(int runningOpportContainers)
runningOpportContainers - number of running opportunistic containers.@InterfaceAudience.Private @InterfaceStability.Unstable public abstract long getOpportMemoryUsed()
@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setOpportMemoryUsed(long opportMemoryUsed)
opportMemoryUsed - memory (in bytes) used for running opportunistic
containers.@InterfaceAudience.Private @InterfaceStability.Unstable public abstract int getOpportCoresUsed()
@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setOpportCoresUsed(int opportCoresUsed)
opportCoresUsed - memory (in bytes) used for running opportunistic
containers.@InterfaceAudience.Private @InterfaceStability.Unstable public abstract int getQueuedOpportContainers()
@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setQueuedOpportContainers(int queuedOpportContainers)
queuedOpportContainers - number of queued opportunistic containers.@InterfaceAudience.Private @InterfaceStability.Unstable public abstract int getWaitQueueLength()
@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setWaitQueueLength(int waitQueueLength)
waitQueueLength - length of the containers queue.@InterfaceAudience.Private @InterfaceStability.Unstable public abstract int getEstimatedQueueWaitTime()
@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setEstimatedQueueWaitTime(int queueWaitTime)
queueWaitTime - estimated queuing time.@InterfaceAudience.Private @InterfaceStability.Unstable public abstract int getOpportQueueCapacity()
@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setOpportQueueCapacity(int queueCapacity)
queueCapacity - queue capacity.Copyright © 2008–2022 Apache Software Foundation. All rights reserved.