Class AbstractChartQuery
java.lang.Object
com.inductiveautomation.factorypmi.application.components.chart.easychart.AbstractChartQuery
- All Implemented Interfaces:
IQueryResponseListener
- Direct Known Subclasses:
AbstractSQLQuery,TagDensityHistogramSource,TagHistoryPenDatasource
Base class for all of the easy chart query objects that run through the QueryManager. Holds the Dataset response
object, as well as the target PMIEasyChart object and the query repetition parameters.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected QualityCodeprotected PMIEasyChartprotected Datasetprotected org.apache.log4j.Loggerprotected boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetData()protected abstract StringGenerate a unique string for the query, independent of any values that may change (date ranges, for example.) Used as the "property key" for the quality system in case the query fails.voidvoidvoidhandleQueryReturnedValue(Object value) voidnotifyQueryRunning(boolean loading) protected abstract ObjectregisterQuery(int pollTime, boolean runOnce) Register this query with the QueryManager.protected voidsetChart(PMIEasyChart chart) protected voidvoidshutdown()voidstartup(PMIEasyChart chart) protected void
-
Field Details
-
data
-
chart
-
showWarnings
protected boolean showWarnings -
badQuality
-
log
protected org.apache.log4j.Logger log
-
-
Constructor Details
-
AbstractChartQuery
public AbstractChartQuery()
-
-
Method Details
-
getTargetFullPath
- Specified by:
getTargetFullPathin interfaceIQueryResponseListener
-
warn
-
setChart
-
startup
-
registerQuery
Register this query with the QueryManager. Called by AbstractchartQuery duringstartup(PMIEasyChart)- Returns:
- The key object that the query manager gave back.
-
shutdown
public void shutdown() -
getQuasiPropertyName
Generate a unique string for the query, independent of any values that may change (date ranges, for example.) Used as the "property key" for the quality system in case the query fails. -
notifyQueryRunning
public void notifyQueryRunning(boolean loading) - Specified by:
notifyQueryRunningin interfaceIQueryResponseListener
-
handleQueryReturnedError
- Specified by:
handleQueryReturnedErrorin interfaceIQueryResponseListener
-
handleQueryReturnedValue
- Specified by:
handleQueryReturnedValuein interfaceIQueryResponseListener
-
handleQueryReturnedNoRows
public void handleQueryReturnedNoRows()- Specified by:
handleQueryReturnedNoRowsin interfaceIQueryResponseListener
-
setData
-
getData
-