#include <coherence/net/cache/AbstractBundler.hpp>
Inherits Object.
Public Types | |
| typedef spec::Handle | Handle |
| Statistics Handle definition. | |
| typedef spec::View | View |
| Statistics View definition. | |
| typedef spec::Holder | Holder |
| Statistics Holder definition. | |
Public Member Functions | |
| virtual void | reset () |
| Reset the statistics. | |
|
virtual TypedHandle < const String > | toString () const |
| Output a human-readable description of this Object to the given stream. Note that when overriding this method the return type must be TypedHandle<const String> rather then String::View. These two types are assignment compatible but not equivalent and declaring the override with String::View will not be a compatible override. coherence::lang::operator<<(std::ostream, Object::View) is defined and will call into the toString method, to output Objects. If a managed String object is desired, the COH_TO_STRING macro can be used to build up a String from streamable contents and is generally how toString() will be implemented.
Object::View vKey = ... Object::View vValue = ... std::cout << vKey << " = " << vValue << std::endl; String::View vs = COH_TO_STRING(vKey << " = " << vValue); The COH_TO_STRING macro is also the most common way to implement the toString method. For example:
virtual TypedHandle<const String> Person::toString() const { return COH_TO_STRING("Name: " << f_sName << " SSN: " << f_nSSN); }
| |
Protected Attributes | |
| int32_t | m_cAverageBurstDuration |
| An average time for bundled request processing (burst). | |
| int32_t | m_cAverageBundleSize |
| An average bundle size for this Bundler. | |
| int32_t | m_cAverageThreadWaitDuration |
| An average thread waiting time caused by under-filled bundle. | |
| int32_t | m_nAverageThroughput |
| An average bundled request throughput in size units per millisecond (total bundle size over total processing time). | |
| int64_t | m_cBundleCountSnapshot |
| Snapshot for a total number of processed bundled. | |
| int64_t | m_cBundleSizeSnapshot |
| Snapshot for a total size of processed bundled. | |
| int64_t | m_cBurstDurationSnapshot |
| Snapshot for a burst duration. | |
| int64_t | m_cThreadWaitSnapshot |
| Snapshot for a combined thread waiting time. | |
int32_t m_cAverageThreadWaitDuration [protected] |
An average thread waiting time caused by under-filled bundle.
The wait time includes the time spend in the bundled request processing.