org.mpisws.p2p.transport.peerreview
Class SecureHistoryImpl
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SecureHistoryImpl
public SecureHistoryImpl(java.lang.String baseFileName,
boolean readOnly,
Logger logger)
throws java.io.FileNotFoundException
- Throws:
java.io.FileNotFoundException
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
Copyright © 2001-2005 - Rice Pastry.