|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SecureHistory
Method Summary | |
---|---|
void |
appendEntry(short type,
boolean storeFullEntry,
java.nio.ByteBuffer... entry)
Appends a new entry to the log. |
void |
appendHash(short type,
Hash hash)
Append a new hashed entry to the log. |
void |
close()
The destructor. |
long |
findLastEntry(short[] types,
long maxSeq)
Find the most recent entry whose type is in the specified set. |
long |
findSeqOrHigher(long seq,
boolean allowHigher)
Look up a given sequence number, or the first sequence number that is not lower than a given number. |
long |
getBaseSeq()
|
byte[] |
getEntry(IndexEntry ie,
int maxSizeToRead)
|
byte[] |
getEntry(long idx,
int maxSizeToRead)
Get the content of a log entry, specified by its record number |
long |
getLastSeq()
|
long |
getNumEntries()
|
HashSeq |
getTopLevelEntry()
Returns the node hash and the sequence number of the most recent log entry |
boolean |
serializeRange(int idxFrom,
int idxTo,
HashPolicy hashPolicy,
RandomAccessFileIOBuffer outfile)
Serialize a given range of entries, and write the result to the specified file. |
boolean |
setNextSeq(long nextSeq)
Sets the next sequence number to be used. |
IndexEntry |
statEntry(long idx)
Retrieve information about a given record |
boolean |
upgradeHashedEntry(int idx,
java.nio.ByteBuffer entry)
If the log already contains an entry in 'hashed' form and we learn the actual contents later, this function is called. |
Method Detail |
---|
long getNumEntries()
long getBaseSeq()
long getLastSeq()
HashSeq getTopLevelEntry()
void appendEntry(short type, boolean storeFullEntry, java.nio.ByteBuffer... entry) throws java.io.IOException
java.io.IOException
void appendHash(short type, Hash hash) throws java.io.IOException
java.io.IOException
boolean setNextSeq(long nextSeq)
void close() throws java.io.IOException
java.io.IOException
long findSeqOrHigher(long seq, boolean allowHigher) throws java.io.IOException
java.io.IOException
boolean serializeRange(int idxFrom, int idxTo, HashPolicy hashPolicy, RandomAccessFileIOBuffer outfile) throws java.io.IOException
java.io.IOException
IndexEntry statEntry(long idx) throws java.io.IOException
idx
- the index you are interested in
java.io.IOException
byte[] getEntry(long idx, int maxSizeToRead) throws java.io.IOException
java.io.IOException
byte[] getEntry(IndexEntry ie, int maxSizeToRead) throws java.io.IOException
java.io.IOException
boolean upgradeHashedEntry(int idx, java.nio.ByteBuffer entry) throws java.io.IOException
java.io.IOException
long findLastEntry(short[] types, long maxSeq) throws java.io.IOException
java.io.IOException
|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |