Class OpportunisticContainersStatusPBImpl
java.lang.Object
org.apache.hadoop.yarn.server.api.records.OpportunisticContainersStatus
org.apache.hadoop.yarn.server.api.records.impl.pb.OpportunisticContainersStatusPBImpl
Protocol Buffer implementation of OpportunisticContainersStatus.
-
Constructor Summary
ConstructorsConstructorDescriptionOpportunisticContainersStatusPBImpl(org.apache.hadoop.yarn.proto.YarnServerCommonProtos.OpportunisticContainersStatusProto proto) -
Method Summary
Modifier and TypeMethodDescriptionintReturns the estimated time that a container will have to wait if added to the queue of the node.intReturns CPU cores currently used on the node for running opportunistic containers.longReturns memory currently used on the node for running opportunistic containers.intGets the capacity of the opportunistic containers queue on the node.org.apache.hadoop.yarn.proto.YarnServerCommonProtos.OpportunisticContainersStatusProtogetProto()intReturns the number of queued opportunistic containers on the node.intReturns the number of currently running opportunistic containers on the node.intReturns the length of the containers queue on the node.voidsetEstimatedQueueWaitTime(int queueWaitTime) Sets the estimated time that a container will have to wait if added to the queue of the node.voidsetOpportCoresUsed(int opportCoresUsed) Sets the CPU cores used on the node for running opportunistic containers.voidsetOpportMemoryUsed(long opportMemoryUsed) Sets the memory used on the node for running opportunistic containers.voidsetOpportQueueCapacity(int maxOpportQueueLength) Sets the capacity of the opportunistic containers queue on the node.voidsetQueuedOpportContainers(int queuedOpportContainers) Sets the number of queued opportunistic containers on the node.voidsetRunningOpportContainers(int runningOpportContainers) Sets the number of running opportunistic containers.voidsetWaitQueueLength(int waitQueueLength) Sets the length of the containers queue on the node.Methods inherited from class org.apache.hadoop.yarn.server.api.records.OpportunisticContainersStatus
newInstance
-
Constructor Details
-
OpportunisticContainersStatusPBImpl
public OpportunisticContainersStatusPBImpl() -
OpportunisticContainersStatusPBImpl
public OpportunisticContainersStatusPBImpl(org.apache.hadoop.yarn.proto.YarnServerCommonProtos.OpportunisticContainersStatusProto proto)
-
-
Method Details
-
getProto
public org.apache.hadoop.yarn.proto.YarnServerCommonProtos.OpportunisticContainersStatusProto getProto() -
getRunningOpportContainers
public int getRunningOpportContainers()Description copied from class:OpportunisticContainersStatusReturns the number of currently running opportunistic containers on the node.- Specified by:
getRunningOpportContainersin classOpportunisticContainersStatus- Returns:
- number of running opportunistic containers.
-
setRunningOpportContainers
public void setRunningOpportContainers(int runningOpportContainers) Description copied from class:OpportunisticContainersStatusSets the number of running opportunistic containers.- Specified by:
setRunningOpportContainersin classOpportunisticContainersStatus- Parameters:
runningOpportContainers- number of running opportunistic containers.
-
getOpportMemoryUsed
public long getOpportMemoryUsed()Description copied from class:OpportunisticContainersStatusReturns memory currently used on the node for running opportunistic containers.- Specified by:
getOpportMemoryUsedin classOpportunisticContainersStatus- Returns:
- memory (in bytes) used for running opportunistic containers.
-
setOpportMemoryUsed
public void setOpportMemoryUsed(long opportMemoryUsed) Description copied from class:OpportunisticContainersStatusSets the memory used on the node for running opportunistic containers.- Specified by:
setOpportMemoryUsedin classOpportunisticContainersStatus- Parameters:
opportMemoryUsed- memory (in bytes) used for running opportunistic containers.
-
getOpportCoresUsed
public int getOpportCoresUsed()Description copied from class:OpportunisticContainersStatusReturns CPU cores currently used on the node for running opportunistic containers.- Specified by:
getOpportCoresUsedin classOpportunisticContainersStatus- Returns:
- CPU cores used for running opportunistic containers.
-
setOpportCoresUsed
public void setOpportCoresUsed(int opportCoresUsed) Description copied from class:OpportunisticContainersStatusSets the CPU cores used on the node for running opportunistic containers.- Specified by:
setOpportCoresUsedin classOpportunisticContainersStatus- Parameters:
opportCoresUsed- memory (in bytes) used for running opportunistic containers.
-
getQueuedOpportContainers
public int getQueuedOpportContainers()Description copied from class:OpportunisticContainersStatusReturns the number of queued opportunistic containers on the node.- Specified by:
getQueuedOpportContainersin classOpportunisticContainersStatus- Returns:
- number of queued opportunistic containers.
-
setQueuedOpportContainers
public void setQueuedOpportContainers(int queuedOpportContainers) Description copied from class:OpportunisticContainersStatusSets the number of queued opportunistic containers on the node.- Specified by:
setQueuedOpportContainersin classOpportunisticContainersStatus- Parameters:
queuedOpportContainers- number of queued opportunistic containers.
-
getWaitQueueLength
public int getWaitQueueLength()Description copied from class:OpportunisticContainersStatusReturns the length of the containers queue on the node.- Specified by:
getWaitQueueLengthin classOpportunisticContainersStatus- Returns:
- length of the containers queue.
-
setWaitQueueLength
public void setWaitQueueLength(int waitQueueLength) Description copied from class:OpportunisticContainersStatusSets the length of the containers queue on the node.- Specified by:
setWaitQueueLengthin classOpportunisticContainersStatus- Parameters:
waitQueueLength- length of the containers queue.
-
getEstimatedQueueWaitTime
public int getEstimatedQueueWaitTime()Description copied from class:OpportunisticContainersStatusReturns the estimated time that a container will have to wait if added to the queue of the node.- Specified by:
getEstimatedQueueWaitTimein classOpportunisticContainersStatus- Returns:
- estimated queuing time.
-
setEstimatedQueueWaitTime
public void setEstimatedQueueWaitTime(int queueWaitTime) Description copied from class:OpportunisticContainersStatusSets the estimated time that a container will have to wait if added to the queue of the node.- Specified by:
setEstimatedQueueWaitTimein classOpportunisticContainersStatus- Parameters:
queueWaitTime- estimated queuing time.
-
getOpportQueueCapacity
public int getOpportQueueCapacity()Description copied from class:OpportunisticContainersStatusGets the capacity of the opportunistic containers queue on the node.- Specified by:
getOpportQueueCapacityin classOpportunisticContainersStatus- Returns:
- queue capacity.
-
setOpportQueueCapacity
public void setOpportQueueCapacity(int maxOpportQueueLength) Description copied from class:OpportunisticContainersStatusSets the capacity of the opportunistic containers queue on the node.- Specified by:
setOpportQueueCapacityin classOpportunisticContainersStatus- Parameters:
maxOpportQueueLength- queue capacity.
-