planet.util
Interface OverlayProperties

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

public interface OverlayProperties
extends java.io.Serializable

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
 void init(java.lang.String propertiesFile)
          Initialize correctly the overlay configuration properties.
 java.lang.String typeToString(int type)
          Returns a String representation of the constant specific values of type and mode of the RouteMessage.
 

Method Detail

init

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

Parameters:
propertiesFile - File with all configuration properties of the concrete overlay. This file must to follow the java.util.Properties contract.
Throws:
InitializationException - if an error occurs during the initialization of the different properties.

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.

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