Package org.scictrl.csshell.epics.server
Class ConfigurationManager
java.lang.Object
org.scictrl.csshell.epics.server.ConfigurationManager
ConfigurationManager class.
- Author:
- igor@scictrl.com
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Visitor for hierarchical configuration, used during configuration parsing. -
Field Summary
Modifier and TypeFieldDescriptionstatic final String
ConstantNULL_STRING=""
static final double
ConstantZERO_DOUBLE=0.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic final gov.aps.jca.dbr.Severity
getSeverity
(org.apache.commons.configuration.HierarchicalConfiguration config, String prefix, gov.aps.jca.dbr.Severity def) getSeverity.static final gov.aps.jca.dbr.Status
getStatus
(org.apache.commons.configuration.HierarchicalConfiguration config, String prefix, gov.aps.jca.dbr.Status def) getStatus.static final Record[]
loadConfig
(String file, String name) Loads EPICS server configuration from XML File.static final Record[]
loadConfig
(String file, ConfigurationManager.ConfigurationVisitor visitor) Loads EPICS server configuration from XML File.
-
Field Details
-
NULL_STRING
ConstantNULL_STRING=""
- See Also:
-
ZERO_DOUBLE
public static final double ZERO_DOUBLEConstantZERO_DOUBLE=0.0
- See Also:
-
-
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
- aHierarchicalConfiguration
objectprefix
- aString
objectdef
- aSeverity
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
- aHierarchicalConfiguration
objectprefix
- aString
objectdef
- aStatus
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 filename
- server name- Returns:
- array of record created from XML
- Throws:
org.apache.commons.configuration.ConfigurationException
- if loading failsParserConfigurationException
- 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 filevisitor
- aConfigurationManager.ConfigurationVisitor
object- Returns:
- array of record created from XML
- Throws:
org.apache.commons.configuration.ConfigurationException
- if loading failsParserConfigurationException
- parsing failed
-