|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectplanet.symphony.SymphonyProperties
This class includes the initialization and the values for all configuration properties of the Chord overlay.
Field Summary | |
int |
maxJoinRetries
Maximum number of retries to enter to the network by the same bootstrap. |
int |
maxLongDistance
Maximum number of long distance connections (K). |
int |
maxRetriesNewLongDistance
Maximum number of retries to obtain a connection to the same long distance node. |
int |
maxSuccessorList
Maximum number of members in successor list (F). |
int |
stabilizeSteps
Number of steps for statibilization. |
static java.lang.String |
SYMPHONY_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 |
SYMPHONY_MAX_LONG_DISTANCE
Symphony property: Default key for maximum number of long distance connections. |
static java.lang.String |
SYMPHONY_MAX_RETRIES_NEW_LONG_DISTANCE
Symphony property: Default key for maximum number of retries to obtain a connection to the same long distance node. |
static java.lang.String |
SYMPHONY_MAX_SUCCESSOR_LIST
Symphony property: Default key for maximum number of members in successor list. |
static java.lang.String |
SYMPHONY_STABILIZATION_STEPS
Symphony property: Default key for number of stabilize steps. |
Constructor Summary | |
SymphonyProperties()
|
Method Summary | |
int |
getTypeForApplicationMessage()
Returns RouteMessage type for Application level. |
void |
init(PropertiesWrapper properties)
Initialize all configuration properties of the Symphony overlay. |
java.lang.String |
modeToString(int mode)
Returns a string representation of each of event mode and RouteMessage mode. |
void |
postinit(PropertiesWrapper properties)
Makes the postinitialization process. |
java.lang.String |
typeToString(int type)
Returns a String representation of the constant specific values of type the RouteMessage. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String SYMPHONY_MAX_LONG_DISTANCE
public static final java.lang.String SYMPHONY_MAX_SUCCESSOR_LIST
public static final java.lang.String SYMPHONY_MAX_RETRIES_NEW_LONG_DISTANCE
public static final java.lang.String SYMPHONY_MAX_JOIN_RETRIES
public static final java.lang.String SYMPHONY_STABILIZATION_STEPS
public int maxLongDistance
public int maxSuccessorList
public int maxRetriesNewLongDistance
public int maxJoinRetries
public int stabilizeSteps
Constructor Detail |
public SymphonyProperties()
Method Detail |
public void init(PropertiesWrapper properties) throws InitializationException
init
in interface PropertiesInitializer
properties
- Properties with all (key,value) pairs.
InitializationException
PropertiesInitializer.init(planet.util.PropertiesWrapper)
public void postinit(PropertiesWrapper properties) throws InitializationException
postinit
in interface PropertiesInitializer
properties
- A Properties instance with all required configuration properties.
InitializationException
- if an error occurs during
the initialization of the different properties.PropertiesInitializer.postinit(planet.util.PropertiesWrapper)
public java.lang.String typeToString(int type)
typeToString
in interface OverlayProperties
type
- Value to get its String representation.
public java.lang.String modeToString(int mode)
modeToString
in interface OverlayProperties
mode
- Mode of the RouteMessage to get its
String representation.
public int getTypeForApplicationMessage()
getTypeForApplicationMessage
in interface OverlayProperties
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |