ResourceHandler@Unstable @Private public class FpgaResourceHandlerImpl extends java.lang.Object implements ResourceHandler
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
CONTAINER_ID_CLI_OPTION |
|
static java.lang.String |
EXCLUDED_FPGAS_CLI_OPTION |
| Constructor | Description |
|---|---|
FpgaResourceHandlerImpl(Context nmContext,
CGroupsHandler cGroupsHandler,
PrivilegedOperationExecutor privilegedOperationExecutor,
AbstractFpgaVendorPlugin plugin,
FpgaDiscoverer fpgaDiscoverer) |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.List<PrivilegedOperation> |
bootstrap(org.apache.hadoop.conf.Configuration configuration) |
Bootstrap resource susbsystem.
|
java.lang.String |
getRequestedIPID(Container container) |
|
java.util.List<PrivilegedOperation> |
postComplete(org.apache.hadoop.yarn.api.records.ContainerId containerId) |
Perform any tasks necessary after container completion.
|
java.util.List<PrivilegedOperation> |
preStart(Container container) |
Prepare a resource environment for container launch
|
java.util.List<PrivilegedOperation> |
reacquireContainer(org.apache.hadoop.yarn.api.records.ContainerId containerId) |
Require state for container that was already launched
|
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 static final java.lang.String EXCLUDED_FPGAS_CLI_OPTION
public static final java.lang.String CONTAINER_ID_CLI_OPTION
@VisibleForTesting public FpgaResourceHandlerImpl(Context nmContext, CGroupsHandler cGroupsHandler, PrivilegedOperationExecutor privilegedOperationExecutor, AbstractFpgaVendorPlugin plugin, FpgaDiscoverer fpgaDiscoverer)
public java.lang.String getRequestedIPID(Container container)
public java.util.List<PrivilegedOperation> bootstrap(org.apache.hadoop.conf.Configuration configuration) throws ResourceHandlerException
ResourceHandlerbootstrap in interface ResourceHandlerResourceHandlerExceptionpublic java.util.List<PrivilegedOperation> preStart(Container container) throws ResourceHandlerException
ResourceHandlerpreStart in interface ResourceHandlercontainer - Container being launchedResourceHandlerExceptionpublic java.util.List<PrivilegedOperation> reacquireContainer(org.apache.hadoop.yarn.api.records.ContainerId containerId) throws ResourceHandlerException
ResourceHandlerreacquireContainer in interface ResourceHandlercontainerId - id 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
ResourceHandlerpostComplete 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.