Package org.scictrl.csshell.epics.server
Class ConfigurationManager.ConfigurationVisitor
java.lang.Object
org.scictrl.csshell.epics.server.ConfigurationManager.ConfigurationVisitor
- Enclosing class:
ConfigurationManager
Visitor for hierarchical configuration, used during configuration parsing.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAlarmPath
(String[] path, String pv) Adds alarm pathvoid
addTemplate
(String name, org.apache.commons.configuration.SubnodeConfiguration config) Adds a substitution templateReturns collected applications.Alarm configuration.String[]
Returns collected alarm paths.getName()
Server configuration name.getPVsForAlarmPath
(String path) Returns collected PVs for alarm path.org.apache.commons.configuration.SubnodeConfiguration
getTemplate
(String name) Returns template.Record[]
records()
Returns collected records.Substitutes macros in provided string.
-
Constructor Details
-
ConfigurationVisitor
Constructor.- Parameters:
name
- server configuration namealarmDoc
- alarm configuration
-
-
Method Details
-
records
Returns collected records.- Returns:
- collected records
-
applications
Returns collected applications.- Returns:
- collected applications
-
getName
Server configuration name.- Returns:
- server configuration name
-
getAlarmDoc
Alarm configuration.- Returns:
- alarm configuration
-
addTemplate
Adds a substitution template- Parameters:
name
- template nameconfig
- configuration to be inserted instead template name
-
getTemplate
Returns template.- Parameters:
name
- template name- Returns:
- template configuration
-
addAlarmPath
Adds alarm path- Parameters:
path
- pathpv
- associated PV
-
getAlarmPaths
Returns collected alarm paths.- Returns:
- collected alarm paths
-
getPVsForAlarmPath
Returns collected PVs for alarm path.- Parameters:
path
- a path name- Returns:
- collected PVs for alarm path
-
replace
Substitutes macros in provided string.- Parameters:
s
- string to be substituted- Returns:
- substituted string
-