Spring for Apache Hadoop

org.springframework.yarn.am.monitor
Interface ContainerMonitor

All Known Implementing Classes:
DefaultContainerMonitor

public interface ContainerMonitor

General interface for components able to monitor application and container statuses.

Author:
Janne Valkealahti

Method Summary
 void addContainerMonitorStateListener(ContainerMonitorListener listener)
          Adds the container monitor state listener.
 int completedCount()
          Gets a count of completed containers.
 int failedCount()
          Gets a count of failed containers.
 int freeCount()
          Gets a count of free containers.
 int runningCount()
          Gets a count of running containers.
 

Method Detail

freeCount

int freeCount()
Gets a count of free containers.

Returns:
count of free containers

runningCount

int runningCount()
Gets a count of running containers.

Returns:
count of running containers

failedCount

int failedCount()
Gets a count of failed containers.

Returns:
count of failed containers

completedCount

int completedCount()
Gets a count of completed containers.

Returns:
count of completed containers

addContainerMonitorStateListener

void addContainerMonitorStateListener(ContainerMonitorListener listener)
Adds the container monitor state listener.

Parameters:
listener - the ContainerMonitorListener

Spring for Apache Hadoop