public abstract class AbstractConfigurableMasterHandlerImpl extends AbstractMasterHandlerImpl
eventAttributes
Constructor and Description |
---|
AbstractConfigurableMasterHandlerImpl(String configurationId,
ObjectPoolTracker<MasterItem> poolTracker,
int priority,
org.osgi.util.tracker.ServiceTracker<ConfigurationAdministrator,ConfigurationAdministrator> caTracker,
String prefix,
String factoryId) |
Modifier and Type | Method and Description |
---|---|
protected String |
getPrefixed(String id,
com.google.common.collect.Interner<String> stringInterner) |
protected abstract WriteAttributeResults |
handleUpdate(Map<String,Variant> attributes,
OperationParameters operationParameters)
This method will be called on write request that have attributes which
match our prefix.
|
WriteRequestResult |
processWrite(WriteRequest request)
Process the write request
|
protected WriteAttributeResults |
updateConfiguration(Map<String,String> data,
Map<String,Variant> attributes,
boolean fullSet,
OperationParameters operationParameters)
Process a CA update using the write attributes
|
protected WriteAttributeResults |
updateConfiguration(Map<String,String> data,
Map<String,Variant> attributes,
boolean fullSet,
OperationParameters operationParameters,
WriteAttributeResults result)
Process a CA update using the write attributes
|
addItem, createTrackers, dataUpdate, dispose, getMasterItems, removeItem, reprocess, update
public AbstractConfigurableMasterHandlerImpl(String configurationId, ObjectPoolTracker<MasterItem> poolTracker, int priority, org.osgi.util.tracker.ServiceTracker<ConfigurationAdministrator,ConfigurationAdministrator> caTracker, String prefix, String factoryId)
protected String getPrefixed(String id, com.google.common.collect.Interner<String> stringInterner)
public WriteRequestResult processWrite(WriteRequest request)
AbstractMasterHandlerImpl
This implementation does nothing and can be overridden by derived implementations.
processWrite
in interface MasterItemHandler
processWrite
in class AbstractMasterHandlerImpl
request
- the write request to handleprotected abstract WriteAttributeResults handleUpdate(Map<String,Variant> attributes, OperationParameters operationParameters) throws Exception
All attributes that are processed must be returned in the result
writeInformation
- the write information of the write requestattributes
- the filtered attributes that match our prefixException
- if anything goes wrongprotected WriteAttributeResults updateConfiguration(Map<String,String> data, Map<String,Variant> attributes, boolean fullSet, OperationParameters operationParameters) throws OperationException
Actually calls
updateConfiguration(Map, Map, boolean, OperationParameters, WriteAttributeResults)
with null
as result
parameter.
OperationException
protected WriteAttributeResults updateConfiguration(Map<String,String> data, Map<String,Variant> attributes, boolean fullSet, OperationParameters operationParameters, WriteAttributeResults result) throws OperationException
Write attribute results will automatically be generated for attributes that match an entry in the data map.
The result
parameter may provide an already filled set with
results for attributes that cannot be automatically filled. Note that the
the attribute named must not be prefixed!
OperationException
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.