public class ManualHandlerImpl extends AbstractCommonHandlerImpl
This processor allows manually overriding a value. All processors further in the chain will received the overridden information if this handler is active.
If a manual override is active the following things will happen in the value chain:
SubscriptionState.CONNECTED
and
there will be no subscription errorokand the original attributs will be renamed
When the manul override is removed the following things will happen in the value chain:
The idea of the timestamp handling is that manual overrides advance the timestamp as well and indicate a newer value, but also do go back in history once the value is cleared.
Modifier and Type | Class and Description |
---|---|
static class |
ManualHandlerImpl.ManualStateData |
AbstractCommonHandlerImpl.AbstractConfiguration
eventAttributes
Constructor and Description |
---|
ManualHandlerImpl(String configurationId,
EventProcessor eventProcessor,
ObjectPoolTracker<MasterItem> poolTracker,
int priority,
org.osgi.util.tracker.ServiceTracker<ConfigurationAdministrator,ConfigurationAdministrator> caTracker) |
Modifier and Type | Method and Description |
---|---|
protected WriteAttributeResults |
handleUpdate(Map<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(Map<String,Object> context,
DataItemValue.Builder builder) |
void |
update(UserInformation userInformation,
Map<String,String> parameters) |
createEventBuilder, dataUpdate, injectEventAttributes
getPrefixed, processWrite, updateConfiguration, updateConfiguration
addItem, createTrackers, dispose, getMasterItems, removeItem, reprocess
public ManualHandlerImpl(String configurationId, EventProcessor eventProcessor, ObjectPoolTracker<MasterItem> poolTracker, int priority, org.osgi.util.tracker.ServiceTracker<ConfigurationAdministrator,ConfigurationAdministrator> caTracker)
protected void processDataUpdate(Map<String,Object> context, DataItemValue.Builder builder) throws Exception
processDataUpdate
in class AbstractCommonHandlerImpl
Exception
public void update(UserInformation userInformation, Map<String,String> parameters) throws Exception
update
in class AbstractMasterHandlerImpl
Exception
protected void injectAttributes(DataItemValue.Builder builder)
protected WriteAttributeResults handleUpdate(Map<String,Variant> attributes, OperationParameters operationParameters) throws Exception
AbstractConfigurableMasterHandlerImpl
All attributes that are processed must be returned in the result
handleUpdate
in class AbstractConfigurableMasterHandlerImpl
attributes
- the filtered attributes that match our prefixException
- if anything goes wrongCopyright © 2016 Eclipse NeoSCADA Project. All rights reserved.