OnixS C++ CME MDP Conflated UDP Handler 1.1.2
API documentation
Loading...
Searching...
No Matches
HandlerListener.h
Go to the documentation of this file.
1// Copyright Onix Solutions Limited [OnixS]. All rights reserved.
2//
3// This software owned by Onix Solutions Limited [OnixS] and is
4// protected by copyright law and international copyright treaties.
5//
6// Access to and use of the software is governed by the terms of the applicable
7// OnixS Software Services Agreement (the Agreement) and Customer end user license
8// agreements granting a non-assignable, non-transferable and non-exclusive license
9// to use the software for it's own data processing purposes under the terms defined
10// in the Agreement.
11//
12// Except as otherwise granted within the terms of the Agreement, copying or
13// reproduction of any part of this source code or associated reference material
14// to any other location for further reproduction or redistribution, and any
15// amendments to this copyright notice, are expressly prohibited.
16//
17// Any reproduction or redistribution for sale or hiring of the Software not in
18// accordance with the terms of the Agreement is a violation of copyright law.
19//
20
21#pragma once
22
23#include <string>
24
26
28
48
51{
52public:
57
61 const std::string& message = std::string())
62 : status_(status), message_(message)
63 {
64 }
65
68 {
69 return status_;
70 }
71
73 void
76 {
77 status_ = status;
78 }
79
82 const std::string& details() const
83 {
84 return message_;
85 }
86
89 void
91 const std::string& message)
92 {
93 message_ = message;
94 }
95
96private:
98 std::string message_;
99};
100
146
150IssueArgs
151{
152 Issue::Enum id_;
153 const std::string& source_;
154 const std::string& description_;
155
156 IssueArgs(const IssueArgs&);
157 IssueArgs& operator =(const IssueArgs&);
158
159public:
162 Issue::Enum id,
163 const std::string& source,
164 const std::string& description)
165 : id_(id)
166 , source_(source)
167 , description_(description)
168 {
169 }
170
173 {
174 return id_;
175 }
176
178 const std::string& source() const
179 {
180 return source_;
181 }
182
184 const std::string& description() const
185 {
186 return description_;
187 }
188};
189
191typedef
192IssueArgs
194
196typedef
199
201
205{
207 virtual
208 void
210 {
211 }
212
214 virtual
215 void
217 {
218 }
219
221 virtual
222 void
226
228 virtual
229 void
235
248 virtual
249 void
253
262 virtual
263 void
269
271 virtual
272 void
274 {
275 }
276
278 virtual
279 void
281 Handler&,
283 {
284 }
285
288 virtual
289 void
293
296 virtual
297 void
301
307 virtual
308 void
310 Handler&,
311 const WarningArgs&)
312 {
313 }
314
321 virtual
322 void
324 Handler&,
325 const ErrorArgs&)
326 {
327 }
328};
329
#define ONIXS_CONFLATEDUDP_LTWT_STRUCT
Definition Bootstrap.h:99
#define ONIXS_CONFLATEDUDP_LTWT_CLASS
Definition Bootstrap.h:95
#define ONIXS_CONFLATEDUDP_EXPORTED_CLASS_DECL(typeName)
Definition Bootstrap.h:47
#define ONIXS_CONFLATEDUDP_EXPORTED_STRUCT
Definition Bootstrap.h:59
#define ONIXS_CONFLATEDUDP_NAMESPACE_END
Definition Bootstrap.h:157
#define ONIXS_CONFLATEDUDP_NAMESPACE_BEGIN
Definition Bootstrap.h:153
Issue::Enum id() const
Issue identifier.
IssueArgs(Issue::Enum id, const std::string &source, const std::string &description)
Initializes issue with provided attributes.
const std::string & source() const
Source of the issue.
const std::string & description() const
Human readable description of the issue.
Gathers information about the recovery completion.
RecoveryCompletionArgs(RecoveryCompletionStatus::Enum status, const std::string &message=std::string())
Initializes with given details.
RecoveryCompletionArgs()
Initializes as blank instance.
void status(RecoveryCompletionStatus::Enum status)
Assigns completion status of the recovery.
RecoveryCompletionStatus::Enum status() const
Indicates completion status of the recovery.
IssueArgs ErrorArgs
Error arguments.
IssueArgs WarningArgs
Warning arguments.
Events raised by Handler while processing market data.
virtual void onStopped(Handler &)
Invoked when Handler has stopped market data processing.
virtual void onStarted(Handler &)
Handler is has started to process market data.
virtual void onEndOfInstrumentRecovery(Handler &, const RecoveryCompletionArgs &)
Download or replay of Security Definition(d) messages is finished.
virtual void onError(Handler &, const ErrorArgs &)
virtual void onTcpRecovery(Handler &)
Handler spawned recovery of lost packets over TCP feed.
virtual void onEndOfTcpRecovery(Handler &, const RecoveryCompletionArgs &)
Handler accomplished recovery of lost packets over TCP feed.
virtual void onInstrumentRecovery(Handler &)
Download or replay of Security Definition(d) messages is started.
virtual void onEndOfRealtimeProcessing(Handler &)
virtual void onWarning(Handler &, const WarningArgs &)
virtual void onEndOfMarketRecovery(Handler &, const RecoveryCompletionArgs &)
@ ConnectionFailure
Identifies network connection failure.
@ ProcessingFailure
Indicates data processing failure.
@ ReceiveTimeout
Indicates data receive timeout.
@ QueueOverflow
Indicates internal queue overflow.
@ OperationFailure
Operation performed by the Handler failed.
@ ReplayFailure
Market data replay failed.
@ ReceiveFailure
Indicates data reception failure.
@ SequenceError
Indicates error in data sequence.
Collection of statuses of recovery completion.
@ Succeeded
Recovery accomplished successfully.