#include <StatsMgr.h>
StatsMgr contains a container that hold all the statistics and provide RW lock to protest the data structure.
Public Member Functions | |
Statistics | copyStats () |
Copy the whole Stats structure. | |
TSStats | copyTSStats (StatisticsName name, int32 window_size=0, TimeSec precision=0, TimeStamp time_stamp=0) throw ( Statistics::Error ) |
Copy TSStats according to the given parameters. | |
TSStats | copyTSStats (StatisticsName name, IDVect ids, int32 window_size=0, TimeSec precision=0, TimeStamp time_stamp=0) throw ( Statistics::Error ) |
Copy TSStats with given object names. | |
FixLenTimeSeries | copyStatistics (StatisticsName name, IDType id, int32 window_size=0, TimeSec precision=0, TimeStamp time_stamp=0) throw ( Statistics::Error, TSStats::Error ) |
Copy statistics of an given object. | |
void | addTSStats (StatisticsName name, int32 window_size, TimeSec precision, const IDVect &ids) |
Adds Empty TSStats with given name, precision, window_size, and object IDs. | |
bool | hasTSStats (StatisticsName name) |
void | addEmptyStatistics (StatisticsName name, IDType id) |
Add an empty FixLenTimeSeries with given name and ID. | |
void | deleteStatistics (StatisticsName name, IDType id) |
Delete a FixLenTimeSeries with given name and ID. | |
void | readLock () |
Get a read lock of the statistics. | |
void | readUnlock () |
Release the read lock. | |
void | writeLock () |
Get a write lock of the statistics. | |
void | writeUnlock () |
Release the write lock. | |
const Statistics & | getStats () const |
Returns the Stats. | |
Statistics & | getStats () |
Returns the Stats. |
|
Add an empty FixLenTimeSeries with given name and ID. (locking/unlocking has been implemented inside the function)
|
|
Adds Empty TSStats with given name, precision, window_size, and object IDs. (locking/unlocking has been implemented inside the function)
|
|
Copy statistics of an given object. If window_size/precision/time_stamp is zero, then the default value is used. Otherwise, the returned data are resamples according to the given parameters. (locking/unlocking has been implemented inside the function)
|
|
Copy the whole Stats structure. (locking/unlocking has been implemented inside the function) |
|
Copy TSStats with given object names. If window_size/precision/time_stamp is zero, then the default value is used. Otherwise, the returned data are resamples according to the given parameters. (locking/unlocking has been implemented inside the function)
|
|
Copy TSStats according to the given parameters. If window_size/precision/time_stamp is zero, then the default value is used. Otherwise, the returned data are resamples according to the given parameters. (locking/unlocking has been implemented inside the function)
|
|
Delete a FixLenTimeSeries with given name and ID. (locking/unlocking has been implemented inside the function)
|
|
Returns the Stats. Must read lock before this functon and read unlock after this function |
|
Returns the Stats. Must read lock before this functon and read unlock after this function |
|
|
|
Get a read lock of the statistics.
|
|
Release the read lock.
|
|
Get a write lock of the statistics.
|
|
Release the write lock.
|