public class OpportunisticContainersStatusPBImpl extends OpportunisticContainersStatus
Constructor and Description |
---|
OpportunisticContainersStatusPBImpl() |
OpportunisticContainersStatusPBImpl(org.apache.hadoop.yarn.proto.YarnServerCommonProtos.OpportunisticContainersStatusProto proto) |
Modifier and Type | Method and 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.
|
newInstance
public OpportunisticContainersStatusPBImpl()
public OpportunisticContainersStatusPBImpl(org.apache.hadoop.yarn.proto.YarnServerCommonProtos.OpportunisticContainersStatusProto proto)
public org.apache.hadoop.yarn.proto.YarnServerCommonProtos.OpportunisticContainersStatusProto getProto()
public int getRunningOpportContainers()
OpportunisticContainersStatus
getRunningOpportContainers
in class OpportunisticContainersStatus
public void setRunningOpportContainers(int runningOpportContainers)
OpportunisticContainersStatus
setRunningOpportContainers
in class OpportunisticContainersStatus
runningOpportContainers
- number of running opportunistic containers.public long getOpportMemoryUsed()
OpportunisticContainersStatus
getOpportMemoryUsed
in class OpportunisticContainersStatus
public void setOpportMemoryUsed(long opportMemoryUsed)
OpportunisticContainersStatus
setOpportMemoryUsed
in class OpportunisticContainersStatus
opportMemoryUsed
- memory (in bytes) used for running opportunistic
containers.public int getOpportCoresUsed()
OpportunisticContainersStatus
getOpportCoresUsed
in class OpportunisticContainersStatus
public void setOpportCoresUsed(int opportCoresUsed)
OpportunisticContainersStatus
setOpportCoresUsed
in class OpportunisticContainersStatus
opportCoresUsed
- memory (in bytes) used for running opportunistic
containers.public int getQueuedOpportContainers()
OpportunisticContainersStatus
getQueuedOpportContainers
in class OpportunisticContainersStatus
public void setQueuedOpportContainers(int queuedOpportContainers)
OpportunisticContainersStatus
setQueuedOpportContainers
in class OpportunisticContainersStatus
queuedOpportContainers
- number of queued opportunistic containers.public int getWaitQueueLength()
OpportunisticContainersStatus
getWaitQueueLength
in class OpportunisticContainersStatus
public void setWaitQueueLength(int waitQueueLength)
OpportunisticContainersStatus
setWaitQueueLength
in class OpportunisticContainersStatus
waitQueueLength
- length of the containers queue.public int getEstimatedQueueWaitTime()
OpportunisticContainersStatus
getEstimatedQueueWaitTime
in class OpportunisticContainersStatus
public void setEstimatedQueueWaitTime(int queueWaitTime)
OpportunisticContainersStatus
setEstimatedQueueWaitTime
in class OpportunisticContainersStatus
queueWaitTime
- estimated queuing time.public int getOpportQueueCapacity()
OpportunisticContainersStatus
getOpportQueueCapacity
in class OpportunisticContainersStatus
public void setOpportQueueCapacity(int maxOpportQueueLength)
OpportunisticContainersStatus
setOpportQueueCapacity
in class OpportunisticContainersStatus
maxOpportQueueLength
- queue capacity.Copyright © 2008–2021 Apache Software Foundation. All rights reserved.