|
Spring for Apache Hadoop | ||||||||
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 |
reportContainer(org.apache.hadoop.yarn.api.records.Container container)
Notifies monitor of Container . |
void |
reportContainerStatus(org.apache.hadoop.yarn.api.records.ContainerStatus containerStatus)
Notifies monitor for new ContainerStatus . |
void |
reportContainerStatus(java.util.List<org.apache.hadoop.yarn.api.records.ContainerStatus> containerStatuses)
Notifies monitor for new ContainerStatus . |
int |
runningCount()
Gets a count of running containers. |
java.lang.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 reportContainerStatus(java.util.List<org.apache.hadoop.yarn.api.records.ContainerStatus> containerStatuses)
ContainerMonitor
ContainerStatus
.
reportContainerStatus
in interface ContainerMonitor
containerStatuses
- the container statusespublic void reportContainerStatus(org.apache.hadoop.yarn.api.records.ContainerStatus containerStatus)
ContainerMonitor
ContainerStatus
.
reportContainerStatus
in interface ContainerMonitor
containerStatus
- the container statuspublic void reportContainer(org.apache.hadoop.yarn.api.records.Container container)
ContainerMonitor
Container
.
reportContainer
in interface ContainerMonitor
container
- the containerpublic int freeCount()
ContainerMonitor
freeCount
in interface ContainerMonitor
public int runningCount()
ContainerMonitor
runningCount
in interface ContainerMonitor
public int failedCount()
ContainerMonitor
failedCount
in interface ContainerMonitor
public int completedCount()
ContainerMonitor
completedCount
in interface ContainerMonitor
public java.lang.String toDebugString()
|
Spring for Apache Hadoop | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |