Class CsiAdaptorProtocolService
java.lang.Object
org.apache.hadoop.service.AbstractService
org.apache.hadoop.yarn.csi.adaptor.CsiAdaptorProtocolService
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.hadoop.service.Service,org.apache.hadoop.yarn.api.CsiAdaptorProtocol
public class CsiAdaptorProtocolService
extends org.apache.hadoop.service.AbstractService
implements org.apache.hadoop.yarn.api.CsiAdaptorProtocol
This is a Hadoop RPC server, we uses the Hadoop RPC framework here
because we need to stick to the security model current Hadoop supports.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.hadoop.service.Service
org.apache.hadoop.service.Service.STATE -
Constructor Summary
ConstructorsConstructorDescriptionCsiAdaptorProtocolService(org.apache.hadoop.yarn.api.CsiAdaptorPlugin adaptorImpl) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.yarn.api.protocolrecords.GetPluginInfoResponsegetPluginInfo(org.apache.hadoop.yarn.api.protocolrecords.GetPluginInfoRequest request) org.apache.hadoop.yarn.api.protocolrecords.NodePublishVolumeResponsenodePublishVolume(org.apache.hadoop.yarn.api.protocolrecords.NodePublishVolumeRequest request) org.apache.hadoop.yarn.api.protocolrecords.NodeUnpublishVolumeResponsenodeUnpublishVolume(org.apache.hadoop.yarn.api.protocolrecords.NodeUnpublishVolumeRequest request) protected voidserviceInit(org.apache.hadoop.conf.Configuration conf) protected voidprotected voidorg.apache.hadoop.yarn.api.protocolrecords.ValidateVolumeCapabilitiesResponsevalidateVolumeCapacity(org.apache.hadoop.yarn.api.protocolrecords.ValidateVolumeCapabilitiesRequest request) 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
-
Constructor Details
-
CsiAdaptorProtocolService
public CsiAdaptorProtocolService(org.apache.hadoop.yarn.api.CsiAdaptorPlugin adaptorImpl)
-
-
Method Details
-
serviceInit
- Overrides:
serviceInitin classorg.apache.hadoop.service.AbstractService- Throws:
Exception
-
serviceStart
- Overrides:
serviceStartin classorg.apache.hadoop.service.AbstractService- Throws:
Exception
-
serviceStop
- Overrides:
serviceStopin classorg.apache.hadoop.service.AbstractService- Throws:
Exception
-
getPluginInfo
public org.apache.hadoop.yarn.api.protocolrecords.GetPluginInfoResponse getPluginInfo(org.apache.hadoop.yarn.api.protocolrecords.GetPluginInfoRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException - Specified by:
getPluginInfoin interfaceorg.apache.hadoop.yarn.api.CsiAdaptorProtocol- Throws:
org.apache.hadoop.yarn.exceptions.YarnExceptionIOException
-
validateVolumeCapacity
public org.apache.hadoop.yarn.api.protocolrecords.ValidateVolumeCapabilitiesResponse validateVolumeCapacity(org.apache.hadoop.yarn.api.protocolrecords.ValidateVolumeCapabilitiesRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException - Specified by:
validateVolumeCapacityin interfaceorg.apache.hadoop.yarn.api.CsiAdaptorProtocol- Throws:
org.apache.hadoop.yarn.exceptions.YarnExceptionIOException
-
nodePublishVolume
public org.apache.hadoop.yarn.api.protocolrecords.NodePublishVolumeResponse nodePublishVolume(org.apache.hadoop.yarn.api.protocolrecords.NodePublishVolumeRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException - Specified by:
nodePublishVolumein interfaceorg.apache.hadoop.yarn.api.CsiAdaptorProtocol- Throws:
org.apache.hadoop.yarn.exceptions.YarnExceptionIOException
-
nodeUnpublishVolume
public org.apache.hadoop.yarn.api.protocolrecords.NodeUnpublishVolumeResponse nodeUnpublishVolume(org.apache.hadoop.yarn.api.protocolrecords.NodeUnpublishVolumeRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException - Specified by:
nodeUnpublishVolumein interfaceorg.apache.hadoop.yarn.api.CsiAdaptorProtocol- Throws:
org.apache.hadoop.yarn.exceptions.YarnExceptionIOException
-