ePOST API

rice.post.storage
Class SignedReference

java.lang.Object
  extended by rice.post.storage.SignedReference
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
LogReference

public class SignedReference
extends java.lang.Object
implements java.io.Serializable

This class serves as a reference to a PostObject stored in the Post system. This class knows both the location in the network and the encryption key of the corresponding PostData object.

Version:
$Id: SignedReference.java 2172 2005-02-05 00:03:08Z amislove $
See Also:
Serialized Form

Constructor Summary
SignedReference(Id location)
          Contructs a PostDataReference object given the address of the object.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 Id getLocation()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SignedReference

public SignedReference(Id location)
Contructs a PostDataReference object given the address of the object.

Parameters:
location - The location in PAST of the PostData object
Method Detail

getLocation

public Id getLocation()
Returns:
The location of the data referenced by this object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

ePOST API

Copyright © 2001-2005 - Rice Pastry.