public interface DevicePlugin
| Modifier and Type | Method and Description | 
|---|---|
| Set<Device> | getDevices()Called when update node resource. | 
| DeviceRegisterRequest | getRegisterRequestInfo()Called first when device plugin framework wants to register. | 
| DeviceRuntimeSpec | onDevicesAllocated(Set<Device> allocatedDevices,
                  YarnRuntimeType yarnRuntime)Asking how these devices should be prepared/used
 before/when container launch. | 
| void | onDevicesReleased(Set<Device> releasedDevices)Called after device released. | 
DeviceRegisterRequest getRegisterRequestInfo() throws Exception
DeviceRegisterRequestExceptionDeviceRuntimeSpec onDevicesAllocated(Set<Device> allocatedDevices, YarnRuntimeType yarnRuntime) throws Exception
VolumeSpec to let the
 framework to create volume before running container.allocatedDevices - A set of allocated Device.yarnRuntime - Indicate which runtime YARN will use
        Could be RUNTIME_DEFAULT or RUNTIME_DOCKER
        in DeviceRuntimeSpec constants. The default means YARN's
        non-docker container runtime is used. The docker means YARN's
        docker container runtime is used.DeviceRuntimeSpec description about environment,
 VolumeSpec, MountVolumeSpec. etcExceptionCopyright © 2008–2023 Apache Software Foundation. All rights reserved.