|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectplanet.chord.ChordProperties
This class includes the initialization and the values for all configuration properties of the Chord overlay.
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 | |
int |
getTypeForApplicationMessage()
Returns RouteMessage type for Application level. |
void |
init(java.lang.String propertiesFile)
Initialize all configuration properties of the Chord overlay. |
java.lang.String |
modeToString(int mode)
Returns a string representation of each of event mode and RouteMessage mode. |
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 |
public static final java.lang.String DEFAULT_STABILIZE_STEPS
public static final java.lang.String DEFAULT_FIX_FINGER_STEPS
public static final java.lang.String DEFAULT_SUCC_LIST_MAX
public int stabilizeSteps
public int fixFingerSteps
public int succListMax
Constructor Detail |
public ChordProperties()
Method Detail |
public void init(java.lang.String propertiesFile) throws InitializationException
init
in interface PropertiesInitializer
propertiesFile
-
InitializationException
PropertiesInitializer.init(java.lang.String)
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 |