public abstract class AbstractMasterItemMonitor extends AbstractPersistentStateMonitor implements DataItemMonitor
Modifier and Type | Field and Description |
---|---|
protected MasterItem |
masterItem |
monitorListeners
Constructor and Description |
---|
AbstractMasterItemMonitor(org.osgi.framework.BundleContext context,
Executor executor,
com.google.common.collect.Interner<String> stringInterner,
ObjectPoolTracker<MasterItem> poolTracker,
EventProcessor eventProcessor,
String id,
String factoryId,
String prefix,
String defaultMonitorType) |
Modifier and Type | Method and Description |
---|---|
void |
akn(UserInformation userInformation,
Date aknTimestamp) |
protected void |
applyPersistentInformation(PersistentInformation persistentInformation) |
void |
dispose() |
protected String |
getConfigurationId()
Return the configuration id that is assigned to this instance
|
protected int |
getDefaultHandlerPriority() |
protected String |
getFactoryId()
Return the factory id that configured this instance
|
protected String |
getPrefix() |
protected void |
handleConfigUpdate(Map<String,String> configUpdate,
Map<String,Variant> attributes,
WriteAttributeResults result) |
protected void |
handleDataUpdate(Map<String,Object> context,
DataItemValue.Builder builder) |
protected void |
injectAttributes(DataItemValue.Builder builder)
Inject attributes to the value after the value update has been performed
using
#performDataUpdate(Builder) |
protected void |
injectEventAttributes(Event.EventBuilder builder) |
protected void |
notifyStateChange(MonitorStatusInformation status) |
protected abstract void |
performDataUpdate(Map<String,Object> context,
DataItemValue.Builder builder) |
protected void |
reprocess() |
protected void |
setPrefix(String prefix) |
void |
update(UserInformation userInformation,
Map<String,String> properties) |
nodeChanged, setDataStore, storePersistentInformation
buildMonitorAttributes, createEvent, getCurrentState, isSuppressEvents, sendEvent, sendEvent, sendEvent, setAttributes, setFailure, setFailure, setInactive, setOk, setState, setStringAttributes, setSuppressEvents, setUnsafe, triggerFailure
addStatusListener, getId, intern, removeStatusListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addStatusListener, getId, removeStatusListener
protected MasterItem masterItem
public AbstractMasterItemMonitor(org.osgi.framework.BundleContext context, Executor executor, com.google.common.collect.Interner<String> stringInterner, ObjectPoolTracker<MasterItem> poolTracker, EventProcessor eventProcessor, String id, String factoryId, String prefix, String defaultMonitorType)
protected void setPrefix(String prefix)
protected String getPrefix()
public void dispose()
dispose
in interface DataItemMonitor
dispose
in class AbstractPersistentStateMonitor
public void akn(UserInformation userInformation, Date aknTimestamp)
akn
in interface MonitorService
akn
in class AbstractStateMonitor
protected void applyPersistentInformation(PersistentInformation persistentInformation)
applyPersistentInformation
in class AbstractStateMonitor
public void update(UserInformation userInformation, Map<String,String> properties) throws Exception
update
in interface DataItemMonitor
Exception
protected int getDefaultHandlerPriority()
protected void handleDataUpdate(Map<String,Object> context, DataItemValue.Builder builder)
protected abstract void performDataUpdate(Map<String,Object> context, DataItemValue.Builder builder)
protected String getFactoryId()
protected String getConfigurationId()
protected void notifyStateChange(MonitorStatusInformation status)
notifyStateChange
in class AbstractMonitorService
protected void injectAttributes(DataItemValue.Builder builder)
#performDataUpdate(Builder)
builder
- the builder to use for changing informationprotected void reprocess()
protected void handleConfigUpdate(Map<String,String> configUpdate, Map<String,Variant> attributes, WriteAttributeResults result)
protected void injectEventAttributes(Event.EventBuilder builder)
injectEventAttributes
in class AbstractStateMonitor
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.