Configuration Files

In Optsicom Framework there is several configuration options that can be specified in a configuration file. The config files has the format of Java's properties files. The options that you can configure are:

  • computer.name
  • computer.description
  • researcher.name
  • research_unit
  • problem.name
  • experiment_repository_type
    • case: serialized_files
      • experiment_repository.serialized_files.dir
    • case: derbydb
      • experiment_repository.derbydb.dir
    • case: mysqldb
      • experiment_repository.mysqldb.ip
      • experiment_repository.mysqldb.port
      • experiment_repository.mysqldb.user
      • experiment_repository.mysqldb.pass
You can have several configuration files in several locations to configure these properties in a global o local way:
  • User home: /home/user/.optsicom/optsicom.config
  • Working dir: optsicom.config

The properties that you specify in the local file (the file in the working dir) override those defined in the global file (located in home dir).

Also you can override/specify any property in the ExperimentConf class in your code using the ExperimentConf method:

public void setConfigProperty(String name, String value)

In order to avoid mistakes, you can use the constants defined in class es.optsicom.lib.config.ConfigProperties.