Rice Pastry API

org.mpisws.p2p.transport.peerreview
Class SecureHistoryImpl

java.lang.Object
  extended by org.mpisws.p2p.transport.peerreview.SecureHistoryImpl
All Implemented Interfaces:
SecureHistory

public class SecureHistoryImpl
extends java.lang.Object
implements SecureHistory

The following class implements PeerReview's log. A log entry consists of a sequence number, a type, and a string of bytes. On disk, the log is stored as two files: An index file and a data file.

Author:
Jeff Hoye, Andreas Haeberlen

Constructor Summary
SecureHistoryImpl(java.lang.String baseFileName, boolean readOnly, Logger logger)
           
 
Method Summary
 long getBaseSeq()
           
 long getLastSeq()
           
 int getNumEntries()
           
 void reset(long baseSeq, Hash nodeHash)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecureHistoryImpl

public SecureHistoryImpl(java.lang.String baseFileName,
                         boolean readOnly,
                         Logger logger)
                  throws java.io.FileNotFoundException
Throws:
java.io.FileNotFoundException
Method Detail

reset

public void reset(long baseSeq,
                  Hash nodeHash)
           throws java.io.IOException
Throws:
java.io.IOException

getBaseSeq

public long getBaseSeq()
Specified by:
getBaseSeq in interface SecureHistory

getLastSeq

public long getLastSeq()
Specified by:
getLastSeq in interface SecureHistory

getNumEntries

public int getNumEntries()
Specified by:
getNumEntries in interface SecureHistory

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection