public abstract class AbstractMasterItemMonitor extends AbstractPersistentStateMonitor implements DataItemMonitor
| Modifier and Type | Field and Description |
|---|---|
protected MasterItem |
masterItem |
monitorListeners| Constructor and Description |
|---|
AbstractMasterItemMonitor(BundleContext context,
java.util.concurrent.Executor executor,
|
| Modifier and Type | Method and Description |
|---|---|
void |
akn(UserInformation userInformation,
java.util.Date aknTimestamp) |
protected void |
applyPersistentInformation(PersistentInformation persistentInformation) |
void |
dispose() |
protected java.lang.String |
getConfigurationId()
Return the configuration id that is assigned to this instance
|
protected int |
getDefaultHandlerPriority() |
protected java.lang.String |
getFactoryId()
Return the factory id that configured this instance
|
protected java.lang.String |
getPrefix() |
protected void |
handleConfigUpdate(java.util.Map<java.lang.String,java.lang.String> configUpdate,
java.util.Map<java.lang.String,Variant> attributes,
WriteAttributeResults result) |
protected void |
handleDataUpdate(java.util.Map<java.lang.String,java.lang.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(java.util.Map<java.lang.String,java.lang.Object> context,
DataItemValue.Builder builder) |
protected void |
reprocess() |
protected void |
setPrefix(java.lang.String prefix) |
void |
update(UserInformation userInformation,
java.util.Map<java.lang.String,java.lang.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(BundleContext context,
java.util.concurrent.Executor executor,
stringInterner,
poolTracker,
EventProcessor eventProcessor,
java.lang.String id,
java.lang.String factoryId,
java.lang.String prefix,
java.lang.String defaultMonitorType)
protected void setPrefix(java.lang.String prefix)
protected java.lang.String getPrefix()
public void dispose()
dispose in interface DataItemMonitordispose in class AbstractPersistentStateMonitorpublic void akn(UserInformation userInformation,
java.util.Date aknTimestamp)
akn in interface MonitorServiceakn in class AbstractStateMonitorprotected void applyPersistentInformation(PersistentInformation persistentInformation)
applyPersistentInformation in class AbstractStateMonitorpublic void update(UserInformation userInformation,
java.util.Map<java.lang.String,java.lang.String> properties)
throws java.lang.Exception
update in interface DataItemMonitorjava.lang.Exceptionprotected int getDefaultHandlerPriority()
protected void handleDataUpdate(java.util.Map<java.lang.String,java.lang.Object> context,
DataItemValue.Builder builder)
protected abstract void performDataUpdate(java.util.Map<java.lang.String,java.lang.Object> context,
DataItemValue.Builder builder)
protected java.lang.String getFactoryId()
protected java.lang.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(java.util.Map<java.lang.String,java.lang.String> configUpdate,
java.util.Map<java.lang.String,Variant> attributes,
WriteAttributeResults result)
protected void injectEventAttributes(Event.EventBuilder builder)
injectEventAttributes in class AbstractStateMonitor
Copyright (c) IBH SYSTEMS GmbH and others 2010, 2013.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0