rice.pastry.socket
Class SocketNodeHandleFactory
java.lang.Object
rice.pastry.socket.SocketNodeHandleFactory
- All Implemented Interfaces:
- NodeHandleFactory
- Direct Known Subclasses:
- RendezvousSNHFactory
public class SocketNodeHandleFactory
- extends java.lang.Object
- implements NodeHandleFactory
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
pn
protected TLPastryNode pn
handleSet
protected java.util.Map<SocketNodeHandle,SocketNodeHandle> handleSet
SocketNodeHandleFactory
public SocketNodeHandleFactory(TLPastryNode pn)
getNodeHandle
public SocketNodeHandle getNodeHandle(MultiInetSocketAddress i,
long epoch,
Id id)
- This is kind of weird, may need to rethink this.
- Parameters:
i
- id
-
- Returns:
readNodeHandle
public NodeHandle readNodeHandle(InputBuffer buf)
throws java.io.IOException
- Specified by:
readNodeHandle
in interface NodeHandleFactory
- Throws:
java.io.IOException
coalesce
public NodeHandle coalesce(NodeHandle h)
- Description copied from interface:
NodeHandleFactory
- Needed for legacy java deserialization of NodeHanlde because we aren't given any
other way to do this properly such as a protected constructor.
- Specified by:
coalesce
in interface NodeHandleFactory
- Returns:
Copyright © 2001-2005 - Rice Pastry.