Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Change in Frankfurt

  • Configuration in Text format
  • Sections with Attribute names
  • Root section (For general Comments)
  • Attribute Types
    • Basic: String, Long, Boolean
    • Comments apply to a section
    Config in JSON-Format
  • One config file per bundle in $ODL_HOME/etc
  • Each parameter has a commtcommet, that is handled as attribute.
  • After initial read .. the specified parameters are extended by all remaining parameters with defalt value.
  • A change of the configuration file with editor forces a notification to allow parameter replacement.

Basic requirements

  • Attribute name similar to config attribute
  • Configuration change listener on section level (Example Database)

Configuration for devicemanager

Configuraton Class like this

...

...

class devicemanagerConfiguration {
      Database database;
}

class Database {
   String cluster;
   String node;
   String index;
   long archiveCheckIntervalSeconds;
   long archiveLifetimeSeconds;
   HostInfo[] hosts;
}

class HostInfo {
	String hostname;
	int port;
	String protocol;
}

Overview

draw.io Diagram
bordertrue
viewerToolbartrue
fitWindowfalse
diagramNameConfigurationClasses
simpleViewerfalse
width
diagramWidth641661
revision12

Configurations till El Alto

...