OpenMAMA
MamdaPubStatusListener.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 MamdaPubStatusListenerH
23 #define MamdaPubStatusListenerH
24 
25 #include <mamda/MamdaConfig.h>
26 #include <mamda/MamdaMsgListener.h> // MamdaMsgListener Interface
27 #include <mamda/MamdaPubStatus.h>
28 #include <mamda/MamdaFieldState.h>
29 
30 namespace Wombat
31 {
32 
33  class MamdaPubStatusHandler;
34 
53  class MAMDAExpDLL MamdaPubStatusListener
54  : public MamdaMsgListener
55  , public MamdaPubStatus
56  {
57  public:
59  virtual ~MamdaPubStatusListener ();
60 
61  void addHandler (MamdaPubStatusHandler* handler);
62  void updateFieldStates ();
63 
68  const char* getSymbol () const;
69  const char* getActivityTime () const;
70  const char* getActivityDate () const;
71  const char* getPubId () const;
72  const char* getPubClass () const;
73  const char* getPubHostName () const;
74 
75  MamdaFieldState getSymbolFieldState () const;
76  MamdaFieldState getActivityTimeFieldState () const;
77  MamdaFieldState getActivityDateFieldState () const;
78  MamdaFieldState getPubIdFieldState () const;
79  MamdaFieldState getPubClassFieldState () const;
80  MamdaFieldState getPubHostNameFieldState () const;
81 
86  const char* getStatusMsgType () const;
87  MamdaFieldState getStatusMsgTypeFieldState () const;
88 
96  const char* getPubFtMode () const; // HB FT -- -- --
97  const char* getPubMhMode () const; // HB -- -- MH --
98  const char* getLineStatus () const; // HB -- LS -- --
99  long getStatusSeqNum () const; // HB -- -- -- --
100  long getBeginGapSeqNum () const; // -- -- -- -- GP
101  long getEndGapSeqNum () const; // -- -- -- -- GP
102  long getPubCacheSize () const; // HB -- -- -- --
103  const char* getFreeText () const; // HB FT LS MH GP
104 
105  MamdaFieldState getPubFtModeFieldState () const;
106  MamdaFieldState getPubMhModeFieldState () const;
107  MamdaFieldState getLineStatusFieldState () const;
108  MamdaFieldState getStatusSeqNumFieldState () const;
109  MamdaFieldState getBeginGapSeqNumFieldState() const;
110  MamdaFieldState getEndGapSeqNumFieldState () const;
111  MamdaFieldState getPubCacheSizeFieldState () const;
112  MamdaFieldState getFreeTextFieldState () const;
113 
117  virtual void onMsg (MamdaSubscription* subscription,
118  const MamaMsg& msg,
119  short msgType);
120 
121  struct MamdaPubStatusListenerImpl;
122 
123  private:
124  MamdaPubStatusListenerImpl& mImpl;
125  };
126 
127 }
128 
129 #endif // MamdaPubStatusListenerH
MamdaPubStatusListener is a class that specializes in handling Publisher (Feed Handler) Status update...
Definition: MamdaPubStatusListener.h:53
MamdaPubStatus is an interface that provides access to the Security Status fields such as symbol anno...
Definition: MamdaPubStatus.h:35
MamdaOrderImbalanceUpdate is an interface that provides access to order imbalance related fields...
Definition: MamdaAuctionFields.h:29
A MamdaSubscription is used to register interest in a particular symbol and source.
Definition: MamdaSubscription.h:54
MamdaFieldState
An enumeration representing field state.
Definition: MamdaFieldState.h:37
MamdaMsgListener defines an interface for handling MAMA messages for a MamdaSubscription.
Definition: MamdaMsgListener.h:38
MamdaPubStatusHandler is an interface for applications that want to have an easy way to handle feed h...
Definition: MamdaPubStatusHandler.h:39


© 2012 Linux Foundation