public class ScriptMonitor extends AbstractPersistentStateMonitor
Modifier and Type | Class and Description |
---|---|
class |
ScriptMonitor.InjectMasterHandler |
monitorListeners
Constructor and Description |
---|
ScriptMonitor(String id,
String factoryId,
Executor executor,
org.osgi.framework.BundleContext context,
com.google.common.collect.Interner<String> stringInterner,
EventProcessor eventProcessor,
ObjectPoolTracker<DataSource> dataSourcePoolTracker,
ObjectPoolTracker<MasterItem> masterItemPoolTracker,
org.osgi.util.tracker.ServiceTracker<ConfigurationAdministrator,ConfigurationAdministrator> caTracker) |
Modifier and Type | Method and Description |
---|---|
protected void |
applyPersistentInformation(PersistentInformation persistentInformation) |
DataItemValue |
dataUpdate(Map<String,Object> context,
DataItemValue.Builder builder) |
void |
dispose() |
protected void |
evaluate(Map<String,DataItemValue> values) |
protected void |
handleChange(Map<String,DataSourceHandler> sources) |
protected void |
notifyStateChange(MonitorStatusInformation state) |
protected void |
setFailure(Variant value,
Long valueTimestamp,
Severity severity,
boolean requireAck) |
void |
update(UserInformation userInformation,
Map<String,String> properties) |
nodeChanged, setDataStore, storePersistentInformation
akn, buildMonitorAttributes, createEvent, getCurrentState, injectEventAttributes, isSuppressEvents, sendEvent, sendEvent, sendEvent, setAttributes, setFailure, setInactive, setOk, setState, setStringAttributes, setSuppressEvents, setUnsafe, triggerFailure
addStatusListener, getId, intern, removeStatusListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addStatusListener, akn, getId, removeStatusListener
public ScriptMonitor(String id, String factoryId, Executor executor, org.osgi.framework.BundleContext context, com.google.common.collect.Interner<String> stringInterner, EventProcessor eventProcessor, ObjectPoolTracker<DataSource> dataSourcePoolTracker, ObjectPoolTracker<MasterItem> masterItemPoolTracker, org.osgi.util.tracker.ServiceTracker<ConfigurationAdministrator,ConfigurationAdministrator> caTracker)
public void dispose()
dispose
in interface DataItemMonitor
dispose
in class AbstractPersistentStateMonitor
protected void notifyStateChange(MonitorStatusInformation state)
notifyStateChange
in class AbstractMonitorService
protected void applyPersistentInformation(PersistentInformation persistentInformation)
applyPersistentInformation
in class AbstractStateMonitor
public void update(UserInformation userInformation, Map<String,String> properties) throws Exception
Exception
public DataItemValue dataUpdate(Map<String,Object> context, DataItemValue.Builder builder)
protected void handleChange(Map<String,DataSourceHandler> sources)
protected void evaluate(Map<String,DataItemValue> values)
protected void setFailure(Variant value, Long valueTimestamp, Severity severity, boolean requireAck)
setFailure
in class AbstractStateMonitor
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.