Class CsiAdaptorServices

java.lang.Object
org.apache.hadoop.service.AbstractService
org.apache.hadoop.yarn.server.api.AuxiliaryService
org.apache.hadoop.yarn.csi.adaptor.CsiAdaptorServices
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.hadoop.service.Service

public class CsiAdaptorServices extends org.apache.hadoop.yarn.server.api.AuxiliaryService
NM manages csi-adaptors as a single NM AUX service, this service manages a set of rpc services and each of them serves one particular csi-driver. It loads all available drivers from configuration, and find a csi-driver-adaptor implementation class for each of them. At last it brings up all of them as a composite service.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.apache.hadoop.service.Service

    org.apache.hadoop.service.Service.STATE
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
    initializeApplication(org.apache.hadoop.yarn.server.api.ApplicationInitializationContext initAppContext)
     
    protected void
    serviceInit(org.apache.hadoop.conf.Configuration conf)
     
    protected void
     
    protected void
     
    void
    stopApplication(org.apache.hadoop.yarn.server.api.ApplicationTerminationContext stopAppContext)
     

    Methods inherited from class org.apache.hadoop.yarn.server.api.AuxiliaryService

    getAuxiliaryLocalPathHandler, getRecoveryPath, initializeContainer, setAuxiliaryLocalPathHandler, setRecoveryPath, stopContainer

    Methods inherited from class org.apache.hadoop.service.AbstractService

    close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStop

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • CsiAdaptorServices

      protected CsiAdaptorServices()
  • Method Details

    • serviceInit

      protected void serviceInit(org.apache.hadoop.conf.Configuration conf) throws Exception
      Overrides:
      serviceInit in class org.apache.hadoop.service.AbstractService
      Throws:
      Exception
    • serviceStop

      protected void serviceStop() throws Exception
      Overrides:
      serviceStop in class org.apache.hadoop.service.AbstractService
      Throws:
      Exception
    • serviceStart

      protected void serviceStart() throws Exception
      Overrides:
      serviceStart in class org.apache.hadoop.service.AbstractService
      Throws:
      Exception
    • initializeApplication

      public void initializeApplication(org.apache.hadoop.yarn.server.api.ApplicationInitializationContext initAppContext)
      Specified by:
      initializeApplication in class org.apache.hadoop.yarn.server.api.AuxiliaryService
    • stopApplication

      public void stopApplication(org.apache.hadoop.yarn.server.api.ApplicationTerminationContext stopAppContext)
      Specified by:
      stopApplication in class org.apache.hadoop.yarn.server.api.AuxiliaryService
    • getMetaData

      public ByteBuffer getMetaData()
      Specified by:
      getMetaData in class org.apache.hadoop.yarn.server.api.AuxiliaryService