AP&C API Reference
|
Implements a (hopefully) data provider agnostic store for keeping ECOP data in an RDBMS. The goal here is to provide a data store implementation that can be used to scale ECOP from its current scope to an enterprise scope by altering the RDBMS underneath. The nirvana is a one-class-for-all-RDBMS-systems but that is not practical due to the different SQL syntax details, so the basic framework exists in this class and the formulation of the SQL exists in a class for each specific RDMBS system. This should at least reduce the amount of code and the behavioral differences between the different types of systems. More...
Public Member Functions | |
List< Threshold > | GetThresholds (uint elementId) |
Gets the thresholds. More... | |
bool | PersistThreshold (Threshold threshold) |
Persists the threshold. More... | |
EventDef | GetEventDef (uint eventId) |
Gets the event def. More... | |
List< EventDef > | GetEventDefs () |
Gets all event defs. More... | |
bool | PersistEventDef (EventDef eventDef) |
Persists the event def. More... | |
void | DeleteEventDef (EventDef eventDef) |
Deletes the event def. More... | |
List< ActionDef > | GetActions (uint elementId, uint eventId) |
Gets the actions. More... | |
List< ActionDef > | GetActions () |
Gets all actions. More... | |
bool | PersistAction (ActionDef action) |
Persists the action. More... | |
void | DeleteAction (ActionDef action) |
Deletes the action. More... | |
void | DeleteActions (EventDef eventDef) |
Deletes the actions associated with the event def. More... | |
void | DeleteSensor (Sensor sensor) |
Deletes the sensor. More... | |
void | PersistSensor (Sensor sensor) |
Perists the sensor. More... | |
void | ActivateCurrentConfiguration () |
Promotes configuration changes that have been persisted to the runtime environment. This allows simple edits by the user to result in atomic commits of each change without reloading the entire system before all edits are complete. More... | |
void | SaveConfiguration (Apac.Settings.Configuration newConfig, bool activate) |
Saves the given configuration to the data store. More... | |
bool | PersistManagedElement (Apac.Monitoring.ManagedElement element) |
Creates or updates the given element in the datastore for use in setting up mappings to incoming data. More... | |
void | DeleteManagedElement (Apac.Monitoring.ManagedElement element) |
Removes the given element from the datastore. More... | |
List< ManagedElement > | GetManagedElements () |
Retrieves the managed elements in the system. More... | |
Apac.Monitoring.ManagedElement | GetManagedElement (uint id) |
Retrieves the managed element specified by id . More... | |
bool | PersistMeasurementMapping (MeasurementMapping mapping, MeasurementMapping oldmapping) |
Should write the given mapping to the store. More... | |
bool | PersistMeasurementMappings (Apac.Collections.MeasurementMappingCollection mappings) |
Writes the given mappings to the data store. More... | |
bool | ChangeActiveConfiguration (string name) |
Changes the active set of mappings to be the one with the name name . More... | |
Apac.Settings.Configuration | GetConfiguration (string name) |
Gets the configuration. More... | |
Apac.Settings.Configuration | GetConfiguration (short id) |
Gets the configuration. More... | |
Apac.Collections.MeasurementMappingCollection | GetMeasurementMappings (short configid) |
Gets the mappings for configuration with ID of configid . More... | |
Apac.Collections.MeasurementMappingCollection | GetMeasurementMappings (string name) |
Gets the mappings for configuration named name . More... | |
List< Apac.Monitoring.MeasurementMapping > | LookupMappings (uint elementId) |
Gets a mapping for the requested element from the active mapping set. More... | |
List< Apac.Monitoring.MeasurementMapping > | LookupMappings (MeasurementSource source) |
Looks up the mapping by sensor source. More... | |
void | DeleteConfiguration (string name) |
Deletes the configuration with name . More... | |
void | DeleteMeasurementMapping (MeasurementMapping mapping) |
Deletes the given mapping from the store. More... | |
Apac.Collections.MeasurementMappingCollection | CloneMeasurementMappings (string origName, string copyName) |
Creates a copy of the mappings named origName in a configuration named copyName . More... | |
Sensor | GetSensor (uint id) |
Gets the sensor with the specified ID. More... | |
List< Sensor > | GetSensors (short configId, bool activeOnly) |
Gets all sensors. More... | |
List< Auth.User > | GetUsers (Logic.PredicateSet filter) |
Gets the users that match filter . More... | |
Logic.WhyBool | CreateUser (Auth.User user) |
Creates the user in the data store. This routine assumes the the data is valid and the password has already been hashed and salted and applied to the user object. More... | |
Logic.WhyBool | DeleteUser (int id) |
Deletes the user with id . More... | |
Logic.WhyBool | UpdateUser (Auth.User user) |
Updates the user and associations to look like user . More... | |
List< Auth.NotificationGroup > | GetNotificationGroups () |
Gets all notification groups. More... | |
Logic.WhyBool | CreateNotificationGroup (string name, ref Auth.NotificationGroup group) |
Creates a notification group with name . More... | |
WhyBool | UpdateNotificationGroup (NotificationGroup ng) |
Updates the notificaton group. More... | |
Logic.WhyBool | DeleteNotificationGroup (short id) |
Deletes the notification group with id . More... | |
![]() | |
ThreadedMeasurementStore () | |
Default constructor. More... | |
override object | InitializeLifetimeService () |
Obtains a lifetime service object to control the lifetime policy for this instance. More... | |
void | RecordAlerts (Alerts alerts) |
Should records the alerts. More... | |
void | RecordAlerts (Alerts alerts, StoreAccessCompleteHandler callout) |
Should records the alerts, will call back on callout . More... | |
void | RetrieveAlerts (bool activeOnly, StoreAccessCompleteHandler callout) |
Should retrieve the alerts. More... | |
void | RecordMeasurements (Measurements measurements) |
Enqueues the given averages for the raw data thread to record. More... | |
void | RecordMeasurements (Measurements measurements, StoreAccessCompleteHandler callout) |
Enqueues the given averages for the raw data thread to record. More... | |
void | RecordFiveMinAverages (WeightedMeasurementAvgs averages) |
Enqueues the given averages for the 5-minute thread to record. More... | |
void | RecordFiveMinAverages (WeightedMeasurementAvgs averages, StoreAccessCompleteHandler callout) |
Enqueues the given averages for the 5-minute thread to record. More... | |
void | RecordHourlyAverages (WeightedMeasurementAvgs averages) |
Enqueues the given averages for the hourly thread to record. More... | |
void | RecordHourlyAverages (WeightedMeasurementAvgs averages, StoreAccessCompleteHandler callout) |
Enqueues the given averages for the hourly thread to record. More... | |
void | RecordDailyAverages (WeightedMeasurementAvgs averages) |
Enqueues the given averages for the daily thread to record. More... | |
void | RecordDailyAverages (WeightedMeasurementAvgs averages, StoreAccessCompleteHandler callout) |
Enqueues the given averages for the daily thread to record. More... | |
void | RecordMonthlyAverages (WeightedMeasurementAvgs averages) |
Enqueues the given averages for the monthly thread to record. More... | |
void | RecordMonthlyAverages (WeightedMeasurementAvgs averages, StoreAccessCompleteHandler callout) |
Enqueues the given averages for the monthly thread to record. More... | |
TimeTrackingList< Measurements > | FetchMeasurements (MeasurementQueryCriteria criteria) |
Retrieves measurements according to the given criteria. More... | |
TimeTrackingList< Monitoring.WeightedMeasurementAvgs > | FetchFiveMinuteAverages (MeasurementQueryCriteria criteria) |
Retrieves five minute averages according to the given criteria. More... | |
TimeTrackingList< Monitoring.WeightedMeasurementAvgs > | FetchHourlyAverages (MeasurementQueryCriteria criteria) |
Retrieves hourly averages according to the given criteria. More... | |
TimeTrackingList< Monitoring.WeightedMeasurementAvgs > | FetchDailyAverages (MeasurementQueryCriteria criteria) |
Retrieves daily averages according to the given criteria. More... | |
TimeTrackingList< Monitoring.WeightedMeasurementAvgs > | FetchMonthlyAverages (MeasurementQueryCriteria criteria) |
Retrieves monthly averages according to the given criteria. More... | |
void | Initialize (Apac.Configuration.DataStoreConfig config) |
Starts the inheritance call chain for initializing the data store. More... | |
void | Open () |
Prompts the store to prepare for recording and fetching data. More... | |
void | Close () |
Prompts the store to clean up its resources used for recording and fetching data. More... | |
void | Dispose () |
![]() | |
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... | |
![]() | |
void | Initialize (Configuration.DataStoreConfig config) |
![]() | |
void | RecordAlerts (Monitoring.Alerts alerts) |
Should records the alerts. More... | |
void | RecordAlerts (Monitoring.Alerts alerts, StoreAccessCompleteHandler callout) |
Should records the alerts, will call back on callout . More... | |
void | RecordMeasurements (Monitoring.Measurements measurements) |
Should record raw measurements in the given bucket. More... | |
void | RecordFiveMinAverages (Monitoring.WeightedMeasurementAvgs averages) |
Should record the given averages to the given 5-minute store. More... | |
void | RecordHourlyAverages (Monitoring.WeightedMeasurementAvgs averages) |
Should record the given averages to the given 5-minute store. More... | |
void | RecordDailyAverages (Monitoring.WeightedMeasurementAvgs averages) |
Should record the given averages to the given daily store. More... | |
void | RecordMonthlyAverages (Monitoring.WeightedMeasurementAvgs averages) |
Should record the given averages to the given monthy store. More... | |
void | RecordMeasurements (Monitoring.Measurements measurements, StoreAccessCompleteHandler callout) |
Should record raw measurements in the given bucket and call out to the delegate when complete. More... | |
void | RecordFiveMinAverages (Monitoring.WeightedMeasurementAvgs averages, StoreAccessCompleteHandler callout) |
Should record the given averages to the given 5-minute store and call out to the delegate when complete. More... | |
void | RecordHourlyAverages (Monitoring.WeightedMeasurementAvgs averages, StoreAccessCompleteHandler callout) |
Should record the given averages to the given 5-minute store and call out to the delegate when complete. More... | |
void | RecordDailyAverages (Monitoring.WeightedMeasurementAvgs averages, StoreAccessCompleteHandler callout) |
Should record the given averages to the given daily store and call out to the delegate when complete. More... | |
void | RecordMonthlyAverages (Monitoring.WeightedMeasurementAvgs averages, StoreAccessCompleteHandler callout) |
Should record the given averages to the given monthy store and call out to the delegate when complete. More... | |
![]() | |
bool | PersistManagedElement (Apac.Monitoring.ManagedElement element) |
Should create or update the given element in the datastore for use in setting up mappings to incoming data. More... | |
void | DeleteManagedElement (Apac.Monitoring.ManagedElement element) |
Should remove the given element from the datastore. More... | |
bool | PersistMeasurementMappings (Apac.Collections.MeasurementMappingCollection mappings) |
Should write the given mappings to a location where they will remain pending until they are promoted. More... | |
void | SaveConfiguration (Settings.Configuration config, bool activate) |
Should save the given configuration to the data store. More... | |
bool | PersistThreshold (Monitoring.Threshold threshold) |
Perists the threshold. More... | |
bool | PersistEventDef (Monitoring.EventDef eventDef) |
Persistes the event def. More... | |
void | DeleteEventDef (Monitoring.EventDef eventDef) |
Deletes the event def. More... | |
bool | PersistAction (Monitoring.ActionDef action) |
Persists the action. More... | |
void | DeleteAction (Monitoring.ActionDef action) |
Deletes the action. More... | |
void | DeleteActions (Monitoring.EventDef eventDef) |
Deletes the actions associated with the event def. More... | |
void | PersistSensor (Monitoring.Sensor sensor) |
Persists the sensor. More... | |
void | DeleteSensor (Monitoring.Sensor sensor) |
Deletes the sensor. More... | |
![]() | |
List< User > | GetUsers (PredicateSet filter) |
Gets the users that match filter . More... | |
WhyBool | CreateUser (User user) |
Validates the inputs and creates the user. This routine assumes the password has already been hashed and salted and applied to the user object. More... | |
WhyBool | UpdateUser (User user) |
Updates the user and associations to look like user . More... | |
WhyBool | CreateNotificationGroup (string name, ref NotificationGroup group) |
Creates a notification group with name . More... | |
Protected Member Functions | |
override void | OnInitializeDataStore (DataStoreConfig config) |
Called when [initialize data store]. More... | |
override TimeTrackingList< WeightedMeasurementAvgs > | OnFetchDailyAverages (MeasurementQueryCriteria criteria) |
Called when [fetch daily averages]. More... | |
override TimeTrackingList< WeightedMeasurementAvgs > | OnFetchFiveMinuteAverages (MeasurementQueryCriteria criteria) |
Called when [fetch five minute averages]. More... | |
override TimeTrackingList< WeightedMeasurementAvgs > | OnFetchHourlyAverages (MeasurementQueryCriteria criteria) |
Called when [fetch hourly averages]. More... | |
override TimeTrackingList< Measurements > | OnFetchMeasurements (MeasurementQueryCriteria criteria) |
Called when [fetch measurements]. More... | |
override TimeTrackingList< WeightedMeasurementAvgs > | OnFetchMonthlyAverages (MeasurementQueryCriteria criteria) |
Called when [fetch monthly averages]. More... | |
override void | OnWriteDailyAvgs (WeightedMeasurementAvgs averages) |
Called when [write daily avgs]. More... | |
override void | OnWriteFiveMinuteAvgs (WeightedMeasurementAvgs averages) |
Called when [write five minute avgs]. More... | |
override void | OnWriteHourlyAvgs (WeightedMeasurementAvgs averages) |
Called when [write hourly avgs]. More... | |
override void | OnWriteMeasurements (Measurements measurements) |
Called when [write measurements]. More... | |
override void | OnWriteMonthlyAvgs (WeightedMeasurementAvgs averages) |
Called when [write monthly avgs]. More... | |
override void | OnPruneRawMeasurements (DateTime cutoffDay) |
Called when [prune raw measurements]. More... | |
override void | OnOpen () |
Called when [open]. More... | |
override void | OnClose () |
Called when [close]. More... | |
override void | OnWriteAlerts (Alerts alerts) |
Called when [write alerts]. More... | |
override Alerts | OnRetrieveAlerts (bool activeOnly) |
Called when [retrieve alerts]. More... | |
virtual void | updateMeasurementCache (Measurements measurements) |
Updates the measurement cache. More... | |
virtual void | OnSettingsChanged () |
Called when [settings changed]. More... | |
abstract DbCommand | OnFormulateInsertMeasurementMappings (DbConnection connection, MeasurementMappingCollection mappings) |
Should build a command that insert the set of mappings. More... | |
abstract DbCommand | OnFormulateUpdateMeasurementMappings (DbConnection connection, MeasurementMappingCollection mappings) |
Should build a command that updates the set of mappings. More... | |
abstract DbCommand | OnFormulateMergeSetting (DbConnection connection, string name, string value, short configid) |
Should build a command that updates the settings. More... | |
abstract DbCommand | OnFormulateInsertManagedElement (DbConnection connection, ManagedElement element) |
Should build a command that insert the managed element. More... | |
abstract DbCommand | OnFormulateUpdateManagedElement (DbConnection connection, ManagedElement element) |
Should build a command that update the managed element. More... | |
abstract DbCommand | OnFormulateGetConfigId (DbConnection connection, string name) |
Should build a command that returns the identifier for the configuration with name . More... | |
abstract DbCommand | OnFormulateCheckForManagedElement (DbConnection connection, uint id) |
Should build a command that returns the count of elements with id . More... | |
abstract DbCommand | OnFormulateFetchMeasurementMappings (DbConnection connection, short configid) |
Should build a command that returns the data set containing all mappings in configuration 'configid ', and the associated managed element data (using a JOIN). More... | |
abstract DbCommand | OnFormulateCheckForMeasurementMapping (DbConnection connection, short configid, uint elementid, ulong sensorid, uint sourceElementId, decimal constantValue, string inputTag) |
Should build a command that returns the count of mappings matching configid , elementid , sensorid , sourceElementId , constantValue , and inputTag ,. More... | |
abstract DbCommand | OnFormulateInsertMeasurementMapping (DbConnection connection, MeasurementMapping mapping) |
Should build a command that creates the mapping specified. More... | |
abstract DbCommand | OnFormulateUpdateMeasurementMapping (DbConnection connection, MeasurementMapping oldmapping, MeasurementMapping newmapping) |
Should build a command that updates the mapping specified. More... | |
abstract DbCommand | OnFormulateUpdateMeasurementMapping (DbConnection connection, MeasurementMapping mapping) |
Should build a command that updates the mapping specified, using the ID. More... | |
abstract DbCommand | OnFormulateFetchManagedElement (DbConnection connection, uint id) |
Should build a command that returns the data set containing all columns for the requested managed element. More... | |
abstract DbCommand | OnFormulateFetchManagedElements (DbConnection connection) |
Should build a command that returns the data set containing all columns for all managed elements in the data store. More... | |
abstract DbCommand | OnFormulateFetchMappedManagedElements (DbConnection connection, short configid) |
Should build a command that returns the data set containing all columns for all managed elements in the data store that are mapping within the given configuration. More... | |
abstract DbCommand | OnFormulateDeleteManagedElement (DbConnection connection, ManagedElement element) |
Should build a command that removes element from the data store. More... | |
abstract DbCommand | OnFormulateDeleteMeasurements (DbConnection connection, ManagedElement element) |
Should build a command that removes measurements for element from the data store. More... | |
abstract DbCommand | OnFormulateDeleteWeightedAverages (DbConnection connection, ManagedElement element) |
Should build a command that removes averages for element from the data store. More... | |
abstract DbCommand | OnFormulateDeleteMapping (DbConnection connection, MeasurementMapping mapping) |
Should build a a command that removes mapping from the data store. More... | |
abstract DbCommand | OnFormulateDeleteMappings (DbConnection connection, ManagedElement element) |
Should build a command that removes all MeasurementMappings associated with element . More... | |
abstract DbCommand | OnFormulateCreateConfig (DbConnection connection, string name) |
Should build a command that creates a new configuration instance with name . More... | |
abstract DbCommand | OnFormulateDeleteConfig (DbConnection connection, short id) |
Should build a command that deletes the configuration instance with id . More... | |
abstract DbCommand | OnFormulateSetActiveConfig (DbConnection connection, short id) |
Should 'flip the active bit' to the configuration named id . More... | |
abstract DbCommand | OnFormulateGetEcopConfigs (DbConnection connection) |
Should build a command that returns all configuration instances (shallow). More... | |
abstract DbCommand | OnFormulateGetEcopConfig (DbConnection connection, string name) |
Should build a command that returns the requested configuration instance (shallow). More... | |
abstract DbCommand | OnFormulateGetActiveEcopConfig (DbConnection connection) |
Should build a command that returns the active configuration instance (shallow). More... | |
abstract DbCommand | OnFormulateGetEcopConfig (DbConnection connection, short id) |
Should build a command that returns the requested configuration instance (shallow). More... | |
abstract DbCommand | OnFormulateGetEcopSettings (DbConnection connection, short configId) |
Should build a command that returns all settings for the configuration instance with configId . More... | |
abstract DbCommand | OnFormulateFetchMeasurements (DbConnection connection, MeasurementQueryCriteria criteria) |
Should build a command that returns all measurements matching the conditions in criteria . More... | |
abstract DbCommand | OnFormulateFetchFiveMinAvgs (DbConnection connection, MeasurementQueryCriteria criteria) |
Should build a command that returns all five-minute averages matching the conditions in criteria . More... | |
abstract DbCommand | OnFormulateFetchHourlyAvgs (DbConnection connection, MeasurementQueryCriteria criteria) |
Should build a command that returns all hourly averages matching the conditions in criteria . More... | |
abstract DbCommand | OnFormulateFetchDailyAvgs (DbConnection connection, MeasurementQueryCriteria criteria) |
Should build a command that returns all daily averages matching the conditions in criteria . More... | |
abstract DbCommand | OnFormulateFetchMonthlyAvgs (DbConnection connection, MeasurementQueryCriteria criteria) |
Should build a command that returns all monthly averages matching the conditions in criteria . More... | |
abstract DbCommand | OnFormulateWriteMeasurements (DbConnection connection, Measurements measurements) |
Should build a command that writes the measurements in measurements . More... | |
abstract DbCommand | OnFormulateHasMeasurements (DbConnection connection, uint elementid) |
Should build a ccmmand that returns at least one row if the given element has measurements in the data store. More... | |
abstract DbCommand | OnFormulateHasAverages (DbConnection connection, uint elementid) |
Should build a ccmmand that returns at least one row if the given element has averages in the data store. More... | |
abstract DbCommand | OnFormulateWriteFiveMinAvgs (DbConnection connection, WeightedMeasurementAvgs avgs) |
Should build a command that writes the averages in avgs . More... | |
abstract DbCommand | OnFormulateWriteHourlyAvgs (DbConnection connection, WeightedMeasurementAvgs avgs) |
Should build a command that writes the averages in avgs . More... | |
abstract DbCommand | OnFormulateWriteDailyAvgs (DbConnection connection, WeightedMeasurementAvgs avgs) |
Should build a command that writes the averages in avgs . More... | |
abstract DbCommand | OnFormulateWriteMonthlyAvgs (DbConnection connection, WeightedMeasurementAvgs avgs) |
Should build a command that writes the averages in avgs . More... | |
abstract DbCommand | OnFormulateCheckForThreshold (DbConnection connection, uint elementId) |
Should build a command that returns the count of thresholds with the element id. More... | |
abstract DbCommand | OnFormulateFetchThresholds (DbConnection connection, uint elementId) |
Should build a command that returns all thresholds with the element id. More... | |
abstract DbCommand | OnFormulateUpdateThreshold (DbConnection connection, Threshold threshold) |
Should build a command that updates the threshold. More... | |
abstract DbCommand | OnFormulateInsertThreshold (DbConnection connection, Threshold threshold) |
Should build a command that inserts the threshold. More... | |
abstract DbCommand | OnFormulateDeleteThresholds (DbConnection connection, ManagedElement element) |
Should build a command that deletes all thresholds associated to the element. More... | |
abstract DbCommand | OnFormulateCheckForEventDef (DbConnection connection, uint eventDefId) |
Should build a command that returns the count of event defs with the id. More... | |
abstract DbCommand | OnFormulateFetchEventDef (DbConnection connection, uint eventDefId) |
Should build a command that returns the event def with the id. More... | |
abstract DbCommand | OnFormulateUpdateEventDef (DbConnection connection, EventDef eventDef) |
Should build a command that updates the event def. More... | |
abstract DbCommand | OnFormulateInsertEventDef (DbConnection connection, EventDef eventDef) |
Should build a command that inserts the event def. More... | |
abstract DbCommand | OnFormulateDeleteEventDef (DbConnection connection, EventDef eventDef) |
Should build a command the deletes the event def. More... | |
abstract DbCommand | OnFormulateFetchEventDefs (DbConnection connection) |
Should build a command that returns all event defs. More... | |
abstract DbCommand | OnFormulateHasActions (DbConnection connection, EventDef eventDef) |
Should build a command that returns at least one action for the event def, if it exists. More... | |
abstract DbCommand | OnFormulateHasThresholds (DbConnection connection, EventDef eventDef) |
Should build a command that returns at least one threshold fo the event def, if it exists. More... | |
abstract DbCommand | OnFormulateFetchActions (DbConnection connection, uint elementId, uint eventId) |
Should build a command that returns all actions for the given element and event. More... | |
abstract DbCommand | OnFormulateInsertAction (DbConnection connection, ActionDef action) |
Should build a command that inserts the action. More... | |
abstract DbCommand | OnFormulateUpdateAction (DbConnection connection, ActionDef action) |
Should build a command that updates the action. More... | |
abstract DbCommand | OnFormulateCheckForAction (DbConnection connection, uint elementId, uint eventId) |
Should build a command that returns the count of actions with the element and event def ids. More... | |
abstract DbCommand | OnFormulateDeleteAction (DbConnection connection, ActionDef action) |
Should build a command the deletes the action. More... | |
abstract DbCommand | OnFormulateDeleteActions (DbConnection connection, EventDef eventDef) |
Should build a command the deletes the actions associated to the event def. More... | |
abstract DbCommand | OnFormulateDeleteActions (DbConnection connection, ManagedElement element) |
Should build a command that deletes the actions associated to the element. More... | |
abstract DbCommand | OnFormulateInsertOrUpdateAlert (DbConnection connection, Alert alert) |
Should build a command that inserts the alert. More... | |
abstract DbCommand | OnFormulateClearAlert (DbConnection connection, Alert alert) |
Should build a command that updates the cleared time of the alert. More... | |
abstract DbCommand | OnFormulateFetchAlerts (DbConnection connection, bool activeOnly) |
Should build a command that returns all active alerts. More... | |
abstract DbCommand | OnFormulateFetchSensor (DbConnection connection, uint id) |
Should build a command that returns the requested sensor. More... | |
abstract DbCommand | OnFormulateFetchSensors (DbConnection connection, short configId, bool activeOnly) |
Should build a command that returns all sensor definitions in the specified configuration. More... | |
abstract DbCommand | OnFormulateUpdateSensor (DbConnection connection, Sensor sensor) |
Should build a command that updates the given sensor definition. More... | |
abstract DbCommand | OnFormulateInsertSensor (DbConnection connection, Sensor sensor) |
Should build a command that inserts the given sensor definition. More... | |
abstract DbCommand | OnFormulateCheckForSensor (DbConnection connection, uint id) |
Should build a command that returns the count of sensors with the given id. More... | |
abstract DbCommand | OnFormulateDeleteSensor (DbConnection connection, uint id) |
Should build a command that deletes the sensor with the given id. More... | |
abstract DbCommand | OnFormulatePruneMeasurements (DbConnection connection, DateTime cutoff) |
Should build a command that deletes measurements, for all elements, that are older than cutoff . More... | |
abstract DbCommand | OnFormulateInsertUser (DbConnection connection, User user) |
Should build a command the inserts the given user definition. More... | |
abstract DbCommand | OnFormulateUpdateUser (DbConnection connection, User user) |
Should build a command the updates the given user definition. More... | |
abstract DbCommand | OnFormulateDeleteUser (DbConnection connection, int id) |
Should build a command the deletes the given user definition. More... | |
abstract DbCommand | OnFormulateGetUsers (DbConnection connection, PredicateSet filter) |
Should build a command the retrieves all users. More... | |
abstract DbCommand | OnFormulatePersistUserNotifGroupXrefs (DbConnection connection, User user) |
Should build a command the persists the notification groups (xrefs) for the given user definition. More... | |
abstract DbCommand | OnFormulatePersistUserRoleXrefs (DbConnection connection, User user) |
Should build a command the persists the roles (xrefs) for the given user definition. More... | |
abstract DbCommand | OnFormulateInsertNotifGrp (DbConnection connection, NotificationGroup ng) |
Should build a command the inserts the given notification group definition. More... | |
abstract DbCommand | OnFormulateUpdateNotifGrp (DbConnection connection, NotificationGroup ng) |
Should build a command the updates the given notification group definition. More... | |
abstract DbCommand | OnFormulateDeleteNotifGrp (DbConnection connection, short id) |
Should build a command the deletes the given notification group definition. More... | |
abstract DbCommand | OnFormulateGetNotifGrpXrefs (DbConnection connection, Auth.User user) |
Should build a command that retrieves notification groups for the given user. More... | |
abstract DbCommand | OnFormulateGetNotifGrps (DbConnection connection, PredicateSet filter) |
Should build a command the retrieves notification groups that match filter . More... | |
abstract DbCommand | OnFormulateGetRoles (DbConnection connection, User user) |
Should build a command that retrieves roles for the given user. More... | |
void | addParam (DbCommand cmd, string name, System.Data.DbType type, object value) |
Adds the parameter. More... | |
void | addParam (DbCommand cmd, string name, System.Data.DbType type, object value, System.Data.ParameterDirection direction) |
Adds the parameter. More... | |
![]() | |
override void | OnInitialize (Apac.Configuration.SupervisableConfig config) |
Prompts the supervisable component to initialize itself. More... | |
override void | OnResolveReferences () |
Called when the supervisable component needs to resolve its runtime references to other components. More... | |
override void | OnCheckReferencesStates () |
Called when the supervisable component needs to check the state of its runtime reference components. More... | |
override void | OnStart () |
Prompts the supervisable component to start functioning. More... | |
override void | OnStop () |
Prompts the supervisable component to stop functioning. More... | |
abstract void | OnInitializeDataStore (Configuration.DataStoreConfig config) |
virtual void | Dispose (bool disposing) |
![]() | |
abstract void | OnInitialize (Apac.Configuration.SupervisableConfig config) |
Called when the supervisable component is intitialized. More... | |
virtual void | OnStarting () |
Called when the supervisable component is about to start. This differs from handling OnStart in that this method is called on the supervisor's thread, whereas Start is called on a new thread. Subclasses may override this to do work that is considered initialization work that should be done before all component threads are started. More... | |
virtual void | OnStateChanging (SupervisableState currentState, SupervisableState newState) |
Call chain for state changing notification. More... | |
virtual void | OnStateChanged (SupervisableState previousState, SupervisableState newState) |
Call chain for state changed notification. More... | |
virtual void | OnException (Exception ex) |
Call chain for exception notification. More... | |
void | SetState (SupervisableState newState) |
Changes the state of the controller to the new state. More... | |
virtual void | OnStateChangeStarting () |
virtual void | OnStateChangeRunning () |
virtual void | OnStateChangeStopping () |
virtual void | OnStateChangeStopped () |
virtual void | OnStateChangeInitializing () |
virtual void | OnStateChangeInitialized () |
virtual void | OnStateChangeErrored () |
virtual void | OnStateChangeImpaired () |
void | HandleException (string message, Exception e) |
Deals with the details of handling exceptions captured by the controller. More... | |
void | ResetException () |
Allows subclasses to reset the last exception to an empty state. More... | |
void | HandleImpairment (string message, Exception e) |
Deals with the details of handling non-critical problems captured by the controller. More... | |
Properties | |
Apac.Settings.Configuration | CurrentConfiguration [get] |
Returns the system setting as they are cached at initialization. More... | |
List< string > | Roles [get] |
Gets the roles currently configured in the system. More... | |
List< Auth.NotificationGroup > | NotificationGroups [get] |
Gets the notification groups currently configured in the system. More... | |
![]() | |
AlertCache | AlertCache [get] |
Gets the alert cache. More... | |
string? | Location [get] |
In this store implementation this property indicates the directory for the data file(s). The name of the data files is determined internally. This path also indicates where the mappings file can be located. 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... | |
![]() | |
string | Location [get] |
![]() | |
Monitoring.AlertCache | AlertCache [get] |
Gets the alert cache. More... | |
![]() | |
Settings.Configuration | CurrentConfiguration [get] |
Should get the currently held settings. More... | |
![]() | |
List< string > | Roles [get] |
Gets the currently configured roles, possibly from cache. More... | |
List< NotificationGroup > | NotificationGroups [get] |
Gets the currently configured notification groups, possibly from cache. More... | |
Events | |
SettingsChangedHandler | SettingsChanged |
Occurs when any settings have changed. 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... | |
![]() | |
SettingsChangedHandler | SettingsChanged |
Occurs when any settings have changed. More... | |
Additional Inherited Members | |
![]() | |
volatile Configuration.DataStoreConfig | _config = null |
Implements a (hopefully) data provider agnostic store for keeping ECOP data in an RDBMS. The goal here is to provide a data store implementation that can be used to scale ECOP from its current scope to an enterprise scope by altering the RDBMS underneath. The nirvana is a one-class-for-all-RDBMS-systems but that is not practical due to the different SQL syntax details, so the basic framework exists in this class and the formulation of the SQL exists in a class for each specific RDMBS system. This should at least reduce the amount of code and the behavioral differences between the different types of systems.
|
inline |
Promotes configuration changes that have been persisted to the runtime environment. This allows simple edits by the user to result in atomic commits of each change without reloading the entire system before all edits are complete.
Implements Apac.Data.ISettingsStore.
|
inlineprotected |
Adds the parameter.
cmd | The command. |
name | The name. |
type | The type. |
value | The value. |
|
inlineprotected |
Adds the parameter.
cmd | The command. |
name | The name. |
type | The type. |
value | The value. |
direction | The direction. |
|
inline |
Changes the active set of mappings to be the one with the name name .
name | The name of the configuration that will now be active. |
true
if successful, false
otherwise.Implements Apac.Data.ISettingsStore.
|
inline |
Creates a copy of the mappings named origName in a configuration named copyName .
origName | The name of source for the copy. |
copyName | The name of the destination for the copy. |
Implements Apac.Data.ISettingsStore.
|
inline |
Creates a notification group with name .
name | The name. |
group | The group. |
|
inline |
Creates the user in the data store. This routine assumes the the data is valid and the password has already been hashed and salted and applied to the user object.
user | The user. |
|
inline |
Deletes the action.
action | The action. |
|
inline |
Deletes the actions associated with the event def.
eventDef | The event def. |
|
inline |
Deletes the configuration with name .
name | The name of the configuration to be deleted. |
Implements Apac.Data.ISettingsStore.
|
inline |
Deletes the event def.
eventDef | The event def. |
|
inline |
Removes the given element from the datastore.
element | The Apac.Monitoring.ManagedElement to be removed. |
|
inline |
Deletes the given mapping from the store.
mapping | The MeasurementMapping to be deleted. |
Implements Apac.Data.ISettingsStore.
|
inline |
Deletes the notification group with id .
id | The identifier. |
Implements Apac.Data.IAuthStore.
|
inline |
Deletes the sensor.
sensor | The sensor. |
|
inline |
Deletes the user with id .
id | The identifier. |
Implements Apac.Data.IAuthStore.
|
inline |
|
inline |
Gets the actions.
elementId | The element id. |
eventId | The event id. |
Implements Apac.Data.ISettingsStore.
|
inline |
Gets the configuration.
id | The id. |
Implements Apac.Data.ISettingsStore.
|
inline |
Gets the configuration.
name | The name. |
Implements Apac.Data.ISettingsStore.
|
inline |
Gets the event def.
eventId | The event id. |
Implements Apac.Data.ISettingsStore.
|
inline |
Gets all event defs.
Implements Apac.Data.ISettingsStore.
|
inline |
Retrieves the managed element specified by id .
id | The datastore identifier for the required Apac.Monitoring.ManagedElement. |
null
.Implements Apac.Data.ISettingsStore.
|
inline |
Retrieves the managed elements in the system.
Implements Apac.Data.ISettingsStore.
|
inline |
Gets the mappings for configuration with ID of configid .
configid | The configid. |
null
.
|
inline |
Gets the mappings for configuration named name .
name | The name of the configuration to load. |
null
.Implements Apac.Data.ISettingsStore.
|
inline |
Gets all notification groups.
Implements Apac.Data.IAuthStore.
|
inline |
Gets the sensor with the specified ID.
id | The sensor id. |
null
. Implements Apac.Data.ISettingsStore.
|
inline |
Gets all sensors.
configId | The config id. |
activeOnly | if set to true only active sensors are returned. |
Implements Apac.Data.ISettingsStore.
|
inline |
Gets the thresholds.
elementId | The element id. |
Implements Apac.Data.ISettingsStore.
|
inline |
Gets the users that match filter .
filter | The filter. |
|
inline |
Looks up the mapping by sensor source.
source | The name of the supervisable that is reading the sensor. |
Implements Apac.Data.ISettingsStore.
|
inline |
Gets a mapping for the requested element from the active mapping set.
elementId | The identifier of the element for which the mapping is needed. |
Implements Apac.Data.ISettingsStore.
|
inlineprotectedvirtual |
Called when [close].
Implements Apac.Data.ThreadedMeasurementStore.
|
inlineprotectedvirtual |
Called when [fetch daily averages].
criteria | The criteria. |
Implements Apac.Data.ThreadedMeasurementStore.
|
inlineprotectedvirtual |
Called when [fetch five minute averages].
criteria | The criteria. |
Implements Apac.Data.ThreadedMeasurementStore.
|
inlineprotectedvirtual |
Called when [fetch hourly averages].
criteria | The criteria. |
Implements Apac.Data.ThreadedMeasurementStore.
|
inlineprotectedvirtual |
Called when [fetch measurements].
criteria | The criteria. |
Implements Apac.Data.ThreadedMeasurementStore.
|
inlineprotectedvirtual |
Called when [fetch monthly averages].
criteria | The criteria. |
Implements Apac.Data.ThreadedMeasurementStore.
|
protectedpure virtual |
Should build a command that returns the count of actions with the element and event def ids.
connection | The DbConnection used for the work. |
elementId | The element id. |
eventId | The event def id. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command that returns the count of event defs with the id.
connection | The DbConnection used for the work. |
eventDefId | The event definition identifier. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command that returns the count of elements with id .
connection | The DbConnection used for the work. |
id | The identifier. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command that returns the count of mappings matching configid , elementid , sensorid , sourceElementId , constantValue , and inputTag ,.
connection | The DbConnection used for the work. |
configid | The datastore identifier for the configuration being searched. |
elementid | The datastore identifier for the managed element being searched. |
sensorid | The identifier for the sensor being searched. |
sourceElementId | The identifier for the source element. |
constantValue | The constant value used for this mapping. |
inputTag | The input tag value used for this mapping. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command that returns the count of sensors with the given id.
connection | The DbConnection used for the work. |
id | The data store identifier for the sensor. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command that returns the count of thresholds with the element id.
connection | The DbConnection used for the work. |
elementId | The element id. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command that updates the cleared time of the alert.
connection | The DbConnection used for the work. |
alert | The alert. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command that creates a new configuration instance with name .
connection | The DbConnection used for the work. |
name | The name for the new configuration. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command the deletes the action.
connection | The DbConnection used for the work. |
action | The action. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command the deletes the actions associated to the event def.
connection | The DbConnection used for the work. |
eventDef | The event def. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command that deletes the actions associated to the element.
connection | The DbConnection used for the work. |
element | The element. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command that deletes the configuration instance with id .
connection | The DbConnection used for the work. |
id | The data store identifier for the configuration to be deleted. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command the deletes the event def.
connection | The DbConnection used for the work. |
eventDef | The event def. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command that removes element from the data store.
connection | The DbConnection used for the work. |
element | The ManagedElement to be removed. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a a command that removes mapping from the data store.
connection | The DbConnection used for the work. |
mapping | The MeasurementMapping to be removed. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command that removes all MeasurementMappings associated with element .
connection | The DbConnection used for the work. |
element | The ManagedElement for which mappings are to be removed. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command that removes measurements for element from the data store.
connection | The DbConnection used for the work. |
element | The ManagedElement to be removed. |
|
protectedpure virtual |
Should build a command the deletes the given notification group definition.
connection | The connection. |
id | The notification group id. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command that deletes the sensor with the given id.
connection | The DbConnection used for the work. |
id | The data store identifier of the sensor to delete. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command that deletes all thresholds associated to the element.
connection | The DbConnection used for the work. |
element | The element. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command the deletes the given user definition.
connection | The connection. |
id | The user id. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command that removes averages for element from the data store.
connection | The DbConnection used for the work. |
element | The ManagedElement to be removed. |
|
protectedpure virtual |
Should build a command that returns all actions for the given element and event.
connection | The DbConnection used for the work. |
elementId | The element id. |
eventId | The event id. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command that returns all active alerts.
connection | The DbConnection used for the work. |
activeOnly | Instructs the query to only return alerts that are not cleared. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command that returns all daily averages matching the conditions in criteria .
connection | The DbConnection used for the work. |
criteria | The query conditions requested by the caller. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command that returns the event def with the id.
connection | The DbConnection used for the work. |
eventDefId | The event def id. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command that returns all event defs.
connection | The DbConnection used for the work. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command that returns all five-minute averages matching the conditions in criteria .
connection | The DbConnection used for the work. |
criteria | The query conditions requested by the caller. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command that returns all hourly averages matching the conditions in criteria .
connection | The DbConnection used for the work. |
criteria | The query conditions requested by the caller. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command that returns the data set containing all columns for the requested managed element.
connection | The DbConnection used for the work. |
id | The id of the element needed. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command that returns the data set containing all columns for all managed elements in the data store.
connection | The DbConnection used for the work. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command that returns the data set containing all columns for all managed elements in the data store that are mapping within the given configuration.
connection | The DbConnection used for the work. |
configid | The datastore identifier of the configuration used to match the managed elements. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command that returns the data set containing all mappings in configuration 'configid ', and the associated managed element data (using a JOIN).
connection | The DbConnection used for the work. |
configid | The id of the configuration needed. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command that returns all measurements matching the conditions in criteria .
connection | The DbConnection used for the work. |
criteria | The query conditions requested by the caller. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command that returns all monthly averages matching the conditions in criteria .
connection | The DbConnection used for the work. |
criteria | The query conditions requested by the caller. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command that returns the requested sensor.
connection | The connection. |
id | The id. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command that returns all sensor definitions in the specified configuration.
connection | The connection. |
configId | The config id. |
activeOnly | if set to true then only active sensors are returned. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command that returns all thresholds with the element id.
connection | The DbConnection used for the work. |
elementId | The element id. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command that returns the active configuration instance (shallow).
connection | The DbConnection used for the work. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command that returns the identifier for the configuration with name .
connection | The DbConnection used for the work. |
name | The name of the configuration instance to be queried. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command that returns the requested configuration instance (shallow).
connection | The DbConnection used for the work. |
id | The data store identifier for the configuration |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command that returns the requested configuration instance (shallow).
connection | The DbConnection used for the work. |
name | the name of the configuration to get. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command that returns all configuration instances (shallow).
connection | The DbConnection used for the work. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command that returns all settings for the configuration instance with configId .
connection | The DbConnection used for the work. |
configId | The datastore identifier for the configuration needed. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command the retrieves notification groups that match filter .
connection | The connection. |
filter | The filter. |
|
protectedpure virtual |
Should build a command that retrieves notification groups for the given user.
connection | The connection. |
user | The User used to filter the results. |
|
protectedpure virtual |
Should build a command that retrieves roles for the given user.
connection | The connection. |
user | The User used to filter the results. |
|
protectedpure virtual |
Should build a command the retrieves all users.
connection | The connection. |
filter | The filter. |
|
protectedpure virtual |
Should build a command that returns at least one action for the event def, if it exists.
connection | The DbConnection used for the work. |
eventDef | The event def. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a ccmmand that returns at least one row if the given element has averages in the data store.
connection | The DbConnection used for the work. |
elementid | The element to be searched. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a ccmmand that returns at least one row if the given element has measurements in the data store.
connection | The DbConnection used for the work. |
elementid | The element to be searched. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command that returns at least one threshold fo the event def, if it exists.
connection | The DbConnection used for the work. |
eventDef | The event def. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command that inserts the action.
connection | The DbConnection used for the work. |
action | The action to be persisted. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command that inserts the event def.
connection | The DbConnection used for the work. |
eventDef | The event def to be persisted. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command that insert the managed element.
connection | The DbConnection used for the work. |
element | The ManagedElementto be persisted. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command that creates the mapping specified.
connection | The DbConnection used for the work. |
mapping | The the new mapping to be inserted. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command that insert the set of mappings.
connection | The DbConnection used for the work. |
mappings | The mappings to be persisted. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command the inserts the given notification group definition.
connection | The connection. |
ng | The notification group. |
|
protectedpure virtual |
Should build a command that inserts the alert.
connection | The DbConnection used for the work. |
alert | The alert. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command that inserts the given sensor definition.
connection | The DbConnection used for the work. |
sensor | The Sensor to update. |
|
protectedpure virtual |
Should build a command that inserts the threshold.
connection | The DbConnection used for the work. |
threshold | The threshold to be persisted. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command the inserts the given user definition.
connection | The connection. |
user | The user. |
|
protectedpure virtual |
Should build a command that updates the settings.
connection | The DbConnection used for the work. |
name | The name. |
value | The value. |
configid | The configid. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command the persists the notification groups (xrefs) for the given user definition.
connection | The connection. |
user | The user. |
|
protectedpure virtual |
Should build a command the persists the roles (xrefs) for the given user definition.
connection | The connection. |
user | The user. |
|
protectedpure virtual |
Should build a command that deletes measurements, for all elements, that are older than cutoff .
connection | The DbConnection used for the work. |
cutoff | The oldest date to keep in the data store. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should 'flip the active bit' to the configuration named id .
connection | The DbConnection used for the work. |
id | The data store identifier of the configuration to become active. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command that updates the action.
connection | The DbConnection used for the work. |
action | The action to be persisted. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command that updates the event def.
connection | The DbConnection used for the work. |
eventDef | The event def to be persisted. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command that update the managed element.
connection | The DbConnection used for the work. |
element | The ManagedElementto be persisted. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command that updates the mapping specified, using the ID.
connection | The DbConnection used for the work. |
mapping | The MeasurementMapping to be updated. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command that updates the mapping specified.
connection | The DbConnection used for the work. |
oldmapping | The the mapping object with the old data. |
newmapping | The the mapping object with the new data. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command that updates the set of mappings.
connection | The DbConnection used for the work. |
mappings | The mappings to be persisted. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command the updates the given notification group definition.
connection | The connection. |
ng | The notification group. |
|
protectedpure virtual |
Should build a command that updates the given sensor definition.
connection | The DbConnection used for the work. |
sensor | The Sensor to update. |
|
protectedpure virtual |
Should build a command that updates the threshold.
connection | The DbConnection used for the work. |
threshold | The threshold to be persisted. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command the updates the given user definition.
connection | The connection. |
user | The user. |
|
protectedpure virtual |
Should build a command that writes the averages in avgs .
connection | The DbConnection used for the work. |
avgs | The WeightedMeasurementAvgs to be persisted. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command that writes the averages in avgs .
connection | The DbConnection used for the work. |
avgs | The WeightedMeasurementAvgs to be persisted. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command that writes the averages in avgs .
connection | The DbConnection used for the work. |
avgs | The WeightedMeasurementAvgs to be persisted. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command that writes the measurements in measurements .
connection | The DbConnection used for the work. |
measurements | The T:Measurements<ushort> to be persisted. |
Implemented in Apac.Data.FirebirdStore.
|
protectedpure virtual |
Should build a command that writes the averages in avgs .
connection | The DbConnection used for the work. |
avgs | The WeightedMeasurementAvgs to be persisted. |
Implemented in Apac.Data.FirebirdStore.
|
inlineprotected |
Called when [initialize data store].
config | The config. |
|
inlineprotectedvirtual |
Called when [open].
Implements Apac.Data.ThreadedMeasurementStore.
|
inlineprotectedvirtual |
Called when [prune raw measurements].
cutoffDay | The cutoff day. |
Implements Apac.Data.ThreadedMeasurementStore.
|
inlineprotectedvirtual |
Called when [retrieve alerts].
activeOnly | if set to true [active only]. |
Implements Apac.Data.ThreadedMeasurementStore.
|
inlineprotectedvirtual |
Called when [settings changed].
|
inlineprotectedvirtual |
Called when [write alerts].
alerts | The alerts. |
Implements Apac.Data.ThreadedMeasurementStore.
|
inlineprotectedvirtual |
Called when [write daily avgs].
averages | The averages. |
Implements Apac.Data.ThreadedMeasurementStore.
|
inlineprotectedvirtual |
Called when [write five minute avgs].
averages | The averages. |
Implements Apac.Data.ThreadedMeasurementStore.
|
inlineprotectedvirtual |
Called when [write hourly avgs].
averages | The averages. |
Implements Apac.Data.ThreadedMeasurementStore.
|
inlineprotectedvirtual |
Called when [write measurements].
measurements | The measurements. |
Implements Apac.Data.ThreadedMeasurementStore.
|
inlineprotectedvirtual |
Called when [write monthly avgs].
averages | The averages. |
Implements Apac.Data.ThreadedMeasurementStore.
|
inline |
Persists the action.
action | The action. |
true
if the write was successfull.
|
inline |
Persists the event def.
eventDef | The event def. |
|
inline |
Creates or updates the given element in the datastore for use in setting up mappings to incoming data.
element | The Apac.Monitoring.ManagedElement to be persisted. |
true
if successful, false
otherwise.
|
inline |
Should write the given mapping to the store.
mapping | The mapping to be written. |
oldmapping | The old mapping used to determine what row to update. |
true
if the write was successfull. Implements Apac.Data.ISettingsStore.
|
inline |
Writes the given mappings to the data store.
mappings | The mappings to be written. |
true
if successful, false
otherwise.
|
inline |
Perists the sensor.
sensor | The sensor. |
|
inline |
Persists the threshold.
threshold | The threshold. |
|
inline |
Saves the given configuration to the data store.
newConfig | The Settings.Configuration to be saved. |
activate | Indicates if the configuration should be promoted to the runtime system. |
|
inlineprotectedvirtual |
Updates the measurement cache.
measurements | The measurements. |
|
inline |
Updates the notificaton group.
ng | The ng. |
Implements Apac.Data.IAuthStore.
|
inline |
Updates the user and associations to look like user .
user | The user. |
|
get |
Returns the system setting as they are cached at initialization.
|
get |
Gets the notification groups currently configured in the system.
The notification groups.
|
get |
Gets the roles currently configured in the system.
The roles.
SettingsChangedHandler Apac.Data.DatabaseStore.SettingsChanged |
Occurs when any settings have changed.