OpenMAMA
MamdaOrderBookChecker.h
Go to the documentation of this file.
1 /* $Id$
2  *
3  * OpenMAMA: The open middleware agnostic messaging API
4  * Copyright (C) 2011 NYSE Technologies, Inc.
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19  * 02110-1301 USA
20  */
21 
22 #ifndef MamdaOrderBookCheckerH
23 #define MamdaOrderBookCheckerH
24 
28 #include <mama/mamacpp.h>
29 
30 namespace Wombat
31 {
32 
33  class MamdaOrderBook;
34  class MamdaOrderBookListener;
35  class MamdaOrderSource;
36 
53  class MAMDAOPTExpDLL MamdaOrderBookChecker
54  {
56  MamdaOrderBookChecker& operator= (const MamdaOrderBookChecker&);
57 
58  public:
80  MamdaOrderBookChecker (const MamdaOrderBook& realTimeBook,
81  const MamdaSubscription& realTimeSubsc,
82  MamdaOrderBookListener& realTimeListener,
84  mama_f64_t intervalSeconds);
85 
86  MamdaOrderBookChecker (MamaQueue* queue,
88  MamaSource* source,
89  const char* symbol,
90  mama_f64_t intervalSeconds);
91 
95  ~MamdaOrderBookChecker();
96 
101  void checkSnapShotNow();
102 
106  mama_u32_t getSuccessCount() const;
107 
115  mama_u32_t getInconclusiveCount() const;
116 
122  mama_u32_t getFailureCount() const;
123 
124  struct MamdaOrderBookCheckerImpl;
125 
126  private:
127  MamdaOrderBookCheckerImpl& mImpl;
128  };
129 
130 } // namespace
131 
132 #endif // MamdaOrderBookCheckerH


© 2012 Linux Foundation