Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Rice Pastry API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## rice.pastry.standard
Class IPNodeIdFactory

    java.lang.Object
      rice.pastry.standard.IPNodeIdFactory

All Implemented Interfaces:
  NodeIdFactory

public class IPNodeIdFactory
extends java.lang.Object
implements NodeIdFactory

Constructs NodeIds for virtual nodes derived from the IP address and port number of this Java VM.

Version:
  $Id: IPNodeIdFactory.java 2808 2005-11-22 14:38:49Z jeffh $
Author:
  Peter Druschel

Field Summary
`protected Logger` | `logger` DESCRIBE THE FIELD

Constructor Summary
`IPNodeIdFactory(java.net.InetAddress localIP, int port, Environment env)` Constructor.

Method Summary
`NodeId` | `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`

Field Detail

### logger

    protected Logger logger

  DESCRIBE THE FIELD

Constructor Detail

### IPNodeIdFactory

    public IPNodeIdFactory(java.net.InetAddress localIP,
                           int port,
                           Environment env)

  Constructor.

Parameters:
  `port` - the port number on which this Java VM listens
  `localIP` - DESCRIBE THE PARAMETER
  `env` - DESCRIBE THE PARAMETER

Method Detail

### generateNodeId

    public NodeId 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

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Rice Pastry API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2005 - Rice Pastry.