public class ReplicaWaitingToBeRecovered
extends org.apache.hadoop.hdfs.server.datanode.ReplicaInfo
ReplicaInfo.ReplicaDirInfo
Constructor and Description |
---|
ReplicaWaitingToBeRecovered(org.apache.hadoop.hdfs.protocol.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() |
String |
toString() |
breakHardLinksIfNeeded, getBlockFile, getBytesReserved, getMetaFile, getNext, getOriginalBytesReserved, getStorageUuid, getVolume, isOnTransientStorage, parseBaseDir, setDir, setNext
appendStringTo, compareTo, filename2id, getBlockId, getBlockId, getBlockName, getGenerationStamp, getGenerationStamp, getNumBytes, isBlockFilename, isMetaFilename, matchingIdAndGenStamp, metaToBlockFile, readFields, readId, set, setBlockId, setGenerationStamp, setNumBytes, toString, write, writeId
public 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(org.apache.hadoop.hdfs.protocol.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
- where to copy frompublic HdfsServerConstants.ReplicaState getState()
org.apache.hadoop.hdfs.server.datanode.Replica
public long getVisibleLength()
org.apache.hadoop.hdfs.server.datanode.Replica
public long getBytesOnDisk()
org.apache.hadoop.hdfs.server.datanode.Replica
public boolean equals(Object o)
equals
in class org.apache.hadoop.hdfs.protocol.Block
public int hashCode()
hashCode
in class org.apache.hadoop.hdfs.protocol.Block
public String toString()
toString
in class org.apache.hadoop.hdfs.server.datanode.ReplicaInfo
Copyright © 2017 Apache Software Foundation. All Rights Reserved.