List of usage examples for org.apache.hadoop.hdfs.server.blockmanagement ReplicaUnderConstruction getState
HdfsServerConstants.ReplicaState getState()
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()); }