|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.yarn.support.LifecycleObjectSupport
org.springframework.yarn.am.monitor.AbstractMonitor
org.springframework.yarn.am.monitor.DefaultContainerMonitor
public class DefaultContainerMonitor
Default implementation of ContainerMonitor which simple
tracks number of total and completed containers.
| Constructor Summary | |
|---|---|
DefaultContainerMonitor()
|
|
| Method Summary | |
|---|---|
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(List<Container> containers)
Called when we potentially have new information about a Containers. |
void |
onContainerStatus(List<ContainerStatus> containerStatuses)
Called when we potentially have new information about a ContainerStatuss. |
int |
runningCount()
Gets a count of running containers. |
String |
toDebugString()
Gets this class description as a debug string. |
| Methods inherited from class org.springframework.yarn.am.monitor.AbstractMonitor |
|---|
addContainerMonitorStateListener, notifyState |
| Methods inherited from class org.springframework.yarn.support.LifecycleObjectSupport |
|---|
afterPropertiesSet, doStart, doStop, getBeanFactory, getPhase, getTaskExecutor, getTaskScheduler, getYarnEventPublisher, isAutoStartup, isRunning, onInit, setAutoStartup, setBeanFactory, setPhase, setTaskExecutor, setTaskScheduler, setYarnEventPublisher, start, stop, stop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.springframework.yarn.am.monitor.ContainerMonitor |
|---|
addContainerMonitorStateListener |
| Constructor Detail |
|---|
public DefaultContainerMonitor()
| Method Detail |
|---|
public void onContainer(List<Container> containers)
ContainerAwareContainers.
onContainer in interface ContainerAwarecontainers - the containerspublic void onContainerStatus(List<ContainerStatus> containerStatuses)
ContainerAwareContainerStatuss.
onContainerStatus in interface ContainerAwarecontainerStatuses - the container statusespublic int freeCount()
ContainerMonitor
freeCount in interface ContainerMonitorpublic int runningCount()
ContainerMonitor
runningCount in interface ContainerMonitorpublic int failedCount()
ContainerMonitor
failedCount in interface ContainerMonitorpublic int completedCount()
ContainerMonitor
completedCount in interface ContainerMonitorpublic String toDebugString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||