public abstract class AbstractMasterHandlerImpl extends java.lang.Object implements MasterItemHandler
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.String,Variant> |
eventAttributes |
| Constructor and Description |
|---|
AbstractMasterHandlerImpl( |
AbstractMasterHandlerImpl( |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addItem(MasterItem item) |
protected void |
createTrackers(java.lang.String[] masterIds) |
abstract 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 java.util.Collection<MasterItem> |
getMasterItems()
Get an unmodifiable list of master items
|
WriteRequestResult |
processWrite(WriteRequest request)
Process the write request
|
protected boolean |
removeItem(MasterItem item) |
protected void |
reprocess() |
void |
update(UserInformation userInformation,
java.util.Map<java.lang.String,java.lang.String> parameters) |
public AbstractMasterHandlerImpl(poolTracker)
public AbstractMasterHandlerImpl(poolTracker, int defaultPriority)
public void dispose()
public void update(UserInformation userInformation,
java.util.Map<java.lang.String,java.lang.String> parameters)
throws java.lang.Exception
java.lang.Exceptionprotected void createTrackers(java.lang.String[] masterIds)
protected boolean removeItem(MasterItem item)
protected void addItem(MasterItem item)
protected java.util.Collection<MasterItem> getMasterItems()
protected void reprocess()
public abstract 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 MasterItemHandlercontext - the context objectvalue - the changed valuepublic WriteRequestResult processWrite(WriteRequest request)
This implementation does nothing and can be overridden by derived implementations.
processWrite in interface MasterItemHandlerrequest - the write request to handle
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