java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.volume.csi.lifecycle.VolumeImpl
All Implemented Interfaces:
org.apache.hadoop.yarn.event.EventHandler<VolumeEvent>, Volume

public class VolumeImpl extends Object implements Volume
This class maintains the volume states and state transition according to the CSI volume lifecycle. Volume states are stored in VolumeStates class.
  • Constructor Details

    • VolumeImpl

      public VolumeImpl(org.apache.hadoop.yarn.server.volume.csi.VolumeMetaData volumeMeta)
  • Method Details

    • setClient

      @VisibleForTesting public void setClient(org.apache.hadoop.yarn.api.CsiAdaptorProtocol csiAdaptorClient)
      Specified by:
      setClient in interface Volume
    • getClient

      public org.apache.hadoop.yarn.api.CsiAdaptorProtocol getClient()
      Specified by:
      getClient in interface Volume
    • getVolumeMeta

      public org.apache.hadoop.yarn.server.volume.csi.VolumeMetaData getVolumeMeta()
      Specified by:
      getVolumeMeta in interface Volume
    • getVolumeState

      public VolumeState getVolumeState()
      Specified by:
      getVolumeState in interface Volume
    • getVolumeId

      public org.apache.hadoop.yarn.server.volume.csi.VolumeId getVolumeId()
      Specified by:
      getVolumeId in interface Volume
    • handle

      public void handle(VolumeEvent event)
      Specified by:
      handle in interface org.apache.hadoop.yarn.event.EventHandler<VolumeEvent>