Rice Pastry API

org.mpisws.p2p.transport.liveness
Interface LivenessStrategy<Identifier,MessageType>


public interface LivenessStrategy<Identifier,MessageType>


Method Summary
 void checkLiveness(Identifier i, Continuation<Identifier,java.lang.Exception> c)
          Notify the continuation when the liveness check has completed.
 int getLiveness(Identifier identity)
          Return the current liveness of the address.
 void messageReceived(Identifier i, MessageType m)
           
 void socketAccepted(Identifier i)
           
 void socketConnected(Identifier i)
           
 void socketFailed(Identifier i)
           
 

Method Detail

checkLiveness

void checkLiveness(Identifier i,
                   Continuation<Identifier,java.lang.Exception> c)
Notify the continuation when the liveness check has completed.

Parameters:
i -
c -

getLiveness

int getLiveness(Identifier identity)
Return the current liveness of the address.

Parameters:
identity -
Returns:

messageReceived

void messageReceived(Identifier i,
                     MessageType m)

socketConnected

void socketConnected(Identifier i)

socketAccepted

void socketAccepted(Identifier i)

socketFailed

void socketFailed(Identifier i)

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection