public class ReplicaWaitingToBeRecovered extends ReplicaInfo
ReplicaInfo.ReplicaDirInfoBLOCK_FILE_PREFIX, blockFilePattern, METADATA_EXTENSION, metaFilePattern| Constructor and Description |
|---|
ReplicaWaitingToBeRecovered(Block block,
FsVolumeSpi vol,
File dir)
Constructor
|
ReplicaWaitingToBeRecovered(long blockId,
long len,
long genStamp,
FsVolumeSpi vol,
File dir)
Constructor
|
ReplicaWaitingToBeRecovered(ReplicaWaitingToBeRecovered from)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
long |
getBytesOnDisk()
Get the number of bytes that have written to disk
|
HdfsServerConstants.ReplicaState |
getState()
Get the replica state
|
long |
getVisibleLength()
Get the number of bytes that are visible to readers
|
int |
hashCode() |
boolean |
isUnlinked()
check if this replica has already been unlinked.
|
void |
setUnlinked()
set that this replica is unlinked
|
String |
toString() |
getBlockFile, getMetaFile, getVolume, parseSubDirs, setDir, unlinkBlockappendStringTo, compareTo, filename2id, getBlockId, getBlockId, getBlockName, getGenerationStamp, getGenerationStamp, getNumBytes, isBlockFilename, isMetaFilename, matchingIdAndGenStamp, readFields, readId, set, setBlockId, setGenerationStamp, setNumBytes, write, writeIdclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetBlockId, getGenerationStamp, getNumBytespublic ReplicaWaitingToBeRecovered(long blockId,
long len,
long genStamp,
FsVolumeSpi vol,
File dir)
blockId - block idlen - replica lengthgenStamp - replica generation stampvol - volume where replica is locateddir - directory path where block and meta files are locatedpublic ReplicaWaitingToBeRecovered(Block block, FsVolumeSpi vol, File dir)
block - a blockvol - volume where replica is locateddir - directory path where block and meta files are locatedpublic ReplicaWaitingToBeRecovered(ReplicaWaitingToBeRecovered from)
from - public HdfsServerConstants.ReplicaState getState()
Replicapublic boolean isUnlinked()
ReplicaInfoisUnlinked in class ReplicaInfopublic void setUnlinked()
ReplicaInfosetUnlinked in class ReplicaInfopublic long getVisibleLength()
Replicapublic long getBytesOnDisk()
Replicapublic String toString()
toString in class ReplicaInfoCopyright © 2013 Apache Software Foundation. All rights reserved.