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, reprocesspublic MasterItemLogger(org.osgi.framework.BundleContext context,
ObjectPoolTracker<MasterItem> poolTracker,
int priority)
throws org.osgi.framework.InvalidSyntaxException
org.osgi.framework.InvalidSyntaxExceptionpublic void dispose()
dispose in class AbstractMasterHandlerImplpublic 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 valuepublic void update(UserInformation userInformation, Map<String,String> parameters) throws Exception
update in class AbstractMasterHandlerImplExceptionpublic WriteRequestResult processWrite(WriteRequest request)
AbstractMasterHandlerImplThis implementation does nothing and can be overridden by derived implementations.
processWrite in interface MasterItemHandlerprocessWrite in class AbstractMasterHandlerImplrequest - the write request to handleprotected Event.EventBuilder createEvent(WriteRequest request)
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.