|
AP&C API Reference
|
Defines the contract supported by all supervisable components, which include supervisors themselves. More...
Public Member Functions | |
| void | Initialize (Apac.Configuration.SupervisableConfig config, Supervisors.ISupervisor exec) |
| Initializes the component with the given SupervisableConfig (or derivative) and ISupervisor. 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 Start() will soon be called on the component. This can be used as an opportunity to perform preparatory activity, like checking the state of referenced components and similar actions. More... | |
| void | Start () |
| Starts the component. More... | |
| void | Stop () |
| Stops the component. More... | |
Properties | |
| 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... | |
Events | |
| 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... | |
Defines the contract supported by all supervisable components, which include supervisors themselves.
| void Apac.ISupervisable.CheckReferencesStates | ( | ) |
Checks the states of referenced components to be sure they are satisfactory for this component's operation.
Implemented in Apac.Supervisors.Supervisor, and Apac.Supervisable.
| void Apac.ISupervisable.Initialize | ( | Apac.Configuration.SupervisableConfig | config, |
| Supervisors.ISupervisor | exec | ||
| ) |
Initializes the component with the given SupervisableConfig (or derivative) and ISupervisor.
| config | The configuration used to control the behavior of the component. |
| exec | The supervisor controlling the component. |
| void Apac.ISupervisable.ResolveReferences | ( | ) |
Resolves any references this component might hold to other supervisable components.
Implemented in Apac.Supervisors.Supervisor, and Apac.Supervisable.
| void Apac.ISupervisable.Start | ( | ) |
Starts the component.
Implemented in Apac.Supervisors.Supervisor, and Apac.Supervisable.
| void Apac.ISupervisable.Starting | ( | ) |
Signals that Start() will soon be called on the component. This can be used as an opportunity to perform preparatory activity, like checking the state of referenced components and similar actions.
Implemented in Apac.Supervisors.Supervisor, and Apac.Supervisable.
| void Apac.ISupervisable.Stop | ( | ) |
Stops the component.
Implemented in Apac.Supervisors.Supervisor, and Apac.Supervisable.
|
get |
Gets the current SupervisableState of this component.
|
get |
The description of the component, for human consumption.
|
get |
Walks the tree to find the top level supervisor.
|
get |
Indicates that the component is running.
|
get |
Gets the last exception to have occurred and been trapped by this component.
|
get |
The name of the component, for unique identification purposes.
|
get |
Gets the previous SupervisableState of this component.
|
get |
Indicates if the component should be high priority.
|
get |
Gets the time this supervisable component was started.
|
get |
Gets the time this supervisable component was stopped.
|
get |
Gets the amount of time this supervisable component has been running, or did run before it was stopped (if IsRunning is false).
| SupervisableErroredHandler Apac.ISupervisable.SupervisableErrored |
Notifies listeners that an error occured within the controller.
| SupervisableHeartbeatHandler Apac.ISupervisable.SupervisableHeartbeat |
Notifies listeners that the component is still active.
| SupervisableStateChangedHandler Apac.ISupervisable.SupervisableStateChanged |
Notifies listeners that the state has changed.
| SupervisableStateChangingHandler Apac.ISupervisable.SupervisableStateChanging |
Notifies listeners that the state is about to change.