rice.pastry.socket.nat.rendezvous
Class RendezvousSNHFactory
java.lang.Object
rice.pastry.socket.SocketNodeHandleFactory
rice.pastry.socket.nat.rendezvous.RendezvousSNHFactory
- All Implemented Interfaces:
- Serializer<SocketNodeHandle>, NodeHandleFactory<SocketNodeHandle>
public class RendezvousSNHFactory
- extends SocketNodeHandleFactory
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RendezvousSNHFactory
public RendezvousSNHFactory(PastryNode pn)
getNodeHandle
public SocketNodeHandle getNodeHandle(MultiInetSocketAddress i,
long epoch,
Id id)
- Description copied from class:
SocketNodeHandleFactory
- This is kind of weird, may need to rethink this. This is called to build one w/o
deserializing anything. (Either the local node, or one with a bogus id).
- Overrides:
getNodeHandle in class SocketNodeHandleFactory
- Returns:
getNodeHandle
public SocketNodeHandle getNodeHandle(MultiInetSocketAddress i,
long epoch,
Id id,
byte contactState)
readNodeHandle
public SocketNodeHandle readNodeHandle(InputBuffer buf)
throws IOException
- Specified by:
readNodeHandle in interface NodeHandleFactory<SocketNodeHandle>- Overrides:
readNodeHandle in class SocketNodeHandleFactory
- Throws:
IOException
Copyright © 2010. All Rights Reserved.