public class ScriptMonitor.InjectMasterHandler extends MultiMasterHandler
eventAttributes
Constructor and Description |
---|
InjectMasterHandler(String configurationId,
ObjectPoolTracker<MasterItem> poolTracker,
int priority,
org.osgi.util.tracker.ServiceTracker<ConfigurationAdministrator,ConfigurationAdministrator> caTracker,
String prefix,
String factoryId) |
Modifier and Type | Method and Description |
---|---|
void |
dataUpdate(Map<String,Object> context,
DataItemValue.Builder value)
Called when data changed or the handler chain changed.
|
protected WriteAttributeResults |
handleUpdate(Map<String,Variant> attributes,
OperationParameters operationParameters)
This method will be called on write request that have attributes which
match our prefix.
|
protected void |
reprocess() |
getPrefixed, processWrite, updateConfiguration, updateConfiguration
addItem, createTrackers, dispose, getMasterItems, removeItem, update
public InjectMasterHandler(String configurationId, ObjectPoolTracker<MasterItem> poolTracker, int priority, org.osgi.util.tracker.ServiceTracker<ConfigurationAdministrator,ConfigurationAdministrator> caTracker, String prefix, String factoryId)
public void dataUpdate(Map<String,Object> context, DataItemValue.Builder value)
MasterItemHandler
The 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 MasterItemHandler
dataUpdate
in class AbstractMasterHandlerImpl
context
- the context objectvalue
- the changed valueprotected WriteAttributeResults handleUpdate(Map<String,Variant> attributes, OperationParameters operationParameters) throws Exception
AbstractConfigurableMasterHandlerImpl
All attributes that are processed must be returned in the result
handleUpdate
in class AbstractConfigurableMasterHandlerImpl
attributes
- the filtered attributes that match our prefixException
- if anything goes wrongprotected void reprocess()
reprocess
in class AbstractMasterHandlerImpl
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.