Rice Pastry API

org.mpisws.p2p.transport.liveness
Interface Pinger<Identifier>

All Known Subinterfaces:
LivenessTransportLayer<Identifier,MsgType>
All Known Implementing Classes:
AggressiveLivenessTransportLayerImpl, LivenessTransportLayerImpl

public interface Pinger<Identifier>


Method Summary
 void addPingListener(PingListener<Identifier> name)
           
 boolean ping(Identifier i, java.util.Map<java.lang.String,java.lang.Object> options)
           
 boolean removePingListener(PingListener<Identifier> name)
           
 

Method Detail

ping

boolean ping(Identifier i,
             java.util.Map<java.lang.String,java.lang.Object> options)
Parameters:
i - the identifier that responded
options - transport layer dependent way to send the ping (udp/tcp etc)
Returns:
true If the ping will occur. (Maybe it won't due to bandwidth concerns.)

addPingListener

void addPingListener(PingListener<Identifier> name)

removePingListener

boolean removePingListener(PingListener<Identifier> name)

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection