Class DatanodeLifelineProtocolClientSideTranslatorPB
java.lang.Object
org.apache.hadoop.hdfs.protocolPB.DatanodeLifelineProtocolClientSideTranslatorPB
- All Implemented Interfaces:
Closeable,AutoCloseable,DatanodeLifelineProtocol,org.apache.hadoop.ipc.ProtocolMetaInterface
@Private
public class DatanodeLifelineProtocolClientSideTranslatorPB
extends Object
implements org.apache.hadoop.ipc.ProtocolMetaInterface, DatanodeLifelineProtocol, Closeable
This class is the client side translator to translate the requests made on
DatanodeLifelineProtocol interfaces to the RPC server implementing
DatanodeLifelineProtocolPB.-
Constructor Summary
ConstructorsConstructorDescriptionDatanodeLifelineProtocolClientSideTranslatorPB(InetSocketAddress nameNodeAddr, org.apache.hadoop.conf.Configuration conf) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleanisMethodSupported(String methodName) voidsendLifeline(DatanodeRegistration registration, org.apache.hadoop.hdfs.server.protocol.StorageReport[] reports, long cacheCapacity, long cacheUsed, int xmitsInProgress, int xceiverCount, int failedVolumes, VolumeFailureSummary volumeFailureSummary)
-
Constructor Details
-
DatanodeLifelineProtocolClientSideTranslatorPB
public DatanodeLifelineProtocolClientSideTranslatorPB(InetSocketAddress nameNodeAddr, org.apache.hadoop.conf.Configuration conf) throws IOException - Throws:
IOException
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
sendLifeline
public void sendLifeline(DatanodeRegistration registration, org.apache.hadoop.hdfs.server.protocol.StorageReport[] reports, long cacheCapacity, long cacheUsed, int xmitsInProgress, int xceiverCount, int failedVolumes, VolumeFailureSummary volumeFailureSummary) throws IOException - Specified by:
sendLifelinein interfaceDatanodeLifelineProtocol- Throws:
IOException
-
isMethodSupported
- Specified by:
isMethodSupportedin interfaceorg.apache.hadoop.ipc.ProtocolMetaInterface- Throws:
IOException
-