public class CompositeContainerAllocatorListener extends AbstractCompositeListener<ContainerAllocatorListener> implements ContainerAllocatorListener
| Constructor and Description |
|---|
CompositeContainerAllocatorListener() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
getListeners, register, setListenerspublic void allocated(java.util.List<org.apache.hadoop.yarn.api.records.Container> allocatedContainers)
ContainerAllocatorListenerallocated in interface ContainerAllocatorListenerallocatedContainers - list of allocated Containerspublic void completed(java.util.List<org.apache.hadoop.yarn.api.records.ContainerStatus> completedContainers)
ContainerAllocatorListenercompleted in interface ContainerAllocatorListenercompletedContainers - list of completed ContainerStatuss