public class ScriptMonitor.InjectMasterHandler extends MultiMasterHandler
eventAttributes| Constructor and Description |
|---|
ScriptMonitor.InjectMasterHandler(java.lang.String configurationId,
|
| Modifier and Type | Method and Description |
|---|---|
void |
dataUpdate(java.util.Map<java.lang.String,java.lang.Object> context,
DataItemValue.Builder value)
Called when data changed or the handler chain changed.
|
protected WriteAttributeResults |
handleUpdate(java.util.Map<java.lang.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 ScriptMonitor.InjectMasterHandler(java.lang.String configurationId,
poolTracker,
int priority,
caTracker,
java.lang.String prefix,
java.lang.String factoryId)
public void dataUpdate(java.util.Map<java.lang.String,java.lang.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(java.util.Map<java.lang.String,Variant> attributes, OperationParameters operationParameters) throws java.lang.Exception
AbstractConfigurableMasterHandlerImplAll attributes that are processed must be returned in the result
handleUpdate in class AbstractConfigurableMasterHandlerImplattributes - the filtered attributes that match our prefixjava.lang.Exception - if anything goes wrongprotected void reprocess()
reprocess in class AbstractMasterHandlerImpl
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