Spring for Apache Hadoop

org.springframework.yarn.listener
Interface ContainerAllocatorListener

All Known Implementing Classes:
CompositeContainerAllocatorListener

public interface ContainerAllocatorListener

Interface used for allocator to notify newly allocated and completed containers.

Author:
Janne Valkealahti

Method Summary
 void allocated(java.util.List<org.apache.hadoop.yarn.api.records.Container> allocatedContainers)
          Invoked when new containers are allocated.
 void completed(java.util.List<org.apache.hadoop.yarn.api.records.ContainerStatus> completedContainers)
          Invoked when containers are releases and thus marked as completed.
 

Method Detail

allocated

void allocated(java.util.List<org.apache.hadoop.yarn.api.records.Container> allocatedContainers)
Invoked when new containers are allocated.

Parameters:
allocatedContainers - list of allocated Containers

completed

void completed(java.util.List<org.apache.hadoop.yarn.api.records.ContainerStatus> completedContainers)
Invoked when containers are releases and thus marked as completed.

Parameters:
completedContainers - list of completed ContainerStatuss

Spring for Apache Hadoop