org.mpisws.p2p.transport.peerreview
Interface PeerReviewCallback<Handle,Identifier>
- All Superinterfaces:
- Destructable, IdentityTransportCallback<Handle,Identifier>, StatusChangeListener<Identifier>, StatusConstants, TransportLayerCallback<Handle,ByteBuffer>
- All Known Implementing Classes:
- PeerReviewCallbackImpl
public interface PeerReviewCallback<Handle,Identifier>
- extends Destructable, IdentityTransportCallback<Handle,Identifier>, StatusChangeListener<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.
init
void init()
storeCheckpoint
void storeCheckpoint(OutputBuffer buffer)
throws IOException
- Throws:
IOException
loadCheckpoint
boolean loadCheckpoint(InputBuffer buffer)
throws IOException
- Return false if the checkpoint is bogus.
- Parameters:
buffer -
- Returns:
-
- Throws:
IOException
getWitnesses
void getWitnesses(Identifier subject,
WitnessListener<Handle,Identifier> callback)
getMyWitnessedNodes
Collection<Handle> getMyWitnessedNodes()
getReplayInstance
PeerReviewCallback<Handle,Identifier> getReplayInstance(Verifier<Handle> v)
Copyright © 2010. All Rights Reserved.