Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Rice Pastry API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.mpisws.p2p.transport.peerreview.history
Interface SecureHistoryFactory

All Known Implementing Classes:
  SecureHistoryFactoryImpl

    public interface SecureHistoryFactory

Method Summary
`SecureHistory` | `create(java.lang.String name, long baseSeq, Hash baseHash)` Creates a new history (aka log).
`SecureHistory` | `open(java.lang.String name, java.lang.String mode)`

Method Detail

### create

    SecureHistory create(java.lang.String name,
                         long baseSeq,
                         Hash baseHash)
                         throws java.io.IOException

  Creates a new history (aka log). Histories are stored as two files: The 'index' file has a fixed-size record for each entry, which contains the sequence number, content and node hashes, as well as an index into the data file. The 'data' file just contains the raw bytes for each entry. Note that the caller must specify the node hash and the sequence number of the first log entry, which forms the base of the hash chain.

  Throws:
    `java.io.IOException`

### open

    SecureHistory open(java.lang.String name,
                       java.lang.String mode)
                       throws java.io.IOException

  Throws:
    `java.io.IOException`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Rice Pastry API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2005 - Rice Pastry.