#include <StatsTarget.h>
Inheritance diagram for StatsTarget:
Public Member Functions | |
virtual | ~StatsTarget () |
virtual void | onThreadStart () |
Receives notification that stats polling is starting via a TimerThread. | |
virtual void | onThreadEnd () |
Receives notification that stats polling via a TimerThread is ending. | |
virtual void | beginSnapshot ()=0 |
Begins recording a snapshot. | |
virtual void | endSnapshot ()=0 |
Finishes recording a snapshot. | |
virtual void | writeCounter (std::string name, int64_t value)=0 |
Writes one int counter. |
Definition at line 33 of file StatsTarget.h.
StatsTarget::~StatsTarget | ( | ) | [virtual] |
void StatsTarget::onThreadStart | ( | ) | [virtual] |
Receives notification that stats polling is starting via a TimerThread.
Reimplemented in JavaTraceTarget.
Definition at line 111 of file StatsTimer.cpp.
Referenced by StatsTimer::onThreadStart().
void StatsTarget::onThreadEnd | ( | ) | [virtual] |
Receives notification that stats polling via a TimerThread is ending.
Reimplemented in JavaTraceTarget.
Definition at line 116 of file StatsTimer.cpp.
Referenced by StatsTimer::onThreadEnd().
virtual void StatsTarget::beginSnapshot | ( | ) | [pure virtual] |
Begins recording a snapshot.
Called before all writeCounter invocations for the snapshot.
Implemented in FileStatsTarget, and JavaTraceTarget.
Referenced by StatsTimer::onTimerInterval(), and StatsTimer::stop().
virtual void StatsTarget::endSnapshot | ( | ) | [pure virtual] |
Finishes recording a snapshot.
Called after all writeCounter invocations for the snapshot.
Implemented in FileStatsTarget, and JavaTraceTarget.
Referenced by StatsTimer::onTimerInterval(), and StatsTimer::stop().
virtual void StatsTarget::writeCounter | ( | std::string | name, | |
int64_t | value | |||
) | [pure virtual] |
Writes one int counter.
This is called from a StatsSource implementation in response to writeStats().
name | name of counter | |
value | snapshot value |
Implemented in FileStatsTarget, and JavaTraceTarget.
Referenced by ExecStreamGovernor::writeStats(), Database::writeStats(), and Cache::writeStats().