org.apache.hadoop.hdfs.server.protocol
Class ReplicaRecoveryInfo

java.lang.Object
  extended by org.apache.hadoop.hdfs.protocol.Block
      extended by 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.


Field Summary
 
Fields inherited from class org.apache.hadoop.hdfs.protocol.Block
BLOCK_FILE_PREFIX, blockFilePattern, METADATA_EXTENSION, metaFilePattern
 
Constructor Summary
ReplicaRecoveryInfo()
           
ReplicaRecoveryInfo(long blockId, long diskLen, long gs, HdfsConstants.ReplicaState rState)
           
 
Method Summary
 boolean equals(Object o)
           
 HdfsConstants.ReplicaState getOriginalReplicaState()
           
 int hashCode()
           
 void readFields(DataInput in)
           
 void write(DataOutput out)
           
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReplicaRecoveryInfo

public ReplicaRecoveryInfo()

ReplicaRecoveryInfo

public ReplicaRecoveryInfo(long blockId,
                           long diskLen,
                           long gs,
                           HdfsConstants.ReplicaState rState)
Method Detail

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