@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
IOException
public void close()
close
in interface Closeable
close
in interface AutoCloseable
public ReplicaRecoveryInfo initReplicaRecovery(BlockRecoveryCommand.RecoveringBlock rBlock) throws IOException
InterDatanodeProtocol
initReplicaRecovery
in interface InterDatanodeProtocol
IOException
public String updateReplicaUnderRecovery(ExtendedBlock oldBlock, long recoveryId, long newLength) throws IOException
InterDatanodeProtocol
updateReplicaUnderRecovery
in interface InterDatanodeProtocol
IOException
public boolean isMethodSupported(String methodName) throws IOException
ProtocolMetaInterface
isMethodSupported
in interface ProtocolMetaInterface
methodName
- The name of the methodIOException
Copyright © 2013 Apache Software Foundation. All rights reserved.