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,v 1.6 2005/03/11 00:58:03 jeffh Exp $
Author:
  Peter Druschel

Constructor Summary
`IPNodeIdFactory(int port)` 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`

Constructor Detail

### IPNodeIdFactory

    public IPNodeIdFactory(int port)

  Constructor.

Parameters:
  `port` - the port number on which this Java VM listens

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.