@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 ResourceHandler
configuration
- yarn configuration in useResourceHandlerException
public List<PrivilegedOperation> preStart(Container container) throws ResourceHandlerException
preStart
in interface ResourceHandler
container
- Container being launchedResourceHandlerException
public List<PrivilegedOperation> reacquireContainer(org.apache.hadoop.yarn.api.records.ContainerId containerId) throws ResourceHandlerException
reacquireContainer
in interface ResourceHandler
containerId
- if of the container being reacquired.ResourceHandlerException
public List<PrivilegedOperation> updateContainer(Container container) throws ResourceHandlerException
ResourceHandler
updateContainer
in interface ResourceHandler
container
- the container being updated.ResourceHandlerException
public List<PrivilegedOperation> postComplete(org.apache.hadoop.yarn.api.records.ContainerId containerId) throws ResourceHandlerException
postComplete
in interface ResourceHandler
containerId
- of the container that was completed.ResourceHandlerException
public List<PrivilegedOperation> teardown() throws ResourceHandlerException
ResourceHandler
teardown
in interface ResourceHandler
ResourceHandlerException
@InterfaceAudience.Private public NetworkTagMappingManager createNetworkTagMappingManager(org.apache.hadoop.conf.Configuration conf)
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.