This class contains methods for accessing monitor configuration information.
More...
#include <carma/dbms/MonitorDataDatabase.h>
This class contains methods for accessing monitor configuration information.
Definition at line 30 of file MonitorDataDatabase.h.
| std::string carma::dbms::MonitorDataDatabase::getCanonicalSystemName |
( |
const std::string & |
tableName | ) |
const |
get the canonical file system path to the specified monitor data table
- Parameters
-
| tableName | the table name for which to get the system path |
- Returns
- the canonical (complete path) table name
| static void carma::dbms::MonitorDataDatabase::getCreateMonitorTableStatementParts |
( |
const MonitorAverageType & |
averageType, |
|
|
const MonitorAggregateType & |
aggType, |
|
|
const std::string & |
tag, |
|
|
std::string & |
tableName, |
|
|
std::string & |
columnClause, |
|
|
std::string & |
pkClause |
|
) |
| |
|
static |
construct portions of the statement used to create a monitor table the basic creation statement is "CREATE TABLE " + tableName + "("
- columnClause + pkClause + ")"
- Parameters
-
| [in] | averageType | the monitor table average type |
| [in] | dataType | the monitor table data type |
| [in] | tag | tag to add to the base monitor table name |
| [out] | tableName | the table name |
| [out] | columnClause | the columnClause |
| [out] | pkClause | the primary key cluase |
get entries in the MonitorDataIndexTable corresponding to the supplied filters
- Parameters
-
| trFilter | the time range filter to use |
| aggType | the aggregate data type |
| includeNullTimes | include entries which have NULLs for min/maxIntegration? Such entries usually indicate that the tables are in the process of being written. |
- Returns
- a Table with the specified entries
insert a row into the monitor data index table The SQL statement that is executed is "INSERT INTO " + MONITOR_INDEX_TABLE + " (tableName, creationFrame, "
- "partitionID) VALUES('" + tableName + "', " + creationFrame + ", "
- partitionID + ")"
- Parameters
-
| tableName | the name of the table to be added |
| paritionID | the id of the partition on which the table is located |
| creationFrame | the frame at which the table was created |
- Exceptions
-
| void carma::dbms::MonitorDataDatabase::updateMonitorIndexTable |
( |
const std::string & |
tableName, |
|
|
const MonitorAverageType & |
averageType |
|
) |
| const |
insert the max and min frame counts into the specified row in the monitor index table.
Generally called after data has been copletely loaded into a table
- Parameters
-
| tableName | update the data for this table |
- Exceptions
-
| void carma::dbms::MonitorDataDatabase::updateMonitorIndexTable |
( |
const int & |
minAge | ) |
const |
insert the min/max frameCounts/Integrations into the monitor index table for all tables with NULLs currently in these columns with creationFrames > minAge frames ago
- Parameters
-
| the | minimum age (in half-second frames) a table has to have for it to be updated |
The documentation for this class was generated from the following file: