Example usage for org.apache.hadoop.hdfs.server.blockmanagement ReplicaUnderConstruction getState

List of usage examples for org.apache.hadoop.hdfs.server.blockmanagement ReplicaUnderConstruction getState

Introduction

In this page you can find the example usage for org.apache.hadoop.hdfs.server.blockmanagement ReplicaUnderConstruction getState.

Prototype

HdfsServerConstants.ReplicaState getState() 

Source Link

Document

Get replica state as reported by the data-node.

Usage

From source file:io.hops.transaction.context.ReplicaUnderConstructionContext.java

License:Apache License

@Override
public void update(ReplicaUnderConstruction replica) throws TransactionContextException {
    super.update(replica);
    log("added-replicauc", "bid", replica.getBlockId(), "sid", replica.getStorageId(), "state",
            replica.getState().name());
}

From source file:io.hops.transaction.context.ReplicaUnderConstructionContext.java

License:Apache License

@Override
public void remove(ReplicaUnderConstruction replica) throws TransactionContextException {
    super.remove(replica);
    log("removed-replicauc", "bid", replica.getBlockId(), "sid", replica.getStorageId(), "state",
            replica.getState().name());
}

From source file:io.hops.transaction.context.ReplicaUnderConstructionContext.java

License:Apache License

@Override
ReplicaUnderConstruction cloneEntity(ReplicaUnderConstruction replicaUnderConstruction, int inodeId) {
    return new ReplicaUnderConstruction(replicaUnderConstruction.getState(),
            replicaUnderConstruction.getStorageId(), replicaUnderConstruction.getBlockId(), inodeId,
            replicaUnderConstruction.getIndex());
}