
public class DaqStatsMonitor extends Object implements org.lsst.ccs.framework.HasLifecycle, org.lsst.ccs.config.ConfigurationBulkChangeHandler
| 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
|
void |
init()
init phase: open connection to DAQ partition
Also, use first Daq location to verify ConfigurationParameter Lists
|
boolean |
isOnline()
Gets the online state.
|
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
|
void |
validateBulkChange(Map<String,Object> params)
Checks validity of a proposed set of ConfigurationParameters
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait@ConfigurationParameter(isFinal=true,
description="Driver Stats for sums over location")
protected List<String> sumDriverStats
@ConfigurationParameter(isFinal=true,
description="Firmware Stats for sums over location")
protected List<String> sumFirmwareStats
@ConfigurationParameter(isFinal=true,
description="Rds Stats for sums over location")
protected List<String> sumRdsStats
@ConfigurationParameter(isFinal=true,
description="Rms Stats for sums over location")
protected List<String> sumRmsStats
@ConfigurationParameter(isFinal=true,
description="Driver Stats for warnings on sums")
protected List<String> sumDriverChecks
@ConfigurationParameter(isFinal=true,
description="Firmware Stats for warnings on sums")
protected List<String> sumFirmwareChecks
@ConfigurationParameter(isFinal=true,
description="Rds Stats for warnings on sums")
protected List<String> sumRdsChecks
@ConfigurationParameter(isFinal=true,
description="Rms Stats for warnings on sums")
protected List<String> sumRmsChecks
@ConfigurationParameter(description="minimum difference between successive reads to put warning in log") protected Integer minDiffLogWarning
@ConfigurationParameter(description="minimum difference between successive reads to raise Alert at warning level") protected 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 value@Command(type=QUERY, name="readAllStats", 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", description="Read and clear all sets of DAQ stats") 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=QUERY, name="readAllRms", 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", 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", 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", 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", 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", 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", 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", 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", 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", 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", 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", 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.DAQException@Command(name="timestamp", description="Prints current time") public String timestamp()
Copyright © 2020 LSST. All rights reserved.