Example usage for org.apache.hadoop.hdfs.server.protocol InterDatanodeProtocol initReplicaRecovery

List of usage examples for org.apache.hadoop.hdfs.server.protocol InterDatanodeProtocol initReplicaRecovery

Introduction

In this page you can find the example usage for org.apache.hadoop.hdfs.server.protocol InterDatanodeProtocol initReplicaRecovery.

Prototype

ReplicaRecoveryInfo initReplicaRecovery(RecoveringBlock rBlock) throws IOException;

Source Link

Document

Initialize a replica recovery.

Usage

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();
    }
}