List of usage examples for org.apache.hadoop.hdfs.server.protocol InterDatanodeProtocol initReplicaRecovery
ReplicaRecoveryInfo initReplicaRecovery(RecoveringBlock rBlock) throws IOException;
From source file:common.DataNode.java
License:Apache License
/** * Convenience method, which unwraps RemoteException. * @throws IOException not a RemoteException. */// w ww. j a va2s. co m private static ReplicaRecoveryInfo callInitReplicaRecovery(InterDatanodeProtocol datanode, RecoveringBlock rBlock) throws IOException { try { return datanode.initReplicaRecovery(rBlock); } catch (RemoteException re) { throw re.unwrapRemoteException(); } }