public class HistoricalItemImpl extends Object implements HistoricalItem, DataSourceListener
| Constructor and Description |
|---|
HistoricalItemImpl(HistoricalItemInformation itemInformation,
String masterId,
org.osgi.framework.BundleContext context) |
HistoricalItemImpl(String id,
Map<String,Variant> attributes,
String masterId,
org.osgi.framework.BundleContext context) |
| Modifier and Type | Method and Description |
|---|---|
Query |
createQuery(QueryParameters parameters,
QueryListener listener,
boolean updateData)
Create a new query
|
HistoricalItemInformation |
getInformation()
Get the item information
|
protected void |
setDataSource(DataSource service) |
protected void |
setStorage(StorageHistoricalItem service) |
void |
start() |
void |
stateChanged(DataItemValue value) |
void |
stop() |
void |
update(Map<String,String> properties) |
public HistoricalItemImpl(HistoricalItemInformation itemInformation, String masterId, org.osgi.framework.BundleContext context) throws org.osgi.framework.InvalidSyntaxException
org.osgi.framework.InvalidSyntaxExceptionprotected void setDataSource(DataSource service)
protected void setStorage(StorageHistoricalItem service)
public void start()
throws org.osgi.framework.InvalidSyntaxException
org.osgi.framework.InvalidSyntaxExceptionpublic void stop()
public Query createQuery(QueryParameters parameters, QueryListener listener, boolean updateData)
HistoricalItemcreateQuery in interface HistoricalItemparameters - the initial query parameterslistener - the query listenerupdateData - if true then additional updates will be made by
the query when
data changes although the query is QueryState.COMPLETEnull if the query could be be
createdpublic HistoricalItemInformation getInformation()
HistoricalItemgetInformation in interface HistoricalItempublic void stateChanged(DataItemValue value)
stateChanged in interface DataSourceListenerCopyright © 2016 Eclipse NeoSCADA Project. All rights reserved.