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
FieldsModifier and TypeFieldDescriptionprotected gov.aps.jca.dbr.TimeStampTimestamp of last value access.protected gov.aps.jca.dbr.TimeStampTaimestamp of value.protected ObjectInternal storage of main value.Fields inherited from class org.scictrl.csshell.epics.server.processor.AbstractValueProcessor
log, record, trigger, type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanInternal set: sets new value to this processor.voidactivate()voidconfigure(org.scictrl.csshell.epics.server.Record record, org.apache.commons.configuration.HierarchicalConfiguration config) gov.aps.jca.dbr.TimeStampReturns timestamp of last attempt to change value, regardless if value was actually changed and notify event fired.gov.aps.jca.dbr.TimeStampgetValue()doublegetValueAsDouble.intgetValueAsInt.voidprocess()voidThis 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
-
Field Details
-
value
Internal storage of main value. -
timestamp
protected gov.aps.jca.dbr.TimeStamp timestampTaimestamp of value. -
lastAccessTimestamp
protected gov.aps.jca.dbr.TimeStamp lastAccessTimestampTimestamp of last value access.
-
-
Constructor Details
-
HTTPPullValueProcessor
public HTTPPullValueProcessor()Constructor for HTTPPullValueProcessor.
-
-
Method Details
-
getTimestamp
public gov.aps.jca.dbr.TimeStamp getTimestamp() -
setValue
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
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 settimestamp- a longnotify- iftruefire notify event if value was change,falsesuppresses 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
-
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:
configurein interfaceorg.scictrl.csshell.epics.server.ValueProcessor- Overrides:
configurein classorg.scictrl.csshell.epics.server.processor.AbstractValueProcessor
-
activate
public void activate()- Specified by:
activatein interfaceorg.scictrl.csshell.epics.server.ValueProcessor- Overrides:
activatein classorg.scictrl.csshell.epics.server.processor.AbstractValueProcessor
-
process
public void process()- Specified by:
processin interfaceorg.scictrl.csshell.epics.server.ValueProcessor- Overrides:
processin classorg.scictrl.csshell.epics.server.processor.AbstractValueProcessor
-