Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Rice Pastry API
PREV NEXT | FRAMES NO FRAMES

## Uses of Class
rice.pastry.socket.SourceRoute

Packages that use SourceRoute
rice.pastry.socket |
rice.pastry.socket.messaging |

Uses of SourceRoute in rice.pastry.socket

Fields in rice.pastry.socket declared as SourceRoute
`protected SourceRoute` | `SocketChannelReader.path` DESCRIBE THE FIELD
`protected SourceRoute` | `SocketChannelWriter.path` DESCRIBE THE FIELD
`protected SourceRoute` | `SocketCollectionManager.DeadChecker.path` DESCRIBE THE FIELD
`protected SourceRoute` | `SocketSourceRouteManager.AddressManager.best` DESCRIBE THE FIELD

Methods in rice.pastry.socket that return SourceRoute
`SourceRoute[]` | `SocketPastryNodeFactory.getRoutes(NodeHandle handle)` This method returns the routes a remote node is using
`protected SourceRoute[]` | `SocketSourceRouteManager.getAllRoutes(EpochInetSocketAddress destination)` Internal method which returns a list of all possible routes to a given address.
`protected SourceRoute` | `SocketSourceRouteManager.getBestRoute(EpochInetSocketAddress address)` Internal method which returns the best known route to the given destination
`SourceRoute` | `SourceRoute.reverse(EpochInetSocketAddress localAddress)` Method which revereses path and cliams the corresponding address
`SourceRoute` | `SourceRoute.reverse()` Method which revereses path
`SourceRoute` | `SourceRoute.append(EpochInetSocketAddress address)` Method which creates a new source route by appending the given address to the end of this one
`SourceRoute` | `SourceRoute.prepend(EpochInetSocketAddress address)` Method which creates a new source route by appending the given address to the end of this one
`protected static SourceRoute` | `SourceRoute.resolve(java.util.WeakHashMap map, SourceRoute route)` Method which performs the coalescing and interaction with the weak hash map
`static SourceRoute` | `SourceRoute.build(EpochInetSocketAddress[] path)` Constructor.
`static SourceRoute` | `SourceRoute.build(EpochInetSocketAddress address)` Constructor.

Methods in rice.pastry.socket with parameters of type SourceRoute
`long` | `PingManager.getLastTimePinged(SourceRoute path)` Gets the LastTimePinged attribute of the PingManager object
`long` | `PingManager.getLastTimeHeardFrom(SourceRoute path)` Gets the LastTimeHeardFrom attribute of the PingManager object
`protected void` | `PingManager.resetLastTimePinged(SourceRoute path)` Resets the last pinged time, only should be called when a node is marked dead.
`int` | `PingManager.proximity(SourceRoute path)` Method which returns the last cached proximity value for the given address.
`void` | `PingManager.addPingResponseListener(SourceRoute path, PingResponseListener prl)` Adds a feature to the PingResponseListener attribute of the PingManager object
`void` | `PingManager.enqueue(SourceRoute path, java.lang.Object msg)` DESCRIBE THE METHOD
`void` | `PingManager.pingResponse(SourceRoute path, long curTime)` DESCRIBE THE METHOD
`void` | `PingManager.ping(SourceRoute path, PingResponseListener prl)` Method which initiates a ping to the remote node.
`protected void` | `PingManager.forcePing(SourceRoute path, PingResponseListener prl)` DESCRIBE THE METHOD
`protected void` | `PingManager.notifyPingResponseListeners(SourceRoute path, int proximity, long lastTimePinged)` caller must synchronized(pingResponseTimes)
`static byte[]` | `PingManager.addHeader(SourceRoute path, java.lang.Object data, EpochInetSocketAddress localAddress)` Method which adds a header for the provided path to the given data.
`void` | `PingResponseListener.pingResponse(SourceRoute path, long RTT, long timeHeardFrom)` Method which is called once a previously-issued ping is responded to.
`protected void` | `SocketChannelReader.setPath(SourceRoute path)` Sets this reader's path
`protected void` | `SocketChannelReader.record(java.lang.Object obj, int size, SourceRoute path)` DESCRIBE THE METHOD
`protected void` | `SocketChannelWriter.setPath(SourceRoute path)` Sets this writer's path
`protected void` | `SocketChannelWriter.record(java.lang.String action, java.lang.Object obj, int size, SourceRoute path)` DESCRIBE THE METHOD
`boolean` | `SocketCollectionManager.isOpen(SourceRoute route)` Returns whether or not a socket is currently open to the given route
`void` | `SocketCollectionManager.ping(SourceRoute route)` Method which suggests a ping to the remote node.
`void` | `SocketCollectionManager.checkLiveness(SourceRoute route)` Method which checks the liveness of the given path: if a socket is already open, true is immediately returned.
`int` | `SocketCollectionManager.proximity(SourceRoute path)` Method which returns the last cached proximity value for the given address.
`void` | `SocketCollectionManager.send(SourceRoute path, Message message)` Method which sends a message across the wire.
`void` | `SocketCollectionManager.bootstrap(SourceRoute path, Message message)` Method which sends bootstraps a node by sending message across the wire, using a fake IP address in the header so that the local node is not marked alive, and then closes the connection.
`protected void` | `SocketCollectionManager.checkDead(SourceRoute path)` Initiates a liveness test on the given address, if the remote node does not respond, it is declared dead.
`protected void` | `SocketCollectionManager.openSocket(SourceRoute path, boolean bootstrap)` Method which opens a socket to a given remote node handle, and updates the bookkeeping to keep track of this socket
`protected void` | `SocketCollectionManager.closeSocket(SourceRoute path)` Method which cloeses a socket to a given remote node handle, and updates the bookkeeping to keep track of this closing.
`protected void` | `SocketCollectionManager.socketOpened(SourceRoute path, rice.pastry.socket.SocketCollectionManager.SocketManager manager)` Method which is designed to be called by node handles when they wish to open a socket to their remote node.
`protected void` | `SocketCollectionManager.socketClosed(SourceRoute path, rice.pastry.socket.SocketCollectionManager.SocketManager manager)` Method which is designed to be called *ONCE THE SOCKET HAS BEEN CLOSED*.
`protected void` | `SocketCollectionManager.socketUpdated(SourceRoute path)` Method which is designed to be called whenever a node has network activity.
`void` | `SocketCollectionManager.DeadChecker.pingResponse(SourceRoute path, long RTT, long timeHeardFrom)` DESCRIBE THE METHOD
`protected void` | `SocketSourceRouteManager.markDead(SourceRoute route)` This method should be called when a known route is declared dead.
`protected void` | `SocketSourceRouteManager.markAlive(SourceRoute route)` This method should be called when a known route is declared alive.
`protected void` | `SocketSourceRouteManager.markSuspected(SourceRoute route)` This method should be called when a known route is declared suspected.
`protected void` | `SocketSourceRouteManager.markProximity(SourceRoute route, int proximity)` This method should be called when a known route has its proximity updated
`protected void` | `SocketSourceRouteManager.AddressManager.markAlive(SourceRoute route)` This method should be called when a known route is declared alive.
`protected void` | `SocketSourceRouteManager.AddressManager.markSuspected(SourceRoute route)` This method should be called when a known route is declared suspected.
`protected void` | `SocketSourceRouteManager.AddressManager.markDead(SourceRoute route)` This method should be called when a known route is declared dead.
`protected void` | `SocketSourceRouteManager.AddressManager.markProximity(SourceRoute route, int proximity)` This method should be called when a known route has its proximity updated
`protected void` | `SocketSourceRouteManager.AddressManager.checkRoute(SourceRoute route)` Method which checks to see if the given address is dead
`protected static SourceRoute` | `SourceRoute.resolve(java.util.WeakHashMap map, SourceRoute route)` Method which performs the coalescing and interaction with the weak hash map

Constructors in rice.pastry.socket with parameters of type SourceRoute
`SocketChannelReader(PastryNode spn, SourceRoute path)` Constructor which creates this SocketChannelReader and the WirePastryNode.
`SocketChannelWriter(PastryNode spn, SourceRoute path)` Constructor which creates this SocketChannelWriter with a pastry node and an object to write out.
`SocketCollectionManager.DeadChecker(SourceRoute path, int numTries)` Constructor for DeadChecker.

Uses of SourceRoute in rice.pastry.socket.messaging

Fields in rice.pastry.socket.messaging declared as SourceRoute
`protected SourceRoute` | `DatagramMessage.outbound` DESCRIBE THE FIELD
`protected SourceRoute` | `DatagramMessage.inbound` DESCRIBE THE FIELD

Methods in rice.pastry.socket.messaging that return SourceRoute
`SourceRoute` | `DatagramMessage.getOutboundPath()` Gets the OutboundPath attribute of the DatagramMessage object
`SourceRoute` | `DatagramMessage.getInboundPath()` Gets the InboundPath attribute of the DatagramMessage object
`SourceRoute[]` | `RoutesResponseMessage.getRoutes()` Returns the leafset of the receiver.

Constructors in rice.pastry.socket.messaging with parameters of type SourceRoute
`DatagramMessage(SourceRoute outbound, SourceRoute inbound)` Constructor
`PingMessage(SourceRoute outbound, SourceRoute inbound)` Constructor
`PingResponseMessage(SourceRoute outbound, SourceRoute inbound, long start)` Constructor
`RoutesResponseMessage(SourceRoute[] routes)` Constructor
`WrongEpochMessage(SourceRoute outbound, SourceRoute inbound, EpochInetSocketAddress incorrect, EpochInetSocketAddress correct)` Constructor

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Rice Pastry API
PREV NEXT | FRAMES NO FRAMES

Copyright © 2001-2005 - Rice Pastry.