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