Class HTTPPullValueProcessor

java.lang.Object
org.scictrl.csshell.epics.server.processor.AbstractValueProcessor
org.scictrl.csshell.epics.server.bpm.HTTPPullValueProcessor
All Implemented Interfaces:
org.scictrl.csshell.epics.server.ValueProcessor

public class HTTPPullValueProcessor extends org.scictrl.csshell.epics.server.processor.AbstractValueProcessor

HTTPPullValueProcessor class.

Author:
igor@scictrl.com
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected gov.aps.jca.dbr.TimeStamp
    Timestamp of last value access.
    protected gov.aps.jca.dbr.TimeStamp
    Taimestamp of value.
    protected Object
    Internal storage of main value.

    Fields inherited from class org.scictrl.csshell.epics.server.processor.AbstractValueProcessor

    log, record, trigger, type
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor for HTTPPullValueProcessor.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
    _setValue(Number value, long timestamp, boolean notify)
    Internal set: sets new value to this processor.
    void
    void
    configure(org.scictrl.csshell.epics.server.Record record, org.apache.commons.configuration.HierarchicalConfiguration config)
    gov.aps.jca.dbr.TimeStamp
    Returns timestamp of last attempt to change value, regardless if value was actually changed and notify event fired.
    gov.aps.jca.dbr.TimeStamp
    double
    getValueAsDouble.
    int
    getValueAsInt.
    void
    void
    This method is used by remote EPICS entity or other record within same Database.

    Methods inherited from class org.scictrl.csshell.epics.server.processor.AbstractValueProcessor

    getName, getRecord, getTrigger, getType, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • value

      protected Object value
      Internal storage of main value.
    • timestamp

      protected gov.aps.jca.dbr.TimeStamp timestamp
      Taimestamp of value.
    • lastAccessTimestamp

      protected gov.aps.jca.dbr.TimeStamp lastAccessTimestamp
      Timestamp of last value access.
  • Constructor Details

    • HTTPPullValueProcessor

      public HTTPPullValueProcessor()

      Constructor for HTTPPullValueProcessor.

  • Method Details

    • getTimestamp

      public gov.aps.jca.dbr.TimeStamp getTimestamp()
    • setValue

      public void setValue(Object value)
      This method is used by remote EPICS entity or other record within same Database. By definition calling setValue must always update value, because further processing must be triggered.
    • _setValue

      protected boolean _setValue(Number value, long timestamp, boolean notify)
      Internal set: sets new value to this processor. It checks if it is fixed, it never sets fixed value. Fires value update event only if value was changes and notify is true. If force is true, then updates value and fires notify, if notify is true, even if value was not changed. If the value is not an array it tries to convert it to a single element array. Updates timestamp and count on record when changing value. If required fires notify event.
      Parameters:
      value - value to be set
      timestamp - a long
      notify - if true fire notify event if value was change, false suppresses events
      Returns:
      true if value was updated, regardless if based on difference or force
    • getValueAsInt

      public int getValueAsInt()

      getValueAsInt.

      Returns:
      a int
    • getValueAsDouble

      public double getValueAsDouble()

      getValueAsDouble.

      Returns:
      a double
    • getValue

      public Object getValue()
    • getLastAccessTimestamp

      public gov.aps.jca.dbr.TimeStamp getLastAccessTimestamp()
      Returns timestamp of last attempt to change value, regardless if value was actually changed and notify event fired.
      Returns:
      timestamp of last attempt to change value regardless of success
    • configure

      public void configure(org.scictrl.csshell.epics.server.Record record, org.apache.commons.configuration.HierarchicalConfiguration config)
      Specified by:
      configure in interface org.scictrl.csshell.epics.server.ValueProcessor
      Overrides:
      configure in class org.scictrl.csshell.epics.server.processor.AbstractValueProcessor
    • activate

      public void activate()
      Specified by:
      activate in interface org.scictrl.csshell.epics.server.ValueProcessor
      Overrides:
      activate in class org.scictrl.csshell.epics.server.processor.AbstractValueProcessor
    • process

      public void process()
      Specified by:
      process in interface org.scictrl.csshell.epics.server.ValueProcessor
      Overrides:
      process in class org.scictrl.csshell.epics.server.processor.AbstractValueProcessor