eSpeed Multicast Market Data Handler for C++  1.5.2.0
Public Member Functions | Static Public Member Functions | List of all members
Handler Class Reference

Native eSpeed Market Data Handler. More...

Public Member Functions

 Handler (const HandlerSettings &settings)
 Performs instance initialization. More...
 
virtual ~Handler ()
 Finalizes the Handler.
 
void registerErrorListener (ErrorListener *listener)
 Assigns listener for errors occurred while executing handler. More...
 
void registerWarningListener (WarningListener *listener)
 Assigns listener for warnings occurred while executing handler. More...
 
void registerHandlerStateListener (HandlerStateListener *listener)
 Assigns listener for state change events occurred while executing handler. More...
 
void registerMarketDataListener (MarketDataListener *listener)
 Assigns listener for market data change events occurred while executing handler. More...
 
void registerLogReplayListener (LogReplayListener *listener)
 Assigns listener for log replay events occurred while executing handler. More...
 
HandlerState::Enum state () const
 Returns handler state.
 
void log (LogLevel::Enum logLevel, const char *logMessage, size_t length)
 Logs the given user-level message to the handler log.
 
void log (LogLevel::Enum logLevel, const char *logMessage)
 Logs the given user-level message to the handler log.
 
void log (LogLevel::Enum logLevel, const std::string &str)
 Logs the given user-level message to the handler log.
 
void start (const Room &room)
 Start listen feed. More...
 
void start (const Room &room, const FeedAddress &primaryAddr)
 Start listen feed. More...
 
void start (const Room &room, const FeedAddress &primaryAddr, const FeedAddress &secondaryAddr)
 Start listen feed. More...
 
void start (const LogReplaySettings &replaySettings)
 Start replay data stored in logs. More...
 
void stop (const Room &room)
 Stop listen feed. More...
 
void stop ()
 Stop listen all feeds.
 
const std::string & licenseExpirationDate () const
 Returns the license expiration date.
 

Static Public Member Functions

static const std::string & version ()
 Returns Handler's version.
 

Detailed Description

Native eSpeed Market Data Handler.

Constructor & Destructor Documentation

Handler ( const HandlerSettings settings)

Performs instance initialization.

Parameters
settingsdefines values for various options which affect handler behavior like enabling logging during execution of the handler.

Member Function Documentation

void registerErrorListener ( ErrorListener listener)

Assigns listener for errors occurred while executing handler.

It's permissible to change the listener multiple times during handler's life-time, but only when handler is in disconnected state.

void registerHandlerStateListener ( HandlerStateListener listener)

Assigns listener for state change events occurred while executing handler.

It's permissible to change the listener multiple times during handler's life-time, but only when handler is in disconnected state.

void registerLogReplayListener ( LogReplayListener listener)

Assigns listener for log replay events occurred while executing handler.

It's permissible to change the listener multiple times during handler's life-time, but only when handler is in disconnected state.

void registerMarketDataListener ( MarketDataListener listener)

Assigns listener for market data change events occurred while executing handler.

It's permissible to change the listener multiple times during handler's life-time, but only when handler is in disconnected state.

void registerWarningListener ( WarningListener listener)

Assigns listener for warnings occurred while executing handler.

It's permissible to change the listener multiple times during handler's life-time, but only when handler is in disconnected state.

void start ( const Room &  room)

Start listen feed.

Parameters
roomRoom name.
Note
Have to be used only in log replay mode
void start ( const Room &  room,
const FeedAddress primaryAddr 
)

Start listen feed.

Parameters
roomRoom name.
primaryAddrPrimary feed address.
void start ( const Room &  room,
const FeedAddress primaryAddr,
const FeedAddress secondaryAddr 
)

Start listen feed.

Parameters
roomRoom name.
primaryAddrPrimary feed address.
secondaryAddrSecondary feed address.
void start ( const LogReplaySettings replaySettings)

Start replay data stored in logs.

Parameters
replaySettingsdefines values for various options which affect handler behavior at replay log time.
void stop ( const Room &  room)

Stop listen feed.

Parameters
roomRoom name.