public class CCSConfiguration extends Object implements LocalConfigService, org.lsst.ccs.framework.HasLifecycle
ConfigurationParameter or Persist annotations.
The last-read time and last assigned location for each instrument is normally obtained from the
persistence service unless overridden by the configuration.| Constructor and Description |
|---|
CCSConfiguration()
Makes an instance.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getEmailBounceAddress()
Get the value of the "bounce-to" and "reply-to" fields for alarm emails.
|
List<String> |
getEmailRecipients()
Gets the list of recipients of alarm emails.
|
String |
getEmailSender() |
List<InstrumentConfig> |
getInstrumentConfigs()
Gets an InstrumentConfig for each instrument described
by the configuration data.
|
List<LocationConfig> |
getLocationConfigs()
Gets a LocationConfig for each location described by the configuration data.
|
List<String> |
getOPCServerInfo(String serverKey)
Gets the list of information needed to contact a Lighthouse OPC server.
|
Duration |
getReadoutInterval()
Gets the time between instrument readouts.
|
String |
getSMTPServer()
Gets the host name or IPv4 address of the SMTP server used to send emails.
|
void |
init() |
void |
makeConfigurationObjects()
Checks configuration and persistent data and makes the configuration objects.
|
void |
updateInstrument(InstrumentStatus stat)
Updates the information in the configuration database for a particular instrument.
|
public void makeConfigurationObjects()
makeConfigurationObjects in interface LocalConfigServicepublic List<InstrumentConfig> getInstrumentConfigs()
getInstrumentConfigs in interface LocalConfigServicepublic void updateInstrument(InstrumentStatus stat)
updateInstrument in interface LocalConfigServicestat - The current status of the instrument.public List<LocationConfig> getLocationConfigs()
getLocationConfigs in interface LocalConfigServicepublic Duration getReadoutInterval()
getReadoutInterval in interface LocalConfigServicepublic String getEmailSender()
getEmailSender in interface LocalConfigServicepublic String getEmailBounceAddress()
getEmailBounceAddress in interface LocalConfigServicepublic String getSMTPServer()
getSMTPServer in interface LocalConfigServicepublic List<String> getEmailRecipients()
getEmailRecipients in interface LocalConfigServicepublic List<String> getOPCServerInfo(String serverKey)
LocalConfigServicegetOPCServerInfo in interface LocalConfigServiceserverKey - The server name used in the device connection information.public void init()
init in interface org.lsst.ccs.framework.HasLifecycleCopyright © 2018 LSST. All rights reserved.