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, storePersistentInformationbuildMonitorAttributes, createEvent, getCurrentState, isSuppressEvents, sendEvent, sendEvent, sendEvent, setAttributes, setFailure, setFailure, setInactive, setOk, setState, setStringAttributes, setSuppressEvents, setUnsafe, triggerFailureaddStatusListener, getId, intern, removeStatusListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddStatusListener, getId, removeStatusListenerprotected 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 DataItemMonitordispose in class AbstractPersistentStateMonitorpublic void akn(UserInformation userInformation, Date aknTimestamp)
akn in interface MonitorServiceakn in class AbstractStateMonitorprotected void applyPersistentInformation(PersistentInformation persistentInformation)
applyPersistentInformation in class AbstractStateMonitorpublic void update(UserInformation userInformation, Map<String,String> properties) throws Exception
update in interface DataItemMonitorExceptionprotected 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 AbstractMonitorServiceprotected 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 AbstractStateMonitorCopyright © 2016 Eclipse NeoSCADA Project. All rights reserved.