public class ReplicaUnderRecovery
extends org.apache.hadoop.hdfs.server.datanode.ReplicaInfo
ReplicaInfo.ReplicaDirInfo| Constructor and Description | 
|---|
| ReplicaUnderRecovery(org.apache.hadoop.hdfs.server.datanode.ReplicaInfo replica,
                    long recoveryId) | 
| ReplicaUnderRecovery(ReplicaUnderRecovery from)Copy constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| org.apache.hadoop.hdfs.server.protocol.ReplicaRecoveryInfo | createInfo() | 
| boolean | equals(Object o) | 
| long | getBytesOnDisk()Get the number of bytes that have written to disk | 
| org.apache.hadoop.hdfs.server.datanode.ReplicaInfo | getOriginalReplica()Get the original replica that's under recovery | 
| long | getRecoveryID()Get the recovery id | 
| HdfsServerConstants.ReplicaState | getState()Get the replica state | 
| long | getVisibleLength()Get the number of bytes that are visible to readers | 
| int | hashCode() | 
| void | setBlockId(long blockId) | 
| void | setDir(File dir)Set the parent directory where this replica is located | 
| void | setGenerationStamp(long gs) | 
| void | setNumBytes(long numBytes) | 
| void | setRecoveryID(long recoveryId)Set the recovery id | 
| String | toString() | 
breakHardLinksIfNeeded, getBlockFile, getBytesReserved, getMetaFile, getNext, getOriginalBytesReserved, getStorageUuid, getVolume, isOnTransientStorage, parseBaseDir, setNextappendStringTo, compareTo, filename2id, getBlockId, getBlockId, getBlockName, getGenerationStamp, getGenerationStamp, getNumBytes, isBlockFilename, isMetaFilename, matchingIdAndGenStamp, metaToBlockFile, readFields, readId, set, toString, write, writeIdpublic ReplicaUnderRecovery(org.apache.hadoop.hdfs.server.datanode.ReplicaInfo replica,
                    long recoveryId)
public ReplicaUnderRecovery(ReplicaUnderRecovery from)
from - where to copy frompublic long getRecoveryID()
public void setRecoveryID(long recoveryId)
recoveryId - the new recoveryIdpublic org.apache.hadoop.hdfs.server.datanode.ReplicaInfo getOriginalReplica()
public HdfsServerConstants.ReplicaState getState()
org.apache.hadoop.hdfs.server.datanode.Replicapublic long getVisibleLength()
org.apache.hadoop.hdfs.server.datanode.Replicapublic long getBytesOnDisk()
org.apache.hadoop.hdfs.server.datanode.Replicapublic void setBlockId(long blockId)
setBlockId in class org.apache.hadoop.hdfs.protocol.Blockpublic void setGenerationStamp(long gs)
setGenerationStamp in class org.apache.hadoop.hdfs.protocol.Blockpublic void setNumBytes(long numBytes)
setNumBytes in class org.apache.hadoop.hdfs.protocol.Blockpublic void setDir(File dir)
org.apache.hadoop.hdfs.server.datanode.ReplicaInfosetDir in class org.apache.hadoop.hdfs.server.datanode.ReplicaInfodir - the parent directory where the replica is locatedpublic boolean equals(Object o)
equals in class org.apache.hadoop.hdfs.protocol.Blockpublic int hashCode()
hashCode in class org.apache.hadoop.hdfs.protocol.Blockpublic String toString()
toString in class org.apache.hadoop.hdfs.server.datanode.ReplicaInfopublic org.apache.hadoop.hdfs.server.protocol.ReplicaRecoveryInfo createInfo()
Copyright © 2017 Apache Software Foundation. All Rights Reserved.