planet.symphony
Class SymphonyProperties

java.lang.Object
  extended byplanet.symphony.SymphonyProperties
All Implemented Interfaces:
OverlayProperties, java.io.Serializable

public class SymphonyProperties
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_F
          Symphony property: Default key for maximum number of members in successor list.
static java.lang.String DEFAULT_K
          Symphony property: Default key for maximum number of long distance connections.
static java.lang.String DEFAULT_MAX_JOIN_RETRIES
          Symphony property: Default key for maximum number of retries to enter to the network by the same bootstrap.
static java.lang.String DEFAULT_MAX_RETRIES_NEW_LONG_DISTANCE
          Symphony property: Default key for maximum number of retries to obtain a connection to the same long distance node.
 int F
          Maximum number of members in successor list.
 int K
          Maximum number of long distance connections.
 int maxJoinRetries
          Maximum number of retries to enter to the network by the same bootstrap.
 int maxRetriesNewLongDistance
          Maximum number of retries to obtain a connection to the same long distance node.
 
Constructor Summary
SymphonyProperties()
           
 
Method Summary
 void init(java.lang.String propertiesFile)
          Initialize all configuration properties of the Symphony 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_K

public static final java.lang.String DEFAULT_K
Symphony property: Default key for maximum number of long distance connections.

See Also:
Constant Field Values

DEFAULT_F

public static final java.lang.String DEFAULT_F
Symphony property: Default key for maximum number of members in successor list.

See Also:
Constant Field Values

DEFAULT_MAX_RETRIES_NEW_LONG_DISTANCE

public static final java.lang.String DEFAULT_MAX_RETRIES_NEW_LONG_DISTANCE
Symphony property: Default key for maximum number of retries to obtain a connection to the same long distance node.

See Also:
Constant Field Values

DEFAULT_MAX_JOIN_RETRIES

public static final java.lang.String DEFAULT_MAX_JOIN_RETRIES
Symphony property: Default key for maximum number of retries to enter to the network by the same bootstrap.

See Also:
Constant Field Values

K

public int K
Maximum number of long distance connections.


F

public int F
Maximum number of members in successor list.


maxRetriesNewLongDistance

public int maxRetriesNewLongDistance
Maximum number of retries to obtain a connection to the same long distance node.


maxJoinRetries

public int maxJoinRetries
Maximum number of retries to enter to the network by the same bootstrap.

Constructor Detail

SymphonyProperties

public SymphonyProperties()
Method Detail

init

public void init(java.lang.String propertiesFile)
          throws InitializationException
Initialize all configuration properties of the Symphony 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 SymphonyNode implementation.

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