43 Feed(
const std::string& addr,
unsigned int port,
const std::string& nif =
"",
FeedEngine* fe =
nullptr)
72ONIXS_B3_UMDF_MD_API std::ostream&
operator<<(std::ostream& stream,
const Feed& descriptor);
225 std::ostringstream out;
234 static void gatherChannelIds(std::vector<int>& channelIds,
const std::string& channelConfigFile);
#define ONIXS_B3_UMDF_MD_NAMESPACE_END
#define ONIXS_B3_UMDF_MD_NAMESPACE_BEGIN
#define ONIXS_B3_UMDF_MD_API_DECL(typeKind, typeName)
The Feed Engine machinery.
A shared memory pool for building order books.
ONIXS_B3_UMDF_MD_API std::ostream & operator<<(std::ostream &stream, const LoggerSettings &settings)
FeedEngine * feedEngine
Feed engine to use on feed.
bool valid() const
Returns true if the descriptor points to valid ip address.
std::string networkInterface
Specifies one or more network interfaces to use while joining the multicast group; use semi-colon del...
Feed(const std::string &addr, unsigned int port, const std::string &nif="", FeedEngine *fe=nullptr)
std::string address
IP address.
unsigned port
Port number.
Handler configuration settings.
std::string networkInterfaceB
Specifies one or more network interfaces to use while joining the multicast group B; use semi-colon d...
std::string networkInterfaceA
Specifies one or more network interfaces to use while joining the multicast group A; use semi-colon d...
FeedEngine * feedEngine
Feed engine.
std::string toString() const
Returns the string representation.
static void gatherChannelIds(std::vector< int > &channelIds, const std::string &channelConfigFile)
Gathers channel ids from the given channel configuration file.
std::string networkInterface
Specifies one or more network interfaces to use while joining the multicast group; use semi-colon del...
bool discardQueuedIncrementalPacketsIncludedInSnapshots
Discard queued incremental packets included in snapshots.
OrderBookPool * orderBookPool
A shared pool for building books.
bool startIncrementalFeedsAfterInstrumentRecovery
Start incremental feeds after instrument recovery.
FeedGroup snapshotFeeds
Snapshot recovery multicast feeds.
LoggerSettings loggerSettings
Logger settings.
static constexpr size_t FullOrderBookDepth
Max depth of the order book.
UInt32 outOfOrderPacketMaxInterval
Defines value of threshold used by Handler to differ out-of-order packets from gaps.
FeedGroup instrumentFeeds
Instrument definition multicast feeds.
std::string licenseString
License string.
UInt32 heartbeatInterval
Specifies maximal time interval between two network packets.
size_t incrementalQueueSize
Max incremental queue size.
FeedGroup incrementalFeeds
Incremental multicast feeds.
std::string licenseDirectory
Path to the license directory.
UInt32 lostPacketWaitTime
Indicates for how long Handler should wait for the packet before it's considered as totally lost.
bool buildOrderBooks
Build order books.
size_t orderBookDepth
Exposed depth of the order books.
HandlerSettings & loadFeeds(int channelId, const std::string &channelConfigFile)
Loads channel feed settings from the given channel configuration file.