Class ConfigurationStatistics

java.lang.Object
ch.psi.wica.config.ConfigurationStatistics
All Implemented Interfaces:
StatisticsCollectable

@Component @ThreadSafe public class ConfigurationStatistics extends Object implements StatisticsCollectable
Provides statistics related to the configuration of this Wica Server.
  • Constructor Details

    • ConfigurationStatistics

      public ConfigurationStatistics(@Value("${wica.test-logging-on-startup}") Boolean testLoggingOnStartup, @Value("${wica.epics-ca-library-monitor-notifier-impl}") String epicsCaLibraryMonitorNotifierImpl, @Value("${wica.epics-ca-library-debug-level}") Integer epicsCaLibraryDebugLevel, @Value("${wica.channel-resource-release-interval-in-secs}") Integer channelResourceReleaseIntervalInSecs, @Value("${wica.channel-publish-monitor-restarts}") Boolean channelPublishMonitorRestarts, @Value("${wica.channel-publish-poller-restarts}") Boolean channelPublishPollerRestarts, @Value("${wica.channel-monitored-value-buffer-size}") Integer channelMonitoredValueBufferSize, @Value("${wica.channel-publish-channel-value-initial-state}") Boolean channelPublishChannelValueInitialState, @Value("${wica.channel-publish-channel-metadata-initial-state}") Boolean channelPublishChannelMetadataInitialState, @Value("${wica.channel-polled-value-buffer-size}") Integer channelPolledValueBufferSize, @Value("${wica.channel-get-timeout-interval-in-ms}") Integer channelGetTimeoutIntervalInMs, @Value("${wica.channel-get-numeric-scale}") Integer channelGetNumericScale, @Value("${wica.channel-get-value-default-fields-of-interest}") String channelGetValueDefaultFieldsOfInterest, @Value("${wica.channel-get-metadata-default-fields-of-interest}") String channelGetMetadataDefaultFieldsOfInterest, @Value("${wica.channel-put-timeout-interval-in-ms}") Integer channelPutTimeoutIntervalInMs, @Value("${wica.stream-quote-numeric-strings}") Boolean streamQuoteNumericStrings, @Value("${wica.stream-metadata-fields-of-interest}") String streamMetadataFieldsOfInterest, @Value("${wica.cors-allowed-origin-patterns}") String corsAllowedOriginPatterns)
      Creates a new instance based on the supplied configuration values.
      Parameters:
      testLoggingOnStartup - whether to perform logging test on startup.
      epicsCaLibraryMonitorNotifierImpl - the CA library configuration for channel monitors.
      epicsCaLibraryDebugLevel - the CA library debug level.
      channelResourceReleaseIntervalInSecs - the period for releasing resources that are no longer in use.
      channelPublishMonitorRestarts - policy for publishing monitor restarts.
      channelPublishPollerRestarts - policy for publishin poller restarts.
      channelMonitoredValueBufferSize - the number of values that can be held in the monitored value buffer.
      channelPublishChannelValueInitialState - whether a channel's initial value will be published as DISCONNECTED when a channel is first created.
      channelPublishChannelMetadataInitialState - whether a channel's initial metadata will be published as UNKNOWN when a channel is first created.
      channelPolledValueBufferSize - the number of values that can be held in the control system polled value buffer before older values start getting thrown away.
      channelGetTimeoutIntervalInMs - the default timeout in milliseconds to be applied when getting the current value of a wica channel.
      channelGetNumericScale - the default number of digits after the decimal point when getting the current value of a wica channel.
      channelGetValueDefaultFieldsOfInterest - semicolon separated list specifying the default names of the fields that will be returned when getting the current value of a wica channel.
      channelGetMetadataDefaultFieldsOfInterest - semicolon separated list specifying the default names of the fields that will be returned when getting the metadata associated with a wica channel.
      channelPutTimeoutIntervalInMs - the default timeout in milliseconds to be applied when putting a new value to a wica channel.
      streamQuoteNumericStrings - whether strict JSON compliance should be used when serializing NaN and Infinity values (=true) or whether JSON5 serialization compliance is acceptable (=false).
      streamMetadataFieldsOfInterest - the fields of interest that should be serialized when sending the channel metadata.
      corsAllowedOriginPatterns - which origin patterns must be present in the http request header in order for a request to be accepted.
  • Method Details