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, updateConfigurationaddItem, createTrackers, dispose, getMasterItems, removeItem, updatepublic 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)
MasterItemHandlerThe 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 MasterItemHandlerdataUpdate in class AbstractMasterHandlerImplcontext - the context objectvalue - the changed valueprotected WriteAttributeResults handleUpdate(Map<String,Variant> attributes, OperationParameters operationParameters) throws Exception
AbstractConfigurableMasterHandlerImplAll attributes that are processed must be returned in the result
handleUpdate in class AbstractConfigurableMasterHandlerImplattributes - the filtered attributes that match our prefixException - if anything goes wrongprotected void reprocess()
reprocess in class AbstractMasterHandlerImplCopyright © 2016 Eclipse NeoSCADA Project. All rights reserved.