@InterfaceAudience.Private
 @InterfaceStability.Unstable
public interface ResourceHandler
| Modifier and Type | Method and Description | 
|---|---|
| List<PrivilegedOperation> | bootstrap(org.apache.hadoop.conf.Configuration configuration)Bootstrap resource susbsystem. | 
| List<PrivilegedOperation> | postComplete(org.apache.hadoop.yarn.api.records.ContainerId containerId)Perform any tasks necessary after container completion. | 
| List<PrivilegedOperation> | preStart(Container container)Prepare a resource environment for container launch | 
| List<PrivilegedOperation> | reacquireContainer(org.apache.hadoop.yarn.api.records.ContainerId containerId)Require state for container that was already launched | 
| List<PrivilegedOperation> | teardown()Teardown environment for resource subsystem if requested. | 
| List<PrivilegedOperation> | updateContainer(Container container)Update state for container that was already launched | 
List<PrivilegedOperation> bootstrap(org.apache.hadoop.conf.Configuration configuration) throws ResourceHandlerException
ResourceHandlerExceptionList<PrivilegedOperation> preStart(Container container) throws ResourceHandlerException
container - Container being launchedResourceHandlerExceptionList<PrivilegedOperation> reacquireContainer(org.apache.hadoop.yarn.api.records.ContainerId containerId) throws ResourceHandlerException
containerId - id of the container being reacquired.ResourceHandlerExceptionList<PrivilegedOperation> updateContainer(Container container) throws ResourceHandlerException
container - the container being updated.ResourceHandlerExceptionList<PrivilegedOperation> postComplete(org.apache.hadoop.yarn.api.records.ContainerId containerId) throws ResourceHandlerException
containerId - of the container that was completed.ResourceHandlerExceptionList<PrivilegedOperation> teardown() throws ResourceHandlerException
ResourceHandlerExceptionCopyright © 2008–2023 Apache Software Foundation. All rights reserved.