Rice Pastry API

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

Type Parameters:
Identifier -
All Known Implementing Classes:
MinRTTProximityProvider

public interface PingListener<Identifier>

Called when a ping is received.

Author:
Jeff Hoye

Method Summary
 void pingReceived(Identifier i, java.util.Map<java.lang.String,java.lang.Integer> options)
          Called when we receive a ping (not a pong)
 void pingResponse(Identifier i, int rtt, java.util.Map<java.lang.String,java.lang.Integer> options)
          Pong received.
 

Method Detail

pingResponse

void pingResponse(Identifier i,
                  int rtt,
                  java.util.Map<java.lang.String,java.lang.Integer> options)
Pong received.

Parameters:
i - Where the ping was from
rtt - the RTT
options - how the ping was sent (source route/udp etc)

pingReceived

void pingReceived(Identifier i,
                  java.util.Map<java.lang.String,java.lang.Integer> options)
Called when we receive a ping (not a pong)

Parameters:
i -
options -

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection