
public class DaqStatsMonitor extends Object implements org.lsst.ccs.framework.HasLifecycle, org.lsst.ccs.config.ConfigurationBulkChangeHandler, org.lsst.ccs.services.HasDataProviderInfos
| Modifier and Type | Field and Description |
|---|---|
protected Integer |
minDiffAlertWarning |
protected Integer |
minDiffLogWarning |
protected List<String> |
sumDriverChecks |
protected List<String> |
sumDriverStats |
protected List<String> |
sumFirmwareChecks |
protected List<String> |
sumFirmwareStats |
protected List<String> |
sumRdsChecks |
protected List<String> |
sumRdsStats |
protected List<String> |
sumRmsChecks |
protected List<String> |
sumRmsStats |
| Constructor and Description |
|---|
DaqStatsMonitor()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
build()
build phase: set up periodic task for publication
|
String |
clearAllDriver(String location)
Print and Clear all DAQ Driver statistics data for specified Location
Like readAllDriver, but clears data after reading
|
String |
clearAllFirmware(String location)
Print and Clear all DAQ Firmware statistics data for specified Location
Like readAllFirmware, but clears data after reading
|
String |
clearAllRds(String location)
Print and Clear all DAQ Rds statistics data for specified Location
Like readAllRds, but clears data after reading
|
String |
clearAllRms(String location)
Print and Clear all DAQ Rms statistics data for specified Location
Like readAllRms, but clears data after reading
|
String |
clearAllStats(String location)
Print then clear all four sets of statisics for specified location
|
String |
clearStatsAllLocations()
Clear all four sets of statisics for all locations
|
List<org.lsst.ccs.bus.data.DataProviderInfo> |
getDataProviderInfos()
This method of HasDataProviderInfo is used to register summed
data, including units, for publication.
|
void |
init()
init phase: open connection to DAQ partition
Also, use first Daq location to verify ConfigurationParameter Lists
|
boolean |
isOnline()
Gets the online state.
|
void |
publishDataProviderCurrentData(org.lsst.ccs.bus.data.AgentInfo a)
Not used, but present to complete HasDataProviderInfos interace
|
String |
readAllDriver(String location)
Print all DAQ Driver statistics data for specified Location
Reads all DAQDriverStatistics values and return them in table format.
|
String |
readAllFirmware(String location)
Print all DAQ Firmware statistics data for specified Location
Reads all DAQFirmwareStatistics values and return them in table format.
|
String |
readAllRds(String location)
Print all DAQ Rds statistics data for specified Location
Reads all DAQRdsStatistics values and return them in table format.
|
String |
readAllRms(String location)
Print all DAQ Rms statistics data for specified Location
Reads all DAQRmsStatistics values and return them in table format.
|
String |
readAllStats(String location)
Print all four sets of statisics for specified location
|
String |
readDriverStat(String location,
String quantity)
Read specified entry in DAQ Driver Stats for specified location
|
String |
readFirmwareStat(String location,
String quantity)
Read specified entry in DAQ Firmware Stats for specified location
|
String |
readRdsStat(String location,
String quantity)
Read specified entry in DAQ Rds Stats for specified location
|
String |
readRmsStat(String location,
String quantity)
Read specified entry in DAQ Rms Stats for specified location
|
String |
timestamp()
Determines current time
G *
|
void |
validateBulkChange(Map<String,Object> params)
Checks validity of a proposed set of ConfigurationParameters
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpostBuild, postInit, postShutdown, postStart, shutdown, start@ConfigurationParameter(isFinal=true,
category="Statistics",
maxLength=15,
description="Driver Stats for sums over location")
protected volatile List<String> sumDriverStats
@ConfigurationParameter(isFinal=true,
category="Statistics",
maxLength=30,
description="Firmware Stats for sums over location")
protected volatile List<String> sumFirmwareStats
@ConfigurationParameter(isFinal=true,
category="Statistics",
maxLength=15,
description="Rds Stats for sums over location")
protected volatile List<String> sumRdsStats
@ConfigurationParameter(isFinal=true,
category="Statistics",
maxLength=15,
description="Rms Stats for sums over location")
protected volatile List<String> sumRmsStats
@ConfigurationParameter(isFinal=true,
category="Statistics",
maxLength=15,
description="Driver Stats for warnings on sums")
protected volatile List<String> sumDriverChecks
@ConfigurationParameter(isFinal=true,
category="Statistics",
maxLength=30,
description="Firmware Stats for warnings on sums")
protected volatile List<String> sumFirmwareChecks
@ConfigurationParameter(isFinal=true,
category="Statistics",
maxLength=15,
description="Rds Stats for warnings on sums")
protected volatile List<String> sumRdsChecks
@ConfigurationParameter(isFinal=true,
category="Statistics",
maxLength=15,
description="Rms Stats for warnings on sums")
protected volatile List<String> sumRmsChecks
@ConfigurationParameter(category="Statistics",
description="minimum difference between successive reads to put warning in log")
protected volatile Integer minDiffLogWarning
@ConfigurationParameter(category="Statistics",
description="minimum difference between successive reads to raise Alert at warning level")
protected volatile Integer minDiffAlertWarning
public boolean isOnline()
public void build()
build in interface org.lsst.ccs.framework.HasLifecyclepublic void init()
init in interface org.lsst.ccs.framework.HasLifecycleorg.lsst.ccs.daq.ims.DAQExceptionpublic void validateBulkChange(Map<String,Object> params)
validateBulkChange in interface org.lsst.ccs.config.ConfigurationBulkChangeHandlerparams - Map of ConfigurationParameters from name to valuepublic List<org.lsst.ccs.bus.data.DataProviderInfo> getDataProviderInfos()
getDataProviderInfos in interface org.lsst.ccs.services.HasDataProviderInfospublic void publishDataProviderCurrentData(org.lsst.ccs.bus.data.AgentInfo a)
publishDataProviderCurrentData in interface org.lsst.ccs.services.HasDataProviderInfos@Command(type=QUERY, name="readAllStats", level=0, description="Read all sets of DAQ stats") public String readAllStats(@Argument(name="location",description="readout board in format R<nn>/Reb<m>") String location) throws org.lsst.ccs.daq.ims.DAQException
location - Location in raft/board format, "Rorg.lsst.ccs.daq.ims.DAQException@Command(type=ACTION, name="clearAllStats", level=1, description="Read and clear all sets of DAQ stats for location") public String clearAllStats(@Argument(name="location",description="clearout board in format R<nn>/Reb<m>") String location) throws org.lsst.ccs.daq.ims.DAQException
location - Location in raft/board format, "Rorg.lsst.ccs.daq.ims.DAQException@Command(type=ACTION, name="clearStatsAllLocations", level=1, description="Clear all DAQ stats for all locations") public String clearStatsAllLocations() throws org.lsst.ccs.daq.ims.DAQException
org.lsst.ccs.daq.ims.DAQException@Command(type=QUERY, name="readAllRms", level=0, description="Read all DAQ Rms stats") public String readAllRms(@Argument(name="location",description="readout board in format R<nn>/Reb<m>") String location) throws org.lsst.ccs.daq.ims.DAQException
location - Location in raft/board format, "Rorg.lsst.ccs.daq.ims.DAQException@Command(type=QUERY, name="readAllRds", level=0, description="Read all DAQ Rds stats") public String readAllRds(@Argument(name="location",description="readout board in format R<nn>/Reb<m>") String location) throws org.lsst.ccs.daq.ims.DAQException
location - Location in raft/board format, "Rorg.lsst.ccs.daq.ims.DAQException@Command(type=QUERY, name="readAllDriver", level=0, description="Read all DAQ Driver stats") public String readAllDriver(@Argument(name="location",description="readout board in format R<nn>/Reb<m>") String location) throws org.lsst.ccs.daq.ims.DAQException
location - Location in raft/board format, "Rorg.lsst.ccs.daq.ims.DAQException@Command(type=QUERY, name="readAllFirmware", level=0, description="Read all DAQ Firmware stats") public String readAllFirmware(@Argument(name="location",description="readout board in format R<nn>/Reb<m>") String location) throws org.lsst.ccs.daq.ims.DAQException
location - Location in raft/board format, "Rorg.lsst.ccs.daq.ims.DAQException@Command(type=ACTION, name="clearAllRms", level=1, description="Read and clear DAQ Rms stats") public String clearAllRms(@Argument(name="location",description="readout board in format R<nn>/Reb<m>") String location) throws org.lsst.ccs.daq.ims.DAQException
location - Location in raft/board format, "Rorg.lsst.ccs.daq.ims.DAQException@Command(type=ACTION, name="clearAllRds", level=1, description="Read and clear DAQ Rds stats") public String clearAllRds(@Argument(name="location",description="readout board in format R<nn>/Reb<m>") String location) throws org.lsst.ccs.daq.ims.DAQException
location - Location in raft/board format, "Rorg.lsst.ccs.daq.ims.DAQException@Command(type=ACTION, name="clearAllDriver", level=1, description="Read and clear DAQ Driver stats") public String clearAllDriver(@Argument(name="location",description="readout board in format R<nn>/Reb<m>") String location) throws org.lsst.ccs.daq.ims.DAQException
location - Location in raft/board format, "Rorg.lsst.ccs.daq.ims.DAQException@Command(type=ACTION, name="clearAllFirmware", level=1, description="Read and clear DAQ Firmware stats") public String clearAllFirmware(@Argument(name="location",description="readout board in format R<nn>/Reb<m>") String location) throws org.lsst.ccs.daq.ims.DAQException
location - Location in raft/board format, "Rorg.lsst.ccs.daq.ims.DAQException@Command(type=QUERY, name="readRmsStat", level=0, description="read specified DAQ Rms statistic for specified locaation") public String readRmsStat(@Argument(name="location",description="readout board in format R<nn>/Reb<m>") String location, @Argument(name="statistic name") String quantity) throws org.lsst.ccs.daq.ims.DAQException
location - Location in raft/board format, "Rname - Name of requested quantityorg.lsst.ccs.daq.ims.DAQException@Command(type=QUERY, name="readRdsStat", level=0, description="read specified DAQ Rds statistic for specified locaation") public String readRdsStat(@Argument(name="location",description="readout board in format R<nn>/Reb<m>") String location, @Argument(name="statistic name") String quantity) throws org.lsst.ccs.daq.ims.DAQException
location - Location in raft/board format, "Rname - Name of requested quantityorg.lsst.ccs.daq.ims.DAQException@Command(type=QUERY, name="readDriverStat", level=0, description="read specified DAQ Driver statistic for specified locaation") public String readDriverStat(@Argument(name="location",description="readout board in format R<nn>/Reb<m>") String location, @Argument(name="statistic name") String quantity) throws org.lsst.ccs.daq.ims.DAQException
location - Location in raft/board format, "Rname - Name of requested quantityorg.lsst.ccs.daq.ims.DAQException@Command(type=QUERY, name="readFirmwareStat", level=0, description="read specified DAQ Firmware statistic for specified locaation") public String readFirmwareStat(@Argument(name="location",description="readout board in format R<nn>/Reb<m>") String location, @Argument(name="statistic name") String quantity) throws org.lsst.ccs.daq.ims.DAQException
location - Location in raft/board format, "Rname - Name of requested quantityorg.lsst.ccs.daq.ims.DAQExceptionCopyright © 2022 LSST. All rights reserved.