Rice Pastry API

org.mpisws.p2p.transport.peerreview
Interface PeerReviewCallback<Handle,Identifier>

All Superinterfaces:
Destructable, IdentityTransportCallback<Handle,Identifier>, TransportLayerCallback<Handle,java.nio.ByteBuffer>

public interface PeerReviewCallback<Handle,Identifier>
extends Destructable, IdentityTransportCallback<Handle,Identifier>

Callback interface that all PeerReview-enabled applications must implement. During normal operation, PeerReview uses this interface to checkpoint the application, and to inquire about the witness set of another node.


Method Summary
 void getWitnesses(Identifier subject, WitnessListener<Handle,Identifier> callback)
           
 void init()
           
 boolean loadCheckpoint(InputBuffer buffer)
           
 void storeCheckpoint(OutputBuffer buffer)
           
 
Methods inherited from interface rice.Destructable
destroy
 
Methods inherited from interface org.mpisws.p2p.transport.peerreview.identity.IdentityTransportCallback
notifyCertificateAvailable, statusChange
 
Methods inherited from interface org.mpisws.p2p.transport.TransportLayerCallback
incomingSocket, messageReceived
 

Method Detail

init

void init()

storeCheckpoint

void storeCheckpoint(OutputBuffer buffer)

loadCheckpoint

boolean loadCheckpoint(InputBuffer buffer)

getWitnesses

void getWitnesses(Identifier subject,
                  WitnessListener<Handle,Identifier> callback)

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.