Rice Pastry API

org.mpisws.p2p.transport.peerreview.audit
Class LogSnippet

java.lang.Object
  extended by org.mpisws.p2p.transport.peerreview.audit.LogSnippet

public class LogSnippet
extends java.lang.Object

long long firstSeq byte extInfoLen [extInfo follows] hash baseHash --entry begin-- // 1 or more of these entries follow char type char sizeCode // 0=hashed, 1-FD=size, FE=32-bit size follows, FF=16-bit size follows {short/int size} char content[] char nextSeqCode // 0=+1, 1=(idx=0,us+=1), 2=(idx=0,us+=2), ..., FF=full seq [does not exist for the last one] {long long seq} --entry end--

Author:
Jeff Hoye

Field Summary
 java.util.List<SnippetEntry> entries
           
 
Constructor Summary
LogSnippet(byte[] baseHash, java.util.List<SnippetEntry> entries)
           
LogSnippet(InputBuffer buf, int hashSize)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.Object getExtInfo()
           
 long getFirstSeq()
           
 void serialize(OutputBuffer buf)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

entries

public java.util.List<SnippetEntry> entries
Constructor Detail

LogSnippet

public LogSnippet(byte[] baseHash,
                  java.util.List<SnippetEntry> entries)

LogSnippet

public LogSnippet(InputBuffer buf,
                  int hashSize)
           throws java.io.IOException
Throws:
java.io.IOException
Method Detail

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

serialize

public void serialize(OutputBuffer buf)
               throws java.io.IOException
Throws:
java.io.IOException

getFirstSeq

public long getFirstSeq()

getExtInfo

public java.lang.Object getExtInfo()

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.