|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rice.pastry.socket.nat.connectivityverifiier.ConnectivityVerifierImpl
public class ConnectivityVerifierImpl
Constructor Summary | |
---|---|
ConnectivityVerifierImpl(SocketPastryNodeFactory spnf)
|
Method Summary | |
---|---|
Cancellable |
findExternalAddress(java.net.InetSocketAddress local,
java.util.Collection<java.net.InetSocketAddress> probeAddresses,
Continuation<java.net.InetAddress,java.io.IOException> deliverResultToMe)
Call this to determine your external address. |
void |
findExternalAddressHelper(InetSocketAddressLookup lookup,
AttachableCancellable ret,
java.net.InetSocketAddress local,
java.util.List<java.net.InetSocketAddress> probeList,
Continuation<java.net.InetAddress,java.io.IOException> deliverResultToMe)
Called recursively. |
Cancellable |
findExternalNodes(java.net.InetSocketAddress local,
java.util.Collection<java.net.InetSocketAddress> probeAddresses,
Continuation<java.util.Collection<java.net.InetSocketAddress>,java.io.IOException> deliverResultToMe)
Call this to find some nodes outside your firewall. |
void |
findExternalNodesHelper(InetSocketAddressLookup lookup,
AttachableCancellable ret,
java.net.InetSocketAddress local,
java.util.List<java.net.InetSocketAddress> probeList,
Continuation<java.util.Collection<java.net.InetSocketAddress>,java.io.IOException> deliverResultToMe)
Called recursively. |
protected Cancellable |
getInetSocketAddressLookup(java.net.InetSocketAddress bindAddress,
Continuation<InetSocketAddressLookup,java.io.IOException> deliverResultToMe)
Get the address from the transport layer. |
Cancellable |
verifyConnectivity(MultiInetSocketAddress local,
java.util.Collection<java.net.InetSocketAddress> probeAddresses,
ConnectivityResult deliverResultToMe)
Call this to determine if your connectivity is good. |
void |
verifyConnectivityHelper(InetSocketAddressLookup lookup,
AttachableCancellable ret,
MultiInetSocketAddress local,
java.util.List<java.net.InetSocketAddress> probeList,
ConnectivityResult deliverResultToMe)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConnectivityVerifierImpl(SocketPastryNodeFactory spnf)
Method Detail |
---|
protected Cancellable getInetSocketAddressLookup(java.net.InetSocketAddress bindAddress, Continuation<InetSocketAddressLookup,java.io.IOException> deliverResultToMe)
public Cancellable findExternalNodes(java.net.InetSocketAddress local, java.util.Collection<java.net.InetSocketAddress> probeAddresses, Continuation<java.util.Collection<java.net.InetSocketAddress>,java.io.IOException> deliverResultToMe)
findExternalNodes
in interface ConnectivityVerifier
local
- the local bindaddressprobeAddresses
- the nodes askdeliverResultToMe
- deliver the result here
public void findExternalNodesHelper(InetSocketAddressLookup lookup, AttachableCancellable ret, java.net.InetSocketAddress local, java.util.List<java.net.InetSocketAddress> probeList, Continuation<java.util.Collection<java.net.InetSocketAddress>,java.io.IOException> deliverResultToMe)
lookup
- ret
- local
- probeList
- deliverResultToMe
- public Cancellable findExternalAddress(java.net.InetSocketAddress local, java.util.Collection<java.net.InetSocketAddress> probeAddresses, Continuation<java.net.InetAddress,java.io.IOException> deliverResultToMe)
findExternalAddress
in interface ConnectivityVerifier
local
- the local bindaddressprobeAddresses
- the nodes askdeliverResultToMe
- deliver the result here
public void findExternalAddressHelper(InetSocketAddressLookup lookup, AttachableCancellable ret, java.net.InetSocketAddress local, java.util.List<java.net.InetSocketAddress> probeList, Continuation<java.net.InetAddress,java.io.IOException> deliverResultToMe)
lookup
- ret
- local
- probeList
- deliverResultToMe
- public Cancellable verifyConnectivity(MultiInetSocketAddress local, java.util.Collection<java.net.InetSocketAddress> probeAddresses, ConnectivityResult deliverResultToMe)
verifyConnectivity
in interface ConnectivityVerifier
public void verifyConnectivityHelper(InetSocketAddressLookup lookup, AttachableCancellable ret, MultiInetSocketAddress local, java.util.List<java.net.InetSocketAddress> probeList, ConnectivityResult deliverResultToMe)
|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |