public abstract class GenericRemoteMonitor extends AbstractMasterHandlerImpl implements MonitorService
| Modifier and Type | Field and Description |
|---|---|
protected EventProcessor |
eventProcessor |
protected Executor |
executor |
protected String |
id |
protected MonitorStatus |
state |
protected Date |
timestamp |
eventAttributes| Constructor and Description |
|---|
GenericRemoteMonitor(org.osgi.framework.BundleContext context,
Executor executor,
ObjectPoolTracker<MasterItem> poolTracker,
int priority,
String id,
EventProcessor eventProcessor) |
addItem, createTrackers, getMasterItems, processWrite, removeItem, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaknprotected final String id
protected MonitorStatus state
protected Date timestamp
protected final EventProcessor eventProcessor
protected final Executor executor
public GenericRemoteMonitor(org.osgi.framework.BundleContext context,
Executor executor,
ObjectPoolTracker<MasterItem> poolTracker,
int priority,
String id,
EventProcessor eventProcessor)
protected void nodeChanged(DataNode node)
protected void setStore(DataStore store)
public void dispose()
dispose in class AbstractMasterHandlerImplpublic String getId()
getId in interface MonitorServiceprotected void setState(MonitorStatus state)
protected void setState(MonitorStatus state, Date timestamp, Date aknTimestamp)
protected static Calendar getTimestamp(DataItemValue.Builder itemValue, String attributeName)
protected abstract void handleUpdate(DataItemValue.Builder itemValue)
public void dataUpdate(Map<String,Object> context, DataItemValue.Builder value)
MasterItemHandlerThe call gets a context object provided which each handler can use to store context information of one calculation run. Each calculation run gets a fresh new context. The context is intended to pass data from one handler to the next.
Although the value parameter is a mutable type, the handler may only make changes inside the dataUpdate method.
dataUpdate in interface MasterItemHandlerdataUpdate in class AbstractMasterHandlerImplcontext - the context objectvalue - the changed valueprotected Event.EventBuilder createEventBuilder()
protected void publishAckRequestEvent(UserInformation user, Date aknTimestamp)
protected DataItemValue.Builder injectState(DataItemValue.Builder builder)
public void addStatusListener(MonitorListener listener)
addStatusListener in interface MonitorServicepublic void removeStatusListener(MonitorListener listener)
removeStatusListener in interface MonitorServiceprotected void reprocess()
reprocess in class AbstractMasterHandlerImplCopyright © 2016 Eclipse NeoSCADA Project. All rights reserved.