org.springframework.yarn.listener
Class CompositeContainerAllocatorListener
java.lang.Object
org.springframework.yarn.listener.AbstractCompositeListener<ContainerAllocatorListener>
org.springframework.yarn.listener.CompositeContainerAllocatorListener
- All Implemented Interfaces:
- ContainerAllocatorListener
public class CompositeContainerAllocatorListener
- extends AbstractCompositeListener<ContainerAllocatorListener>
- implements ContainerAllocatorListener
Composite listener for handling allocation events.
- Author:
- Janne Valkealahti
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompositeContainerAllocatorListener
public CompositeContainerAllocatorListener()
allocated
public void allocated(List<Container> allocatedContainers)
- Description copied from interface:
ContainerAllocatorListener
- Invoked when new containers are allocated.
- Specified by:
allocated in interface ContainerAllocatorListener
- Parameters:
allocatedContainers - list of allocated Containers
completed
public void completed(List<ContainerStatus> completedContainers)
- Description copied from interface:
ContainerAllocatorListener
- Invoked when containers are releases and thus
marked as completed.
- Specified by:
completed in interface ContainerAllocatorListener
- Parameters:
completedContainers - list of completed ContainerStatuss