ostore.archive
Interface Disseminatable

All Superinterfaces:
Cacheable, Cloneable, QuickSerializable, ostore.archive.repair.RepairStage.PersistantObject
All Known Implementing Classes:
Fragment

public interface Disseminatable
extends Cacheable, Cloneable, QuickSerializable, ostore.archive.repair.RepairStage.PersistantObject

Disseminatable is an interface that should be implemented by any OceanStore object intended to be disseminated by the archive.

Version:
$Id: Disseminatable.java,v 1.12 2002/09/20 07:19:58 hweather Exp $
Author:
Hakim Weatherspoon

Method Summary
 Object clone()
          This is the clone routine for Disseminatable.
 SecureHash computeGuid()
          computeGuid Compute and return the guid of the disseminatable.
 SecureHash computeGuid(SecureHashBuffer buffer)
          computeGuid Compute and return the guid of the disseminatable.
 int getIndex()
          getIndex get the index of this object.
 boolean verifyGuid(SecureHash other)
          verifyGuid returns whether disseminatable verified or not.
 boolean verifyGuid(SecureHash other, SecureHashBuffer buffer)
          verifyGuid returns whether disseminatable verified or not.
 
Methods inherited from interface ostore.util.QuickSerializable
serialize
 

Method Detail

getIndex

public int getIndex()
getIndex get the index of this object.

Returns:
return = index of this object.

verifyGuid

public boolean verifyGuid(SecureHash other)
verifyGuid returns whether disseminatable verified or not.

Returns:
true iff this object self-verifies.

verifyGuid

public boolean verifyGuid(SecureHash other,
                          SecureHashBuffer buffer)
verifyGuid returns whether disseminatable verified or not.

Returns:
true iff this object self-verifies.

computeGuid

public SecureHash computeGuid()
computeGuid Compute and return the guid of the disseminatable.

Returns:
the guid of the disseminatable.

computeGuid

public SecureHash computeGuid(SecureHashBuffer buffer)
computeGuid Compute and return the guid of the disseminatable.

Returns:
the guid of the disseminatable.

clone

public Object clone()
             throws CloneNotSupportedException
This is the clone routine for Disseminatable. It deeply clones a disseminatable (meaning that it copies all of the data, not just references).

Returns:
clone of Disseminatable.
CloneNotSupportedException