Class ConfigurationManager.ConfigurationVisitor

java.lang.Object
org.scictrl.csshell.epics.server.ConfigurationManager.ConfigurationVisitor
Enclosing class:
ConfigurationManager

public static final class ConfigurationManager.ConfigurationVisitor extends Object
Visitor for hierarchical configuration, used during configuration parsing.
  • Constructor Details

    • ConfigurationVisitor

      public ConfigurationVisitor(String name, Document alarmDoc)
      Constructor.
      Parameters:
      name - server configuration name
      alarmDoc - alarm configuration
  • Method Details

    • records

      public Record[] records()
      Returns collected records.
      Returns:
      collected records
    • applications

      public Application[] applications()
      Returns collected applications.
      Returns:
      collected applications
    • getName

      public String getName()
      Server configuration name.
      Returns:
      server configuration name
    • getAlarmDoc

      public Document getAlarmDoc()
      Alarm configuration.
      Returns:
      alarm configuration
    • addTemplate

      public void addTemplate(String name, org.apache.commons.configuration.SubnodeConfiguration config)
      Adds a substitution template
      Parameters:
      name - template name
      config - configuration to be inserted instead template name
    • getTemplate

      public org.apache.commons.configuration.SubnodeConfiguration getTemplate(String name)
      Returns template.
      Parameters:
      name - template name
      Returns:
      template configuration
    • addAlarmPath

      public void addAlarmPath(String[] path, String pv)
      Adds alarm path
      Parameters:
      path - path
      pv - associated PV
    • getAlarmPaths

      public String[] getAlarmPaths()
      Returns collected alarm paths.
      Returns:
      collected alarm paths
    • getPVsForAlarmPath

      public List<String> getPVsForAlarmPath(String path)
      Returns collected PVs for alarm path.
      Parameters:
      path - a path name
      Returns:
      collected PVs for alarm path
    • replace

      public String replace(String s)
      Substitutes macros in provided string.
      Parameters:
      s - string to be substituted
      Returns:
      substituted string