rice.pastry.standard
Class IPNodeIdFactory
java.lang.Object
rice.pastry.standard.IPNodeIdFactory
- All Implemented Interfaces:
- NodeIdFactory
public class IPNodeIdFactory
- extends Object
- implements NodeIdFactory
Constructs NodeIds for virtual nodes derived from the IP address and port
number of this Java VM.
- Version:
- $Id: IPNodeIdFactory.java 3613 2007-02-15 14:45:14Z jstewart $
- Author:
- Peter Druschel
|
Method Summary |
Id |
generateNodeId()
generate a nodeId multiple invocations result in a deterministic series of
randomized NodeIds, seeded by the IP address of the local host. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected Logger logger
IPNodeIdFactory
public IPNodeIdFactory(InetAddress localIP,
int port,
Environment env)
- Constructor.
- Parameters:
port - the port number on which this Java VM listens
generateNodeId
public Id generateNodeId()
- generate a nodeId multiple invocations result in a deterministic series of
randomized NodeIds, seeded by the IP address of the local host.
- Specified by:
generateNodeId in interface NodeIdFactory
- Returns:
- the new nodeId
Copyright © 2010. All Rights Reserved.