|
virtual IEnumerable< ControllerDescriptor > | GetDescriptors () |
| Gets the descriptors for the controller, which might include more than one due to some architectures that can have more than one input board, or addressable source, for use during measurement configuration. More...
|
|
bool | IsLicensed (LicensedFeatures feature) |
| Checks to see if an individual feature is licensed, based on the stored response. More...
|
|
void | Dispose () |
| Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. More...
|
|
void | Initialize (Apac.Configuration.SupervisableConfig config, Supervisors.ISupervisor supervisor) |
| Initializes the controller from configuration. More...
|
|
void | ResolveReferences () |
| Resolves any references this component might hold to other supervisable components. More...
|
|
void | CheckReferencesStates () |
| Checks the states of referenced components to be sure they are satisfactory for this component's operation. More...
|
|
void | Starting () |
| Signals that the component will be starting on its own thread. This implementation uses this opportunity to CheckReferencesStates, change state to Starting, and signal subclasses with OnStarting. More...
|
|
void | Start () |
| Starts the component. More...
|
|
void | Stop () |
| Stops the component. More...
|
|
void | Initialize (Apac.Configuration.SupervisableConfig config, Supervisors.ISupervisor exec) |
| Initializes the component with the given SupervisableConfig (or derivative) and ISupervisor. More...
|
|
abstract int | NumReadings [get] |
| Gets the num readings expected by the subclass. More...
|
|
ulong[] | SensorIds [get] |
| Gets the identification numbers of the sensors that are actively available to the controller. This helps with system discovery and setup. More...
|
|
ushort | Resolution [get] |
| Gets the resolution value, not number of bits. IE: 4096 == 16 bits. More...
|
|
ushort | PollFrequency [get] |
| Gets the poll frequency (in seconds). More...
|
|
ushort | DelayDuration [get] |
| Gets the duration of the delay (in milliseconds). More...
|
|
abstract LicensedFeatures | Features [get] |
| Gets the licensed features used by this component. See the LicensedFeatures flags enumeration. More...
|
|
AcquisitionResponse | LicenseResponse [get] |
| Gets the license response previously obtained with CheckLicense(). More...
|
|
string | Name [get] |
| Gets the name of the controller, as specified by configuration. Note that if the name is not specified, then an index will be used. More...
|
|
string | Description [get] |
| Gets the description of the controller, as specified by configuration. More...
|
|
bool | Prioritized [get] |
| Indicates if the supervisable component should be executed on a higher thread priority. More...
|
|
DateTime | LastHeartbeat [get] |
| The time of the last heartbeat. More...
|
|
Supervisors.ISupervisor | ExecutiveSupervisor [get] |
| Walks the tree to find the top level supervisor. More...
|
|
bool | IsRunning [get] |
| Gets a value indicating whether this instance is running. More...
|
|
SupervisableState | CurrentState [get] |
| Gets the current overall state of the controller. More...
|
|
SupervisableState | PreviousState [get] |
| Gets the previous overall state of the controller. More...
|
|
Exception | LastException [get] |
| Gets the last exception encountered within the controller. More...
|
|
DateTime | StartTime [get] |
| Gets the time this supervisable component was started. More...
|
|
DateTime | StopTime [get] |
| Gets the time this supervisable component was stopped. More...
|
|
TimeSpan | UpTime [get] |
| Gets the amount of time this supervisable component has been running, or did run before it was stopped (if IsRunning is false ). More...
|
|
Supervisors.ISupervisor | Supervisor [get] |
| Gets the supervisor. More...
|
|
SupervisableConfig | Config [get] |
| The configuration object used by the supervisable component. More...
|
|
log4net.ILog | Log [get] |
| Lazy-initialized logger for subclass usage. More...
|
|
string | Name [get] |
| The name of the component, for unique identification purposes. More...
|
|
string | Description [get] |
| The description of the component, for human consumption. More...
|
|
bool | Prioritized [get] |
| Indicates if the component should be high priority. More...
|
|
Supervisors.ISupervisor | ExecutiveSupervisor [get] |
| Walks the tree to find the top level supervisor. More...
|
|
bool | IsRunning [get] |
| Indicates that the component is running. More...
|
|
DateTime | LastHeartbeat [get] |
|
DateTime | StartTime [get] |
| Gets the time this supervisable component was started. More...
|
|
DateTime | StopTime [get] |
| Gets the time this supervisable component was stopped. More...
|
|
TimeSpan | UpTime [get] |
| Gets the amount of time this supervisable component has been running, or did run before it was stopped (if IsRunning is false ). More...
|
|
SupervisableState | CurrentState [get] |
| Gets the current SupervisableState of this component. More...
|
|
SupervisableState | PreviousState [get] |
| Gets the previous SupervisableState of this component. More...
|
|
Exception | LastException [get] |
| Gets the last exception to have occurred and been trapped by this component. More...
|
|
ushort | Resolution [get] |
| Gets the resolution value, not number of bits. IE: 4096 == 16 bits. More...
|
|
ulong[] | SensorIds [get] |
| Gets the identification numbers of the sensors that are actively available to the controller. This helps with system discovery and setup. More...
|
|
ushort | PollFrequency [get] |
| Gets the poll frequency (in seconds). More...
|
|
ushort | DelayDuration [get] |
| Gets the duration of the delay (in milliseconds). More...
|
|
SupervisableStateChangingHandler | SupervisableStateChanging |
| Notifies listeners that the state is about to change. More...
|
|
SupervisableStateChangedHandler | SupervisableStateChanged |
| Notifies listeners that the state has changed. More...
|
|
SupervisableErroredHandler | SupervisableErrored |
| Notifies listeners that an error occured within the controller. More...
|
|
SupervisableHeartbeatHandler | SupervisableHeartbeat |
| Notifies listeners that the component is still active. More...
|
|
SupervisableStateChangingHandler | SupervisableStateChanging |
| Notifies listeners that the state is about to change. More...
|
|
SupervisableStateChangedHandler | SupervisableStateChanged |
| Notifies listeners that the state has changed. More...
|
|
SupervisableErroredHandler | SupervisableErrored |
| Notifies listeners that an error occured within the controller. More...
|
|
SupervisableHeartbeatHandler | SupervisableHeartbeat |
| Notifies listeners that the component is still active. More...
|
|
A controller that utilizes the HTTP protocol to obtain information.
The initial implementation just does a polling cycle based on the URLs in configuration. Later iterations should be able to handle listening as a server as well, since the parsing will be offloaded to subclasses. In those cases, we just need to wire up whatever DTO handler(s) is needed and it poke the controller with the payload of the HTTP request it receives.
- See also
- Apac.Control.ThreadedPollingController<T>