public class MasterItemLogger extends AbstractMasterHandlerImpl
eventAttributes
Constructor and Description |
---|
MasterItemLogger(org.osgi.framework.BundleContext context,
ObjectPoolTracker<MasterItem> poolTracker,
int priority) |
Modifier and Type | Method and Description |
---|---|
protected Event.EventBuilder |
createEvent(WriteRequest request) |
void |
dataUpdate(Map<String,Object> context,
DataItemValue.Builder value)
Called when data changed or the handler chain changed.
|
void |
dispose() |
protected Variant |
formatAttributes(Map<String,Variant> attributes) |
WriteRequestResult |
processWrite(WriteRequest request)
Process the write request
|
void |
update(UserInformation userInformation,
Map<String,String> parameters) |
addItem, createTrackers, getMasterItems, removeItem, reprocess
public MasterItemLogger(org.osgi.framework.BundleContext context, ObjectPoolTracker<MasterItem> poolTracker, int priority) throws org.osgi.framework.InvalidSyntaxException
org.osgi.framework.InvalidSyntaxException
public void dispose()
dispose
in class AbstractMasterHandlerImpl
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 valuepublic void update(UserInformation userInformation, Map<String,String> parameters) throws Exception
update
in class AbstractMasterHandlerImpl
Exception
public WriteRequestResult processWrite(WriteRequest request)
AbstractMasterHandlerImpl
This implementation does nothing and can be overridden by derived implementations.
processWrite
in interface MasterItemHandler
processWrite
in class AbstractMasterHandlerImpl
request
- the write request to handleprotected Event.EventBuilder createEvent(WriteRequest request)
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.