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
Modifier and TypeFieldDescriptionprotected 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
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Internal set: sets new value to this processor.void
activate()
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
getValue()
double
getValueAsDouble.int
getValueAsInt.void
process()
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
-
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
- iftrue
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
-
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 interfaceorg.scictrl.csshell.epics.server.ValueProcessor
- Overrides:
configure
in classorg.scictrl.csshell.epics.server.processor.AbstractValueProcessor
-
activate
public void activate()- Specified by:
activate
in interfaceorg.scictrl.csshell.epics.server.ValueProcessor
- Overrides:
activate
in classorg.scictrl.csshell.epics.server.processor.AbstractValueProcessor
-
process
public void process()- Specified by:
process
in interfaceorg.scictrl.csshell.epics.server.ValueProcessor
- Overrides:
process
in classorg.scictrl.csshell.epics.server.processor.AbstractValueProcessor
-