OutboundBandwidthResourceHandler, ResourceHandler@Private @Unstable public class TrafficControlBandwidthHandlerImpl extends java.lang.Object implements OutboundBandwidthResourceHandler
| Constructor | Description |
|---|---|
TrafficControlBandwidthHandlerImpl(PrivilegedOperationExecutor privilegedOperationExecutor,
CGroupsHandler cGroupsHandler,
org.apache.hadoop.yarn.server.nodemanager.containermanager.linux.resources.TrafficController trafficController) |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.List<PrivilegedOperation> |
bootstrap(org.apache.hadoop.conf.Configuration configuration) |
Bootstrapping 'outbound-bandwidth' resource handler - mounts net_cls
controller and bootstraps a traffic control bandwidth shaping hierarchy
|
java.util.Map<org.apache.hadoop.yarn.api.records.ContainerId,java.lang.Integer> |
getBytesSentPerContainer() |
Returns total bytes sent per container to be used for metrics tracking
purposes.
|
java.util.List<PrivilegedOperation> |
postComplete(org.apache.hadoop.yarn.api.records.ContainerId containerId) |
Cleanup operations once container is completed - deletes cgroup and
removes traffic shaping rule(s).
|
java.util.List<PrivilegedOperation> |
preStart(Container container) |
Pre-start hook for 'outbound-bandwidth' resource.
|
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 TrafficControlBandwidthHandlerImpl(PrivilegedOperationExecutor privilegedOperationExecutor, CGroupsHandler cGroupsHandler, org.apache.hadoop.yarn.server.nodemanager.containermanager.linux.resources.TrafficController trafficController)
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.Map<org.apache.hadoop.yarn.api.records.ContainerId,java.lang.Integer> getBytesSentPerContainer()
throws ResourceHandlerException
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 ResourceHandlerResourceHandlerExceptionpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2008–2025 Apache Software Foundation. All rights reserved.