Apama Capital Markets Foundation  10.7.0.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
com::softwareag::marketdata::MDMInterface Class Referenceabstract

#include <Connectivity_MDInterfaces.h>

Public Member Functions

 MDMInterface ()
 
virtual const char * getKey (const std::string &symbol, int64_t sourceId, AP_MDM_StreamType streamType, map_t &ctrlParams)=0
 
virtual void connect (const std::string &subKey, AP_MDM_StreamType streamType, map_t &ctrlParams)=0
 
virtual void disconnect (const std::string &subKey, AP_MDM_StreamType streamType, map_t &ctrlParams)=0
 
virtual void setMarketDataSession (MarketDataSession *mdSession)=0
 

Detailed Description

Market data manager interface

Constructor & Destructor Documentation

com::softwareag::marketdata::MDMInterface::MDMInterface ( )
inline

MDMInterface constructor

Member Function Documentation

virtual void com::softwareag::marketdata::MDMInterface::connect ( const std::string &  subKey,
AP_MDM_StreamType  streamType,
map_t &  ctrlParams 
)
pure virtual

Connect Callback

This is called when a new subscription has been identified by the Market Data library and the adapter should subscribe to the external source for the symbol contained in the subKey. If successful setConnectSuccess() should called, else setConnectFailed().

Parameters
subKeyThe unique subscription key for this connection generated by a call to getKey.
streamTypeThe data stream type this connection is for.
ctrlParamsThe control parameters for this connection.
virtual void com::softwareag::marketdata::MDMInterface::disconnect ( const std::string &  subKey,
AP_MDM_StreamType  streamType,
map_t &  ctrlParams 
)
pure virtual

Disconnect Callback

This is called when the last unsubscription for a symbol has been identified by the Market Data library and the adapter should unsubscribe from the external source for the symbol contained in the subKey. If successful setDisconnectSuccess() should called, else setDisconnectFailed().

Parameters
subKeyThe unique subscription key for this disconnection.
streamTypeThe data stream type this disconnection is for.
ctrlParamsThe control parameters for this disconnection.
virtual const char* com::softwareag::marketdata::MDMInterface::getKey ( const std::string &  symbol,
int64_t  sourceId,
AP_MDM_StreamType  streamType,
map_t &  ctrlParams 
)
pure virtual

Subscription Key Generation Callback

This is called when any subscription is received and the adapter should generate a subscription key. It is used to detect duplicate subscriptions. The basic structure of the key should be:-

  • "symbol:streamType:sourceId:controlparam1=val1;controlParam2=val2;...:"
Parameters
symbolThe symbol this subscription is for.
sourceIdThe source Id this subscription is for.
streamTypeThe data stream type this subscription is for.
ctrlParamsThe control parameters for this subscription.
Returns
The generated subscription key.
virtual void com::softwareag::marketdata::MDMInterface::setMarketDataSession ( MarketDataSession mdSession)
pure virtual

setMarketDataSession Callback

This is called after initialization of MarketDataManager. Through MarketDataSession object users can perform connect/disconnect operations.

Parameters
mdSessionMarketDataSession object

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