public class MetaPointLocatorRT extends PointLocatorRT implements DataPointListener
Modifier and Type | Class and Description |
---|---|
(package private) class |
MetaPointLocatorRT.ExecutionDelayTimeout |
(package private) class |
MetaPointLocatorRT.ScheduledUpdateTimeout |
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,IDataPoint> |
context |
protected DataPointRT |
dataPoint |
private MetaDataSourceRT |
dataSource |
(package private) boolean |
initialized |
(package private) java.lang.Boolean |
LOCK |
private static int |
MAX_RECURSION |
private static java.lang.ThreadLocal<java.util.List<java.lang.Integer>> |
threadLocal |
(package private) com.serotonin.timer.AbstractTimer |
timer |
(package private) com.serotonin.timer.TimerTask |
timerTask |
(package private) MetaPointLocatorVO |
vo |
Constructor and Description |
---|
MetaPointLocatorRT(MetaPointLocatorVO vo) |
Modifier and Type | Method and Description |
---|---|
(package private) long |
calculateTimeout(long time) |
private void |
createContext() |
(package private) void |
execute(long runtime,
java.util.List<java.lang.Integer> sourceIds) |
MetaPointLocatorVO |
getPointLocatorVO() |
protected void |
handleError(long runtime,
com.serotonin.web.i18n.LocalizableMessage message) |
void |
initialize(com.serotonin.timer.AbstractTimer timer,
MetaDataSourceRT dataSource,
DataPointRT dataPoint) |
protected void |
initializeTimerTask() |
(package private) boolean |
isContextCreated() |
boolean |
isSettable() |
void |
pointBackdated(PointValueTime value)
This method is called when a backdated value is received.
|
void |
pointChanged(PointValueTime oldValue,
PointValueTime newValue)
This method is called every time the point gets a value that is different from its previous value (except for its
initialization).
|
void |
pointInitialized()
This method is called for all existing listeners when the point is initialized.
|
void |
pointSet(PointValueTime oldValue,
PointValueTime newValue)
This method is called every time the point gets set, whether the value changes or not.
|
void |
pointTerminated()
This method is called when the point has been terminated, allowing listeners to react as necessary.
|
void |
pointUpdated(PointValueTime newValue)
This method is called every time the point gets a value from somewhere (except for its initialization).
|
void |
terminate() |
protected void |
updatePoint(PointValueTime pvt) |
isRelinquishable
private static final java.lang.ThreadLocal<java.util.List<java.lang.Integer>> threadLocal
private static final int MAX_RECURSION
final java.lang.Boolean LOCK
final MetaPointLocatorVO vo
com.serotonin.timer.AbstractTimer timer
private MetaDataSourceRT dataSource
protected DataPointRT dataPoint
protected java.util.Map<java.lang.String,IDataPoint> context
boolean initialized
com.serotonin.timer.TimerTask timerTask
public MetaPointLocatorRT(MetaPointLocatorVO vo)
public boolean isSettable()
isSettable
in class PointLocatorRT
public MetaPointLocatorVO getPointLocatorVO()
boolean isContextCreated()
public void initialize(com.serotonin.timer.AbstractTimer timer, MetaDataSourceRT dataSource, DataPointRT dataPoint)
protected void initializeTimerTask()
public void terminate()
public void pointChanged(PointValueTime oldValue, PointValueTime newValue)
DataPointListener
pointChanged
in interface DataPointListener
public void pointSet(PointValueTime oldValue, PointValueTime newValue)
DataPointListener
pointSet
in interface DataPointListener
public void pointUpdated(PointValueTime newValue)
DataPointListener
pointUpdated
in interface DataPointListener
public void pointBackdated(PointValueTime value)
DataPointListener
pointBackdated
in interface DataPointListener
public void pointInitialized()
DataPointListener
pointInitialized
in interface DataPointListener
public void pointTerminated()
DataPointListener
pointTerminated
in interface DataPointListener
long calculateTimeout(long time)
void execute(long runtime, java.util.List<java.lang.Integer> sourceIds)
private void createContext()
protected void updatePoint(PointValueTime pvt)
protected void handleError(long runtime, com.serotonin.web.i18n.LocalizableMessage message)