peersim.pastry
Class CustomDistribution

java.lang.Object
  extended by peersim.pastry.CustomDistribution
All Implemented Interfaces:
peersim.core.Control

public class CustomDistribution
extends java.lang.Object
implements peersim.core.Control

This control initializes the whole network (that was already created by peersim) by assigning a unique NodeId randomly generated, to every node (it does nothing else).

Title: MSPASTRY

Description: MsPastry implementation for PeerSim

Copyright: Copyright (c) 2007

Company: The Pastry Group


Constructor Summary
CustomDistribution(java.lang.String prefix)
           
 
Method Summary
 boolean execute()
          Scan over the nodes in the network and assign a randomly generated NodeId in the space 0..2^BITS, where BITS is a parameter from the pastry protocol (usually 128)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomDistribution

public CustomDistribution(java.lang.String prefix)
Method Detail

execute

public boolean execute()
Scan over the nodes in the network and assign a randomly generated NodeId in the space 0..2^BITS, where BITS is a parameter from the pastry protocol (usually 128)

Specified by:
execute in interface peersim.core.Control
Returns:
boolean always false