public class BlockHandlerImpl extends AbstractCommonHandlerImpl
AbstractCommonHandlerImpl.AbstractConfigurationeventAttributes| Constructor and Description |
|---|
BlockHandlerImpl(java.lang.String configurationId,
EventProcessor eventProcessor,
|
| Modifier and Type | Method and Description |
|---|---|
protected Event.EventBuilder |
createEvent(UserInformation user,
java.lang.String message,
java.lang.Object value) |
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 |
injectAttributes(DataItemValue.Builder builder) |
protected void |
processDataUpdate(java.util.Map<java.lang.String,java.lang.Object> context,
DataItemValue.Builder builder) |
WriteRequestResult |
processWrite(WriteRequest request)
Process the write request
|
protected void |
publishEvent(UserInformation user,
java.lang.String message,
java.lang.Object value,
java.lang.String eventType) |
void |
update(UserInformation userInformation,
java.util.Map<java.lang.String,java.lang.String> parameters) |
protected <T> T |
updateValue(UserInformation userInformation,
java.lang.String message,
T newValue,
T oldValue) |
createEventBuilder, dataUpdate, injectEventAttributesgetPrefixed, updateConfiguration, updateConfigurationaddItem, createTrackers, dispose, getMasterItems, removeItem, reprocesspublic BlockHandlerImpl(java.lang.String configurationId,
EventProcessor eventProcessor,
poolTracker,
int priority,
caTracker)
protected void processDataUpdate(java.util.Map<java.lang.String,java.lang.Object> context,
DataItemValue.Builder builder)
throws java.lang.Exception
processDataUpdate in class AbstractCommonHandlerImpljava.lang.Exceptionpublic WriteRequestResult processWrite(WriteRequest request)
AbstractMasterHandlerImplThis implementation does nothing and can be overridden by derived implementations.
processWrite in interface MasterItemHandlerprocessWrite in class AbstractConfigurableMasterHandlerImplrequest - the write request to handlepublic void update(UserInformation userInformation,
java.util.Map<java.lang.String,java.lang.String> parameters)
throws java.lang.Exception
update in class AbstractMasterHandlerImpljava.lang.Exceptionprotected <T> T updateValue(UserInformation userInformation,
java.lang.String message,
T newValue,
T oldValue)
protected void injectAttributes(DataItemValue.Builder builder)
protected 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 publishEvent(UserInformation user,
java.lang.String message,
java.lang.Object value,
java.lang.String eventType)
protected Event.EventBuilder createEvent(UserInformation user, java.lang.String message, java.lang.Object value)
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