public class EndpointContainerShutdown extends java.lang.Object implements ContainerShutdown, org.springframework.beans.factory.BeanFactoryAware
ContainerShutdown
implementation which uses boot shutdown
rest endpoint to notify context close.Constructor and Description |
---|
EndpointContainerShutdown() |
Modifier and Type | Method and Description |
---|---|
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
boolean |
shutdown(java.util.Map<org.apache.hadoop.yarn.api.records.Container,ContainerRegisterInfo> containers)
Shutdown containers.
|
public boolean shutdown(java.util.Map<org.apache.hadoop.yarn.api.records.Container,ContainerRegisterInfo> containers)
ContainerShutdown
shutdown
in interface ContainerShutdown
containers
- the containerspublic void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
setBeanFactory
in interface org.springframework.beans.factory.BeanFactoryAware
org.springframework.beans.BeansException