public class MasterItemLogger extends AbstractMasterHandlerImpl
eventAttributes| Constructor and Description |
|---|
MasterItemLogger(BundleContext context,
|
| Modifier and Type | Method and Description |
|---|---|
protected Event.EventBuilder |
createEvent(WriteRequest request) |
void |
dataUpdate(java.util.Map<java.lang.String,java.lang.Object> context,
DataItemValue.Builder value)
Called when data changed or the handler chain changed.
|
void |
dispose() |
protected Variant |
formatAttributes(java.util.Map<java.lang.String,Variant> attributes) |
WriteRequestResult |
processWrite(WriteRequest request)
Process the write request
|
void |
update(UserInformation userInformation,
java.util.Map<java.lang.String,java.lang.String> parameters) |
addItem, createTrackers, getMasterItems, removeItem, reprocesspublic MasterItemLogger(BundleContext context,
poolTracker,
int priority)
throws InvalidSyntaxException
InvalidSyntaxExceptionpublic void dispose()
dispose in class AbstractMasterHandlerImplpublic 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 valuepublic void update(UserInformation userInformation,
java.util.Map<java.lang.String,java.lang.String> parameters)
throws java.lang.Exception
update in class AbstractMasterHandlerImpljava.lang.Exceptionpublic 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 Variant formatAttributes(java.util.Map<java.lang.String,Variant> attributes)
protected Event.EventBuilder createEvent(WriteRequest request)
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