planet.chord
Class ChordProperties

java.lang.Object
  extended byplanet.chord.ChordProperties
All Implemented Interfaces:
OverlayProperties, java.io.Serializable

public class ChordProperties
extends java.lang.Object
implements OverlayProperties

This class includes the initialization and the values for all configuration properties of the Chord overlay.

Author:
Jordi Pujol Date: 05/07/2004
See Also:
Serialized Form

Field Summary
static java.lang.String DEFAULT_FIX_FINGER_STEPS
          Chord property: Default key for number of steps to fix finger tables.
static java.lang.String DEFAULT_STABILIZE_STEPS
          Chord property: Default key for number of stabilize steps.
static java.lang.String DEFAULT_SUCC_LIST_MAX
          Chord property: Default key for size of successor list.
 int fixFingerSteps
          Number of steps to fix fingers.
 int stabilizeSteps
          Number of steps for statibilization.
 int succListMax
          Max size for successor list.
 
Constructor Summary
ChordProperties()
           
 
Method Summary
 void init(java.lang.String propertiesFile)
          Initialize all configuration properties of the Chord overlay.
 java.lang.String typeToString(int type)
          Returns a String representation of the constant specific values of type and mode of the RouteMessage.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_STABILIZE_STEPS

public static final java.lang.String DEFAULT_STABILIZE_STEPS
Chord property: Default key for number of stabilize steps.

See Also:
Constant Field Values

DEFAULT_FIX_FINGER_STEPS

public static final java.lang.String DEFAULT_FIX_FINGER_STEPS
Chord property: Default key for number of steps to fix finger tables.

See Also:
Constant Field Values

DEFAULT_SUCC_LIST_MAX

public static final java.lang.String DEFAULT_SUCC_LIST_MAX
Chord property: Default key for size of successor list.

See Also:
Constant Field Values

stabilizeSteps

public int stabilizeSteps
Number of steps for statibilization.


fixFingerSteps

public int fixFingerSteps
Number of steps to fix fingers.


succListMax

public int succListMax
Max size for successor list.

Constructor Detail

ChordProperties

public ChordProperties()
Method Detail

init

public void init(java.lang.String propertiesFile)
          throws InitializationException
Initialize all configuration properties of the Chord overlay.

Specified by:
init in interface OverlayProperties
Parameters:
propertiesFile -
Throws:
InitializationException
See Also:
OverlayProperties.init(java.lang.String)

typeToString

public java.lang.String typeToString(int type)
Returns a String representation of the constant specific values of type and mode of the RouteMessage. Its use is only for human readable logs. Based on ChordNode implementation.

Specified by:
typeToString in interface OverlayProperties
Parameters:
type - Value to get its String representation.
Returns:
The String representation of the type.