public class MasterItemImpl extends AbstractDataSourceHandler implements MasterItem
MASTER_IDDATA_SOURCE_ID| Constructor and Description |
|---|
MasterItemImpl(java.util.concurrent.Executor executor,
BundleContext context,
java.lang.String id,
|
| 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 java.util.concurrent.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() |
|
startWriteAttributes(java.util.Map<java.lang.String,Variant> attributes,
OperationParameters operationParameters) |
|
startWriteValue(Variant value,
OperationParameters operationParameters) |
protected void |
stateChanged(DataItemValue value) |
java.lang.String |
toString() |
void |
update(java.util.Map<java.lang.String,java.lang.String> properties) |
getDataSource, setDataSource, setDataSourceaddListener, removeListener, updateDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddListener, removeListenerpublic MasterItemImpl(java.util.concurrent.Executor executor,
BundleContext context,
java.lang.String id,
dataSourcePoolTracker)
throws InvalidSyntaxException
InvalidSyntaxExceptionprotected java.util.concurrent.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)
publicstartWriteValue(Variant value, OperationParameters operationParameters)
startWriteValue in interface DataSourcepublicstartWriteAttributes(java.util.Map<java.lang.String,Variant> attributes, OperationParameters operationParameters)
startWriteAttributes in interface DataSourceprotected WriteAttributeResults mergeResults(WriteAttributeResults firstResult, WriteAttributeResults secondResult)
firstResult - first setsecondResult - second setpublic void update(java.util.Map<java.lang.String,java.lang.String> properties)
throws InvalidSyntaxException
InvalidSyntaxExceptionpublic java.lang.String toString()
toString in class java.lang.Object
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