Encapsulates the callout logic needed to plug in a presentation layer to the ECOP query client. Create one of these, providing it the update frequency, the query criteria, and the method handle to update the presentation layer, and the control to be updated. This class will be sure to marshal back to the control thread as necessary because the QueryClient is multi-threaded and the callback will occur on a different thread from that on which the UI control was created.
More...
|
| MeasurementQueryRequest (int pollFrequency, Apac.Data.MeasurementQueryCriteria criteria, TimeSpan advanceInterval, System.Windows.Forms.Control control) |
|
| MeasurementQueryRequest (int pollFrequency, Apac.Data.MeasurementQueryCriteria criteria, TimeSpan advanceInterval, MeasurementsReadyHandler uiUpdateMethod, System.Windows.Forms.Control control) |
|
void | MeasurementsReady (IMeasurementPresenter self, Apac.Collections.TimeTrackingList< Apac.Monitoring.Measurements > measurements) |
| The callback used to notify the presenter that the measurements have been retrieved. More...
|
|
| QueryController (int pollFrequency, T criteria, TimeSpan advanceInterval, System.Windows.Forms.Control control) |
|
|
override void | OnStatusChanged () |
|
override void | OnRunStateChanged () |
|
|
MeasurementsReadyHandler | Update [get, set] |
|
System.Windows.Forms.Control | Control [get] |
|
int | PollFrequencyMS [get, set] |
|
T | QueryCriteria [get] |
|
TimeSpan | AdvanceInterval [get] |
| Gets the size of the time interval used to advance the query on each sequential poll. More...
|
|
PresenterState | Status [get, set] |
|
bool | Running [get] |
|
int | PollFrequencyMS [get, set] |
| Gets or sets frequency at which the measurements are to be polled. Allowing a set here allows for different scenarios in startup polling and long-term polling to be accomplished with the same presenter instance. More...
|
|
TimeSpan | AdvanceInterval [get] |
| Gets the size of the time interval used to advance the query on each sequential poll. More...
|
|
MeasurementQueryCriteria | QueryCriteria [get] |
| The criteria to be used when polling for measurements. More...
|
|
MeasurementsReadyHandler | Update [get, set] |
| Delegate property used to set the callout routine that gets invoked when measurements have been fetched from the server. More...
|
|
PresenterState | Status [get, set] |
| The current status of the polling thread for the presenter. See PresenterState. More...
|
|
bool | Running [get] |
| Indicates if the polling thread for the presenter is in the running mode or not. More...
|
|
|
MeasurementPresenterStateChangedHandler | StatusChanged |
|
MeasurementPresenterRunStateChangedHandler | RunStateChanged |
|
MeasurementPresenterStateChangedHandler | StatusChanged |
| Notification that the status of the presenter has changed. More...
|
|
MeasurementPresenterRunStateChangedHandler | RunStateChanged |
| Notification that the running state of the presenter has changed. More...
|
|
Encapsulates the callout logic needed to plug in a presentation layer to the ECOP query client. Create one of these, providing it the update frequency, the query criteria, and the method handle to update the presentation layer, and the control to be updated. This class will be sure to marshal back to the control thread as necessary because the QueryClient is multi-threaded and the callback will occur on a different thread from that on which the UI control was created.
◆ MeasurementsReady()
The callback used to notify the presenter that the measurements have been retrieved.
- Parameters
-
measurements | The requested measurements. |
Implements Apac.Ecop.IMeasurementPresenter.
The documentation for this class was generated from the following file:
- /var/lib/jenkins/workspace/apac/APAC/Ecop/MeasurementQueryRequest.cs