org.apache.hadoop.hdfs.server.datanode
Class ReplicaInfo

java.lang.Object
  extended by org.apache.hadoop.hdfs.protocol.Block
      extended by org.apache.hadoop.hdfs.server.datanode.ReplicaInfo
All Implemented Interfaces:
Comparable<Block>, Replica, org.apache.hadoop.io.Writable

@InterfaceAudience.Private
public abstract class ReplicaInfo
extends Block
implements Replica

This class is used by datanodes to maintain meta data of its replicas. It provides a general interface for meta information of a replica.


Field Summary
 
Fields inherited from class org.apache.hadoop.hdfs.protocol.Block
BLOCK_FILE_PREFIX, blockFilePattern, METADATA_EXTENSION, metaFilePattern
 
Method Summary
 String toString()
           
 
Methods inherited from class org.apache.hadoop.hdfs.protocol.Block
compareTo, equals, filename2id, getBlockId, getBlockId, getBlockName, getGenerationStamp, getGenerationStamp, getNumBytes, hashCode, isBlockFilename, isMetaFilename, readFields, set, setBlockId, setGenerationStamp, setNumBytes, write
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.hadoop.hdfs.server.datanode.Replica
getBlockId, getBytesOnDisk, getGenerationStamp, getNumBytes, getState, getVisibleLength
 

Method Detail

toString

public String toString()
Overrides:
toString in class Block


Copyright © 2009 The Apache Software Foundation