rice.pastry
Class NodeId
java.lang.Object
rice.pastry.Id
rice.pastry.NodeId
- All Implemented Interfaces:
- java.lang.Comparable, Id, java.io.Serializable
- public class NodeId
- extends Id
Represents a Pastry identifier for a node.
- Version:
- $Id: NodeId.java,v 1.26 2005/03/11 00:58:10 jeffh Exp $
- Author:
- Peter Druschel, Alan Mislove
- See Also:
- Serialized Form
Field Summary |
static int |
nodeIdBitLength
This is the bit length of the node ids. |
Methods inherited from class rice.pastry.Id |
add, addToId, blit, blit, build, build, build, build, build, checkBit, clockwise, clockwise, compareTo, copy, distance, distanceFromId, equals, equals, getAlternateId, getByteArrayLength, getCCW, getCW, getDigit, getDomainPrefix, hashCode, indexOfMSDB, indexOfMSDD, isBetween, isBetween, longDistance, longDistanceFromId, makeRandomId, numDigits, resolve, toByteArray, toByteArray, toString, toStringFull, trans, trans, trans |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
nodeIdBitLength
public static final int nodeIdBitLength
- This is the bit length of the node ids. If it is n, then there are 2^n
different Pastry nodes. We currently assume that it is divisible by 32.
- See Also:
- Constant Field Values
buildNodeId
public static NodeId buildNodeId(int[] material)
- Constructor.
- Parameters:
material
- an array of length at least IdBitLength/32 containing raw
Id material.
- Returns:
- DESCRIBE THE RETURN VALUE
buildNodeId
public static NodeId buildNodeId(byte[] material)
- Constructor.
- Parameters:
material
- an array of length at least IdBitLength/8 containing raw Id
material.
- Returns:
- DESCRIBE THE RETURN VALUE
buildNodeId
public static NodeId buildNodeId()
- Constructor. It constructs a new Id with a value of 0 for all bits.
- Returns:
- DESCRIBE THE RETURN VALUE
Copyright © 2001-2005 - Rice Pastry.