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 -
Method Summary
Modifier and TypeMethodDescriptionvoidinitializeApplication(org.apache.hadoop.yarn.server.api.ApplicationInitializationContext initAppContext) protected voidserviceInit(org.apache.hadoop.conf.Configuration conf) protected voidprotected voidvoidstopApplication(org.apache.hadoop.yarn.server.api.ApplicationTerminationContext stopAppContext) Methods inherited from class org.apache.hadoop.yarn.server.api.AuxiliaryService
getAuxiliaryLocalPathHandler, getRecoveryPath, initializeContainer, setAuxiliaryLocalPathHandler, setRecoveryPath, stopContainerMethods 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
-
Constructor Details
-
CsiAdaptorServices
protected CsiAdaptorServices()
-
-
Method Details
-
serviceInit
- Overrides:
serviceInitin classorg.apache.hadoop.service.AbstractService- Throws:
Exception
-
serviceStop
- Overrides:
serviceStopin classorg.apache.hadoop.service.AbstractService- Throws:
Exception
-
serviceStart
- Overrides:
serviceStartin classorg.apache.hadoop.service.AbstractService- Throws:
Exception
-
initializeApplication
public void initializeApplication(org.apache.hadoop.yarn.server.api.ApplicationInitializationContext initAppContext) - Specified by:
initializeApplicationin classorg.apache.hadoop.yarn.server.api.AuxiliaryService
-
stopApplication
public void stopApplication(org.apache.hadoop.yarn.server.api.ApplicationTerminationContext stopAppContext) - Specified by:
stopApplicationin classorg.apache.hadoop.yarn.server.api.AuxiliaryService
-
getMetaData
- Specified by:
getMetaDatain classorg.apache.hadoop.yarn.server.api.AuxiliaryService
-