public class DefaultContainerMonitor extends AbstractMonitor implements ContainerAware, ContainerMonitor
ContainerMonitor which simple
tracks number of total and completed containers.| Constructor and Description |
|---|
DefaultContainerMonitor() |
| Modifier and Type | Method and Description |
|---|---|
int |
completedCount()
Gets a count of completed containers.
|
int |
failedCount()
Gets a count of failed containers.
|
int |
freeCount()
Gets a count of free containers.
|
void |
onContainer(java.util.List<org.apache.hadoop.yarn.api.records.Container> containers)
Called when we potentially have new information
about a
Containers. |
void |
onContainerStatus(java.util.List<org.apache.hadoop.yarn.api.records.ContainerStatus> containerStatuses)
Called when we potentially have new information
about a
ContainerStatuss. |
int |
runningCount()
Gets a count of running containers.
|
java.lang.String |
toDebugString()
Gets this class description as a debug string.
|
addContainerMonitorStateListener, notifyStateafterPropertiesSet, doStart, doStop, getBeanFactory, getPhase, getTaskExecutor, getTaskScheduler, getYarnEventPublisher, isAutoStartup, isRunning, onInit, setAutoStartup, setBeanFactory, setPhase, setTaskExecutor, setTaskScheduler, setYarnEventPublisher, start, stop, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddContainerMonitorStateListenerpublic void onContainer(java.util.List<org.apache.hadoop.yarn.api.records.Container> containers)
ContainerAwareContainers.onContainer in interface ContainerAwarecontainers - the containerspublic void onContainerStatus(java.util.List<org.apache.hadoop.yarn.api.records.ContainerStatus> containerStatuses)
ContainerAwareContainerStatuss.onContainerStatus in interface ContainerAwarecontainerStatuses - the container statusespublic int freeCount()
ContainerMonitorfreeCount in interface ContainerMonitorpublic int runningCount()
ContainerMonitorrunningCount in interface ContainerMonitorpublic int failedCount()
ContainerMonitorfailedCount in interface ContainerMonitorpublic int completedCount()
ContainerMonitorcompletedCount in interface ContainerMonitorpublic java.lang.String toDebugString()