@InterfaceAudience.Private @InterfaceStability.Unstable public class NetworkPacketTaggingHandlerImpl extends Object implements ResourceHandler
| Constructor and Description | 
|---|
| NetworkPacketTaggingHandlerImpl(PrivilegedOperationExecutor privilegedOperationExecutor,
                               CGroupsHandler cGroupsHandler) | 
| Modifier and Type | Method and Description | 
|---|---|
| List<PrivilegedOperation> | bootstrap(org.apache.hadoop.conf.Configuration configuration)Bootstrapping network-tagging-handler - mounts net_cls
 controller. | 
| NetworkTagMappingManager | createNetworkTagMappingManager(org.apache.hadoop.conf.Configuration conf) | 
| List<PrivilegedOperation> | postComplete(org.apache.hadoop.yarn.api.records.ContainerId containerId)Cleanup operation once container is completed - deletes cgroup. | 
| List<PrivilegedOperation> | preStart(Container container)Pre-start hook for network-tagging-handler. | 
| List<PrivilegedOperation> | reacquireContainer(org.apache.hadoop.yarn.api.records.ContainerId containerId)Reacquires state for a container - reads the classid from the cgroup
 being used for the container being reacquired. | 
| List<PrivilegedOperation> | teardown()Teardown environment for resource subsystem if requested. | 
| String | toString() | 
| List<PrivilegedOperation> | updateContainer(Container container)Update state for container that was already launched | 
public NetworkPacketTaggingHandlerImpl(PrivilegedOperationExecutor privilegedOperationExecutor, CGroupsHandler cGroupsHandler)
public List<PrivilegedOperation> bootstrap(org.apache.hadoop.conf.Configuration configuration) throws ResourceHandlerException
bootstrap in interface ResourceHandlerconfiguration - yarn configuration in useResourceHandlerExceptionpublic List<PrivilegedOperation> preStart(Container container) throws ResourceHandlerException
preStart in interface ResourceHandlercontainer - Container being launchedResourceHandlerExceptionpublic List<PrivilegedOperation> reacquireContainer(org.apache.hadoop.yarn.api.records.ContainerId containerId) throws ResourceHandlerException
reacquireContainer in interface ResourceHandlercontainerId - if of the container being reacquired.ResourceHandlerExceptionpublic List<PrivilegedOperation> updateContainer(Container container) throws ResourceHandlerException
ResourceHandlerupdateContainer in interface ResourceHandlercontainer - the container being updated.ResourceHandlerExceptionpublic List<PrivilegedOperation> postComplete(org.apache.hadoop.yarn.api.records.ContainerId containerId) throws ResourceHandlerException
postComplete in interface ResourceHandlercontainerId - of the container that was completed.ResourceHandlerExceptionpublic List<PrivilegedOperation> teardown() throws ResourceHandlerException
ResourceHandlerteardown in interface ResourceHandlerResourceHandlerException@InterfaceAudience.Private public NetworkTagMappingManager createNetworkTagMappingManager(org.apache.hadoop.conf.Configuration conf)
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.