org.apache.hadoop.hdfs.server.namenode
Class CheckpointSignature

java.lang.Object
  extended by org.apache.hadoop.hdfs.server.common.StorageInfo
      extended by org.apache.hadoop.hdfs.server.namenode.CheckpointSignature
All Implemented Interfaces:
Comparable<CheckpointSignature>, org.apache.hadoop.io.Writable, org.apache.hadoop.io.WritableComparable<CheckpointSignature>

@InterfaceAudience.Private
public class CheckpointSignature
extends StorageInfo
implements org.apache.hadoop.io.WritableComparable<CheckpointSignature>

A unique signature intended to identify checkpoint transactions.


Field Summary
 
Fields inherited from class org.apache.hadoop.hdfs.server.common.StorageInfo
cTime, layoutVersion, namespaceID
 
Constructor Summary
CheckpointSignature()
           
 
Method Summary
 int compareTo(CheckpointSignature o)
           
 boolean equals(Object o)
           
 int hashCode()
           
 void readFields(DataInput in)
           
 String toString()
           
 void write(DataOutput out)
           
 
Methods inherited from class org.apache.hadoop.hdfs.server.common.StorageInfo
getCTime, getLayoutVersion, getNamespaceID, setStorageInfo
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CheckpointSignature

public CheckpointSignature()
Method Detail

toString

public String toString()
Overrides:
toString in class Object

compareTo

public int compareTo(CheckpointSignature o)
Specified by:
compareTo in interface Comparable<CheckpointSignature>

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

write

public void write(DataOutput out)
           throws IOException
Specified by:
write in interface org.apache.hadoop.io.Writable
Overrides:
write in class StorageInfo
Throws:
IOException

readFields

public void readFields(DataInput in)
                throws IOException
Specified by:
readFields in interface org.apache.hadoop.io.Writable
Overrides:
readFields in class StorageInfo
Throws:
IOException


Copyright © 2009 The Apache Software Foundation