Rice Pastry API

org.mpisws.p2p.transport.networkinfo
Interface ProbeStrategy

All Known Implementing Classes:
ProbeApp

public interface ProbeStrategy

This is used in a network

Author:
Jeff Hoye

Method Summary
 java.util.Collection<java.net.InetSocketAddress> getExternalAddresses()
          Returns some known external addresses.
 Cancellable requestProbe(MultiInetSocketAddress addr, long uid, Continuation<java.lang.Boolean,java.lang.Exception> deliverResultToMe)
          Finds another node in the network and asks them to probe the addr with the uid calls Prober.probe() on another node
 

Method Detail

requestProbe

Cancellable requestProbe(MultiInetSocketAddress addr,
                         long uid,
                         Continuation<java.lang.Boolean,java.lang.Exception> deliverResultToMe)
Finds another node in the network and asks them to probe the addr with the uid calls Prober.probe() on another node

Parameters:
addr - the location of the requestor (who we need to probe)
uid - a unique identifier created by the original requestor at addr
Returns:
can cancel the operation

getExternalAddresses

java.util.Collection<java.net.InetSocketAddress> getExternalAddresses()
Returns some known external addresses.

Returns:

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection