@InterfaceAudience.Private @InterfaceStability.Stable public class InterDatanodeProtocolTranslatorPB extends Object implements ProtocolMetaInterface, InterDatanodeProtocol, Closeable
InterDatanodeProtocol interfaces to the RPC server implementing
InterDatanodeProtocolPB.LOG, versionID| Constructor and Description |
|---|
InterDatanodeProtocolTranslatorPB(InetSocketAddress addr,
UserGroupInformation ugi,
Configuration conf,
SocketFactory factory,
int socketTimeout) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
ReplicaRecoveryInfo |
initReplicaRecovery(BlockRecoveryCommand.RecoveringBlock rBlock)
Initialize a replica recovery.
|
boolean |
isMethodSupported(String methodName)
Checks whether the given method name is supported by the server.
|
String |
updateReplicaUnderRecovery(ExtendedBlock oldBlock,
long recoveryId,
long newLength)
Update replica with the new generation stamp and length.
|
public InterDatanodeProtocolTranslatorPB(InetSocketAddress addr, UserGroupInformation ugi, Configuration conf, SocketFactory factory, int socketTimeout) throws IOException
IOExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseablepublic ReplicaRecoveryInfo initReplicaRecovery(BlockRecoveryCommand.RecoveringBlock rBlock) throws IOException
InterDatanodeProtocolinitReplicaRecovery in interface InterDatanodeProtocolIOExceptionpublic String updateReplicaUnderRecovery(ExtendedBlock oldBlock, long recoveryId, long newLength) throws IOException
InterDatanodeProtocolupdateReplicaUnderRecovery in interface InterDatanodeProtocolIOExceptionpublic boolean isMethodSupported(String methodName) throws IOException
ProtocolMetaInterfaceisMethodSupported in interface ProtocolMetaInterfacemethodName - The name of the methodIOExceptionCopyright © 2013 Apache Software Foundation. All rights reserved.