| Constructor and Description |
|---|
QueryImpl(ValueSourceManager storage,
ScheduledExecutorService executor,
ScheduledExecutorService eventExecutor,
QueryParameters parameters,
QueryListener listener,
boolean updateData,
Date fixedStartDate,
Date fixedEndDate)
Create a new common query
|
| Modifier and Type | Method and Description |
|---|---|
void |
changeParameters(QueryParameters parameters)
Request a change of parameters
|
void |
changeParameters(QueryParameters parameters,
boolean force) |
void |
close()
Close the query
|
void |
dataChanged(Date start,
Date end) |
boolean |
isUpdateData() |
protected void |
performLoad() |
void |
reload() |
protected boolean |
shouldContinue(QueryParameters queryParameters)
Should the current loading continue
|
void |
updateData(double value,
Date timestamp,
boolean error,
boolean manual) |
public QueryImpl(ValueSourceManager storage, ScheduledExecutorService executor, ScheduledExecutorService eventExecutor, QueryParameters parameters, QueryListener listener, boolean updateData, Date fixedStartDate, Date fixedEndDate)
storage - the value source managerexecutor - a single threaded executor for posting eventseventExecutor - parameters - the initial query parameterslistener - the query listener, must not be nullupdateData - request data updatesfixedStartDate - an optional fixed start date before which all query data is
invalidfixedEndDate - an optional fixed end date after which all query data is
invalidpublic void close()
Querypublic void changeParameters(QueryParameters parameters)
QuerychangeParameters in interface Queryparameters - the new requested parameterspublic void changeParameters(QueryParameters parameters, boolean force)
public void reload()
protected void performLoad()
protected boolean shouldContinue(QueryParameters queryParameters)
queryParameters - public boolean isUpdateData()
public void updateData(double value,
Date timestamp,
boolean error,
boolean manual)
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.