OpenMAMA
Wombat::MamdaQuoteChecker Class Reference

MamdaQuoteChecker is a class that provides quotes sanity checking by periodically requesting snapshots of the quotes from the publisher and comparing that with an quotes being maintained in real time. More...

#include <MamdaQuoteChecker.h>

Public Member Functions

 MamdaQuoteChecker (MamaQueue *queue, MamdaCheckerHandler *handler, MamaSource *source, const char *symbol, mama_f64_t intervalSeconds)
 
 ~MamdaQuoteChecker ()
 Desctructor. More...
 
void checkSnapShotNow ()
 Perform an ad hoc snapshot check now. More...
 
mama_u32_t getSuccessCount () const
 
mama_u32_t getInconclusiveCount () const
 Return the nmber of inconclusive counts. More...
 
mama_u32_t getFailureCount () const
 Return the number of failed checks. More...
 

Detailed Description

MamdaQuoteChecker is a class that provides quotes sanity checking by periodically requesting snapshots of the quotes from the publisher and comparing that with an quotes being maintained in real time.

This class is purely for testing purposes, to test for possible configuration or programming errors in the quotes publisher and in MAMDA quotes management code.

The developer registers a handler that contains callbacks for successful, inconclusive and failure events. The developer also provides an interval representing the frequency of the snapshot checks. The first check will take place at some random point in time between zero and the interval.

Constructor & Destructor Documentation

◆ MamdaQuoteChecker()

Wombat::MamdaQuoteChecker::MamdaQuoteChecker ( MamaQueue *  queue,
MamdaCheckerHandler handler,
MamaSource *  source,
const char *  symbol,
mama_f64_t  intervalSeconds 
)

◆ ~MamdaQuoteChecker()

Wombat::MamdaQuoteChecker::~MamdaQuoteChecker ( )

Desctructor.

Member Function Documentation

◆ checkSnapShotNow()

void Wombat::MamdaQuoteChecker::checkSnapShotNow ( )

Perform an ad hoc snapshot check now.

This may be useful if the checking is to be performed by some external trigger event.

◆ getSuccessCount()

mama_u32_t Wombat::MamdaQuoteChecker::getSuccessCount ( ) const
Returns
The number of successful checks.

◆ getInconclusiveCount()

mama_u32_t Wombat::MamdaQuoteChecker::getInconclusiveCount ( ) const

Return the nmber of inconclusive counts.

An attempt to check the order book may be inconclusive if the order book sequence numbers do not match up.

Returns
The number of inconclusive checks.

◆ getFailureCount()

mama_u32_t Wombat::MamdaQuoteChecker::getFailureCount ( ) const

Return the number of failed checks.

This should be zero, of course.

Returns
The number of failed checks.

The documentation for this class was generated from the following file:


© 2012 Linux Foundation