1 #ifndef CARMA_DBMS_MONITORDATADATABASE_H
2 #define CARMA_DBMS_MONITORDATADATABASE_H
17 #include "carma/util/Logger.h"
25 class TimeRangeFilter;
55 const bool includeNullTimes=
true)
const;
70 (
const std::string& tableName,
const int& partitionID,
81 static std::string getMonitorDataTableBaseName
99 std::string& tableName, std::string& columnClause,
100 std::string& pkClause);
132 log4cpp::Category& logger_;
142 #endif // CARMA_DBMS_MONITORDATADATABASE_H
Class to mimic a db table The Table class is meant to mimic a database table.
MonitorAggregateType
aggregate data type of the monitor[point,data file, table]
std::string getCanonicalSystemName(const std::string &tableName) const
get the canonical file system path to the specified monitor data table
unsigned int frameType
Half second frames since Jan 1, 2000.
carma::dbms::Table getMonitorDataIndexTableEntries(const carma::dbms::TimeRangeFilter &trFilter, const carma::dbms::MonitorAggregateType &aggType, const bool includeNullTimes=true) const
get entries in the MonitorDataIndexTable corresponding to the supplied filters
virtual void insertIntoMonitorIndexTable(const std::string &tableName, const int &partitionID, const MonitorAverageType &averageType, const MonitorAggregateType &aggType, const carma::util::frameType &creationFrame) const
insert a row into the monitor data index table The SQL statement that is executed is "INSERT INTO " +...
This class contains methods for accessing monitor configuration information.
relationships between the monitor and dbms systems
void 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.
MonitorAverageType
average type of the monitor[point,data file,table]
represents an SQL query time range filter (part of a WHERE clause This class represents a (closed) ti...
static void getCreateMonitorTableStatementParts(const MonitorAverageType &averageType, const MonitorAggregateType &aggType, const std::string &tag, std::string &tableName, std::string &columnClause, std::string &pkClause)
construct portions of the statement used to create a monitor table the basic creation statement is "C...
an abstract class from which database queries may be launched.