java.lang.Comparable<org.apache.hadoop.hdfs.protocol.Block>, Replica, org.apache.hadoop.io.Writable, org.apache.hadoop.util.LightWeightGSet.LinkedElementpublic class ReplicaUnderRecovery extends LocalReplica
LocalReplica.ReplicaDirInfo| Constructor | Description |
|---|---|
ReplicaUnderRecovery(ReplicaInfo replica,
long recoveryId) |
|
ReplicaUnderRecovery(ReplicaUnderRecovery from) |
Copy constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
ReplicaRecoveryInfo |
createInfo() |
|
boolean |
equals(java.lang.Object o) |
|
long |
getBytesOnDisk() |
Get the number of bytes that have written to disk
|
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 |
setGenerationStamp(long gs) |
|
void |
setNumBytes(long numBytes) |
|
void |
setRecoveryID(long recoveryId) |
Set the recovery id.
|
java.lang.String |
toString() |
|
void |
updateWithReplica(StorageLocation replicaLocation) |
Update this replica with the
StorageLocation found. |
blockDataExists, breakHardLinksIfNeeded, bumpReplicaGS, compareWith, copyBlockdata, copyMetadata, deleteBlockData, deleteMetadata, fsyncDirectory, getBlockDataLength, getBlockFile, getBlockURI, getDataInputStream, getDataOutputStream, getDir, getMetadataInputStream, getMetadataLength, getMetadataOutputStream, getMetadataURI, getMetaFile, getPinning, getPinning, metadataExists, parseBaseDir, renameData, renameMeta, setPinning, setPinning, truncateBlock, truncateBlockgetBytesReserved, getFileIoProvider, getNext, getOriginalBytesReserved, getStorageUuid, getVolume, isOnTransientStorage, setNextappendStringTo, compareTo, filename2id, getBlockId, getBlockId, getBlockName, getGenerationStamp, getGenerationStamp, getNumBytes, isBlockFilename, isMetaFilename, matchingIdAndGenStamp, metaToBlockFile, readFields, readId, set, toString, write, writeIdclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetBlockId, getGenerationStamp, getNumBytespublic ReplicaUnderRecovery(ReplicaInfo replica, long recoveryId)
public ReplicaUnderRecovery(ReplicaUnderRecovery from)
from - where to copy frompublic long getRecoveryID()
ReplicaInfogetRecoveryID in class ReplicaInfopublic void setRecoveryID(long recoveryId)
ReplicaInfosetRecoveryID in class ReplicaInforecoveryId - the new recoveryIdpublic ReplicaInfo getOriginalReplica()
getOriginalReplica in class ReplicaInfopublic HdfsServerConstants.ReplicaState getState()
Replicapublic long getVisibleLength()
Replicapublic long getBytesOnDisk()
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 updateWithReplica(StorageLocation replicaLocation)
ReplicaInfoStorageLocation found.updateWithReplica in class LocalReplicareplicaLocation - the StorageLocation found for this replica.public boolean equals(java.lang.Object o)
equals in class org.apache.hadoop.hdfs.protocol.Blockpublic int hashCode()
hashCode in class org.apache.hadoop.hdfs.protocol.Blockpublic java.lang.String toString()
toString in class ReplicaInfopublic ReplicaRecoveryInfo createInfo()
createInfo in class ReplicaInfoCopyright © 2008–2025 Apache Software Foundation. All rights reserved.