planet.util
Interface OverlayProperties

All Superinterfaces:
PropertiesInitializer, java.io.Serializable
All Known Implementing Classes:
ChordProperties, SymphonyProperties

public interface OverlayProperties
extends PropertiesInitializer

This interface permits to implement as static form This interficie allows to implement all the own properties of configuration of the overlay network under a same instance. It establishes a minimum contract, the method init(), so that their values are initialized. For this reason, cast will have to be made in each place where it is necessary, to the concrete implementation.

Author:
Jordi Pujol Date: 05/07/2004

Method Summary
 int getTypeForApplicationMessage()
          Returns RouteMessage type for Application level.
 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 the RouteMessage.
 
Methods inherited from interface planet.util.PropertiesInitializer
init
 

Method Detail

typeToString

java.lang.String typeToString(int type)
Returns a String representation of the constant specific values of type the RouteMessage. Its use is only for human readable logs.

Parameters:
type - Value to get its String representation.
Returns:
The String representation of the type.

modeToString

java.lang.String modeToString(int mode)
Returns a string representation of each of event mode and RouteMessage mode.

Parameters:
mode - Mode of the RouteMessage to get its String representation.
Returns:
String representation of the mode of RouteMessage.

getTypeForApplicationMessage

int getTypeForApplicationMessage()
Returns RouteMessage type for Application level.

Returns:
RouteMessage type for Application level.