Class ConfigurationManager

java.lang.Object
org.scictrl.csshell.epics.server.ConfigurationManager

public final class ConfigurationManager extends Object

ConfigurationManager class.

Author:
igor@scictrl.com
  • Field Details

  • Constructor Details

    • ConfigurationManager

      public ConfigurationManager()

      Constructor for ConfigurationManager.

  • Method Details

    • getSeverity

      public static final gov.aps.jca.dbr.Severity getSeverity(org.apache.commons.configuration.HierarchicalConfiguration config, String prefix, gov.aps.jca.dbr.Severity def)

      getSeverity.

      Parameters:
      config - a HierarchicalConfiguration object
      prefix - a String object
      def - a Severity object
      Returns:
      a Severity object
    • getStatus

      public static final gov.aps.jca.dbr.Status getStatus(org.apache.commons.configuration.HierarchicalConfiguration config, String prefix, gov.aps.jca.dbr.Status def)

      getStatus.

      Parameters:
      config - a HierarchicalConfiguration object
      prefix - a String object
      def - a Status object
      Returns:
      a Status object
    • loadConfig

      public static final Record[] loadConfig(String file, String name) throws org.apache.commons.configuration.ConfigurationException, ParserConfigurationException
      Loads EPICS server configuration from XML File.
      Parameters:
      file - XML file
      name - server name
      Returns:
      array of record created from XML
      Throws:
      org.apache.commons.configuration.ConfigurationException - if loading fails
      ParserConfigurationException - parsing failed
    • loadConfig

      public static final Record[] loadConfig(String file, ConfigurationManager.ConfigurationVisitor visitor) throws org.apache.commons.configuration.ConfigurationException, ParserConfigurationException
      Loads EPICS server configuration from XML File.
      Parameters:
      file - XML file
      visitor - a ConfigurationManager.ConfigurationVisitor object
      Returns:
      array of record created from XML
      Throws:
      org.apache.commons.configuration.ConfigurationException - if loading fails
      ParserConfigurationException - parsing failed