![]() |
VR-Exchange 2.7 API Documentation
|
Manages statistics gathering and reporting for the broker. More...
Public Types | |
| typedef DtStatisticsManager *(* | DtStatisticsManagerCreator )(DtPortalConnection *) |
Public Member Functions | |
| virtual | ~DtStatisticsManager () |
| Virtual DTOR. More... | |
| virtual void | setReportingInterval (DtTime interval) |
| Set the reporting interval to use. More... | |
| virtual void | setPrintStatisticsToLog (bool doit) |
| Set whether statistics reports should be written to the logfile. More... | |
| virtual void | setInteractionCount (unsigned int count) |
| Set the number of interactions processed during this frame. More... | |
| virtual unsigned int | interactionCount () const |
| Get the number of interactions processed during this frame. More... | |
| virtual void | setObjectCount (unsigned int count) |
| Set the number of objects present during this frame. More... | |
| virtual unsigned int | objectCount () const |
| Get the number of objects present during this frame. More... | |
| virtual void | tick () |
| Performs reporting if interval has elapsed. More... | |
Passthrough methods for the frame timer. | |
| virtual void | startFrame () |
| Calls DtFrameTimer::markFrameStart() More... | |
| virtual void | endFrame () |
| Calls DtFrameTimer::markFrameEnd() More... | |
| virtual void | startSection (DtFrameTimer::FrameSectionType type) |
| Calls DtFrameTimer::markStart( DtFrameTimer::FrameSectionType ) More... | |
| virtual void | endSection (DtFrameTimer::FrameSectionType type) |
| Calls DtFrameTimer::markEnd( DtFrameTimer::FrameSectionType ) More... | |
Static Public Member Functions | |
| static DtStatisticsManager * | create (DtPortalConnection *pConn) |
| Static creation method. More... | |
Static Public Attributes | |
| static DtStatisticsManagerCreator | theStatisticsManagerCreator |
| Storage for the method used to create the statistics manager. More... | |
Protected Types | |
| typedef std::map < DtFrameTimer::FrameSectionType, DtString > | DisplayNamesMap |
| typedef std::map < DtFrameTimer::FrameSectionType, DtString > | UnitsMap |
Protected Member Functions | |
| DtStatisticsManager (DtPortalConnection *portalConn) | |
| Protected CTOR (Use create()). More... | |
| virtual DtStatisticsReportMessage | generateInitializationMessage () |
| Constructs a report for initializing the units and descriptions. More... | |
| virtual DtStatisticsReportMessage | generateReportMessage () |
| Constructs a statistics report and sends it to the portal. More... | |
Protected Attributes | |
| DisplayNamesMap | myDisplayNamesMap |
| UnitsMap | myUnitsMap |
| DtTime | myLastReportTime |
| DtTime | myReportingInterval |
| unsigned int | myObjectCount |
| unsigned int | myInteractionCount |
| bool | myPrintStatisticsToLogFlag |
| DtPortalConnection * | myPortalConn |
| DtFrameTimer * | myFrameTimer |
Manages statistics gathering and reporting for the broker.
|
protected |
| typedef DtStatisticsManager*(* MAKVrExchange::DtStatisticsManager::DtStatisticsManagerCreator)(DtPortalConnection *) |
|
protected |
|
virtual |
Virtual DTOR.
|
protected |
|
static |
Static creation method.
Instantiates a new statistics manager and sends initialization message.
|
virtual |
|
virtual |
|
protectedvirtual |
Constructs a report for initializing the units and descriptions.
All values in this report are initialized to zero.
|
protectedvirtual |
Constructs a statistics report and sends it to the portal.
Units and descriptions are not initialized in this message. The portal will interpret the empty string as an unchanged units or description.
|
virtual |
Get the number of interactions processed during this frame.
|
virtual |
Get the number of objects present during this frame.
|
virtual |
Set the number of interactions processed during this frame.
Used to determine the avg interaction rate for the frame.
|
virtual |
Set the number of objects present during this frame.
|
virtual |
Set whether statistics reports should be written to the logfile.
|
virtual |
Set the reporting interval to use.
This is the amount of time between report generation and reporting to the graph in the portal.
|
virtual |
|
virtual |
|
virtual |
Performs reporting if interval has elapsed.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
static |
Storage for the method used to create the statistics manager.
Overridden statistics manager creators can be set here in order to use a customized statistics manager. Make sure the creator is set here before the broker begins processing messages to ensure it is used.