public class MasterItemImpl extends AbstractDataSourceHandler implements MasterItem
MASTER_IDDATA_SOURCE_ID| Constructor and Description |
|---|
MasterItemImpl(Executor executor,
org.osgi.framework.BundleContext context,
String id,
ObjectPoolTracker<DataSource> dataSourcePoolTracker) |
| Modifier and Type | Method and Description |
|---|---|
void |
addHandler(MasterItemHandler handler,
int priority)
Add a new sub condition
|
void |
dispose() |
protected void |
doReprocess()
Re-process with the same source value
|
protected Executor |
getExecutor()
Return the executor to use for sending out events
|
protected void |
handleProcess()
handle the processing
|
protected WriteAttributeResults |
mergeResults(WriteAttributeResults firstResult,
WriteAttributeResults secondResult)
Merge the two result sets
|
protected DataItemValue |
processHandler(DataItemValue value) |
void |
removeHandler(MasterItemHandler handler)
remove sub condition
|
void |
reprocess() |
NotifyFuture<WriteAttributeResults> |
startWriteAttributes(Map<String,Variant> attributes,
OperationParameters operationParameters) |
NotifyFuture<WriteResult> |
startWriteValue(Variant value,
OperationParameters operationParameters) |
protected void |
stateChanged(DataItemValue value) |
String |
toString() |
void |
update(Map<String,String> properties) |
getDataSource, setDataSource, setDataSourceaddListener, removeListener, updateDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddListener, removeListenerpublic MasterItemImpl(Executor executor, org.osgi.framework.BundleContext context, String id, ObjectPoolTracker<DataSource> dataSourcePoolTracker) throws org.osgi.framework.InvalidSyntaxException
org.osgi.framework.InvalidSyntaxExceptionprotected Executor getExecutor()
AbstractDataSourcegetExecutor in class AbstractDataSourcenullpublic void dispose()
dispose in class AbstractDataSourceHandlerpublic void addHandler(MasterItemHandler handler, int priority)
MasterItemaddHandler in interface MasterItemhandler - new condition to addpublic void reprocess()
reprocess in interface MasterItemprotected void doReprocess()
protected void handleProcess()
value - the source valueprotected void stateChanged(DataItemValue value)
stateChanged in class AbstractDataSourceHandlerpublic void removeHandler(MasterItemHandler handler)
MasterItemremoveHandler in interface MasterItemprotected DataItemValue processHandler(DataItemValue value)
public NotifyFuture<WriteResult> startWriteValue(Variant value, OperationParameters operationParameters)
startWriteValue in interface DataSourcepublic NotifyFuture<WriteAttributeResults> startWriteAttributes(Map<String,Variant> attributes, OperationParameters operationParameters)
startWriteAttributes in interface DataSourceprotected WriteAttributeResults mergeResults(WriteAttributeResults firstResult, WriteAttributeResults secondResult)
firstResult - first setsecondResult - second setpublic void update(Map<String,String> properties) throws org.osgi.framework.InvalidSyntaxException
org.osgi.framework.InvalidSyntaxExceptionCopyright © 2016 Eclipse NeoSCADA Project. All rights reserved.