public class MasterItemImpl extends AbstractDataSourceHandler implements MasterItem
MASTER_ID
DATA_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, setDataSource
addListener, removeListener, updateData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addListener, removeListener
public MasterItemImpl(Executor executor, org.osgi.framework.BundleContext context, String id, ObjectPoolTracker<DataSource> dataSourcePoolTracker) throws org.osgi.framework.InvalidSyntaxException
org.osgi.framework.InvalidSyntaxException
protected Executor getExecutor()
AbstractDataSource
getExecutor
in class AbstractDataSource
null
public void dispose()
dispose
in class AbstractDataSourceHandler
public void addHandler(MasterItemHandler handler, int priority)
MasterItem
addHandler
in interface MasterItem
handler
- new condition to addpublic void reprocess()
reprocess
in interface MasterItem
protected void doReprocess()
protected void handleProcess()
value
- the source valueprotected void stateChanged(DataItemValue value)
stateChanged
in class AbstractDataSourceHandler
public void removeHandler(MasterItemHandler handler)
MasterItem
removeHandler
in interface MasterItem
protected DataItemValue processHandler(DataItemValue value)
public NotifyFuture<WriteResult> startWriteValue(Variant value, OperationParameters operationParameters)
startWriteValue
in interface DataSource
public NotifyFuture<WriteAttributeResults> startWriteAttributes(Map<String,Variant> attributes, OperationParameters operationParameters)
startWriteAttributes
in interface DataSource
protected 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.InvalidSyntaxException
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.