Class SystemProcessWatchdogProcessor

All Implemented Interfaces:
PropertyChangeListener, EventListener, ValueProcessor

public class SystemProcessWatchdogProcessor extends DefaultAlarmProcessor

SystemProcessWatchdogProcessor class.

Author:
igor@scictrl.com
  • Constructor Details

    • SystemProcessWatchdogProcessor

      public SystemProcessWatchdogProcessor()

      Constructor for SystemProcessWatchdogProcessor.

  • Method Details

    • configure

      public void configure(Record record, org.apache.commons.configuration.HierarchicalConfiguration config)
      Configures the internals of value processor, provides reference to parent record and to configuration with root inside processor tag. Parent record is not yet initialized, so does not have reference to Database, the Database reference will be available during activate call.
      Specified by:
      configure in interface ValueProcessor
      Overrides:
      configure in class DefaultAlarmProcessor
      Parameters:
      record - the parent record.
      config - configuration with room inside processor tag.
    • propertyChange

      public void propertyChange(PropertyChangeEvent evt)
      Specified by:
      propertyChange in interface PropertyChangeListener
      Overrides:
      propertyChange in class DefaultAlarmProcessor
    • process

      public void process()
      Called by Database in interval set by the trigger parameter in milliseconds. Not called if trigger in 0.
      Specified by:
      process in interface ValueProcessor
      Overrides:
      process in class AbstractValueProcessor
    • updateAlarmStatus

      public void updateAlarmStatus()

      Alarm processor should check connections and other parameters and update alarm status.

      This method should be called by processor itself, for example from PropertyChange update loop.

      As well could be called by asynchronous update loop, which does the supress_time handling.

      Overrides:
      updateAlarmStatus in class DefaultAlarmProcessor