org.apache.hadoop.hdfs.server.protocol
Class ReplicaRecoveryInfo
java.lang.Object
org.apache.hadoop.hdfs.protocol.Block
org.apache.hadoop.hdfs.server.protocol.ReplicaRecoveryInfo
- All Implemented Interfaces:
- Comparable<Block>, org.apache.hadoop.io.Writable
@InterfaceAudience.Private
@InterfaceStability.Evolving
public class ReplicaRecoveryInfo
- extends Block
Replica recovery information.
Methods inherited from class org.apache.hadoop.hdfs.protocol.Block |
compareTo, filename2id, getBlockId, getBlockId, getBlockName, getGenerationStamp, getGenerationStamp, getNumBytes, isBlockFilename, isMetaFilename, set, setBlockId, setGenerationStamp, setNumBytes, toString |
ReplicaRecoveryInfo
public ReplicaRecoveryInfo()
ReplicaRecoveryInfo
public ReplicaRecoveryInfo(long blockId,
long diskLen,
long gs,
HdfsConstants.ReplicaState rState)
getOriginalReplicaState
public HdfsConstants.ReplicaState getOriginalReplicaState()
equals
public boolean equals(Object o)
- Overrides:
equals
in class Block
hashCode
public int hashCode()
- Overrides:
hashCode
in class Block
readFields
public void readFields(DataInput in)
throws IOException
- Specified by:
readFields
in interface org.apache.hadoop.io.Writable
- Overrides:
readFields
in class Block
- Throws:
IOException
write
public void write(DataOutput out)
throws IOException
- Specified by:
write
in interface org.apache.hadoop.io.Writable
- Overrides:
write
in class Block
- Throws:
IOException
Copyright © 2009 The Apache Software Foundation