Engine::Application Class Reference

#include <B2BITS_Application.h>

Inheritance diagram for Engine::Application:

Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ~Application ()
virtual bool process (const FIXMessage &msg, const Session &sn)=0
virtual void onLogonEvent (const LogonEvent *event, const Session &sn)=0
virtual void onLogoutEvent (const LogoutEvent *event, const Session &sn)=0
virtual void onUnexpectedMessageEvent (const UnexpectedMessageEvent *, const Session &)
virtual void onSequenceGapEvent (const SequenceGapEvent *event, const Session &sn)=0
virtual void onSessionLevelRejectEvent (const SessionLevelRejectEvent *event, const Session &sn)=0
virtual void onMsgRejectEvent (const MsgRejectEvent *event, const Session &sn)=0
virtual void onHeartbeatWithTestReqIDEvent (const HeartbeatWithTestReqIDEvent &event, const Session &sn)=0
virtual void onResendRequestEvent (const ResendRequestEvent &event, const Session &sn)=0
virtual void onNewStateEvent (const NewStateEvent &event, const Session &sn)=0
virtual void onUnableToRouteMessage (const UnableToRouteMessageEvent &event, const Session &sn)=0
virtual bool onResend (const FIXMessage &msg, const Session &sn)=0
virtual void onNewConnectionAttempt (Session const &session)


Detailed Description

Generic application interface. Processes the incoming messages. All user's applications must be inherited from this class.

Constructor & Destructor Documentation

virtual Engine::Application::~Application (  )  [inline, virtual]

Destructor


Member Function Documentation

virtual bool Engine::Application::process ( const FIXMessage msg,
const Session sn 
) [pure virtual]

A call-back method to process incoming messages. If the application can not process the given message, the FIX Engine will try to deliver it later according to "Delayed Processing Algorithm".

Warning:
This method should complete as quickly as possible. Do not perform time-consuming tasks inside it.
Parameters:
msg the incoming message.
sn The corresponding FIX session.
Returns:
true if the application can process the given message, otherwise false.

Implemented in Engine::AdminApplication.

virtual void Engine::Application::onLogonEvent ( const LogonEvent event,
const Session sn 
) [pure virtual]

This call-back method is called to notify that the Logon message has been received from the counterpart.

Parameters:
event Event information.
sn The corresponding FIX session.

Implemented in Engine::AdminApplication.

virtual void Engine::Application::onLogoutEvent ( const LogoutEvent event,
const Session sn 
) [pure virtual]

This call-back method is called to notify that the Logout message has been received from the counterpart or the session was disconnected.

Parameters:
event Information about occured event.
sn The corresponding FIX session.

Implemented in Engine::AdminApplication.

virtual void Engine::Application::onUnexpectedMessageEvent ( const UnexpectedMessageEvent ,
const Session  
) [inline, virtual]

This call-back method is called to notify about recevied unexpected message. For example - when first message in session is not a Logon.

Parameters:
event Information about occured event.
sn The corresponding FIX session.

Reimplemented in Engine::AdminApplication.

virtual void Engine::Application::onSequenceGapEvent ( const SequenceGapEvent event,
const Session sn 
) [pure virtual]

This call-back method is called when a message gap is detected in incoming messages.

Parameters:
event Information about occured event.
sn The corresponding FIX session.

Implemented in Engine::AdminApplication.

virtual void Engine::Application::onSessionLevelRejectEvent ( const SessionLevelRejectEvent event,
const Session sn 
) [pure virtual]

This call-back method is called when a session-level Reject message (MsgType = 3) is received.

Parameters:
event Information about occured event.
sn The corresponding FIX session.

Implemented in Engine::AdminApplication.

virtual void Engine::Application::onMsgRejectEvent ( const MsgRejectEvent event,
const Session sn 
) [pure virtual]

This call-back method is called when a message have to be rejected.

Parameters:
event - object that incapsulates rejected message
sn - session object that rejects message

Implemented in Engine::AdminApplication.

virtual void Engine::Application::onHeartbeatWithTestReqIDEvent ( const HeartbeatWithTestReqIDEvent event,
const Session sn 
) [pure virtual]

This call-back method is called when a Heartbeat message (MsgType = 0) with the TestReqID field (tag = 112) has been received.

Usually such a message is sent in reply to a Test Request (MsgType = 1) message.

Parameters:
event Information about occured event.
sn The corresponding FIX session.

Implemented in Engine::AdminApplication.

virtual void Engine::Application::onResendRequestEvent ( const ResendRequestEvent event,
const Session sn 
) [pure virtual]

This call-back method is called when a Resend Request (MsgType = 2) has been received.

Parameters:
event Information about occured event.
sn The corresponding FIX session.

Implemented in Engine::AdminApplication.

virtual void Engine::Application::onNewStateEvent ( const NewStateEvent event,
const Session sn 
) [pure virtual]

This call-back method is called when the session has changed its state.

Parameters:
event Information about occured event.
sn The corresponding FIX session.

Implemented in Engine::AdminApplication.

virtual void Engine::Application::onUnableToRouteMessage ( const UnableToRouteMessageEvent event,
const Session sn 
) [pure virtual]

This call-back method is called when the message has to be routed to the session, which does not exist.

Parameters:
event Information about occured event.
sn The corresponding FIX session.

Implemented in Engine::AdminApplication.

virtual bool Engine::Application::onResend ( const FIXMessage msg,
const Session sn 
) [pure virtual]

This call-back method is called when an outgoing message is about to be resent as a reply to the incoming ResendRequest message.

If the method returns 'true' then the Engine resends the message to counterpart, otherwise it sends the SequenceReset Gap Fill message.

Parameters:
msg Outgoing message.
sn FIX session.
Returns:
true if the message should be resent, otherwise false.

Implemented in Engine::AdminApplication.

virtual void Engine::Application::onNewConnectionAttempt ( Session const &  session  )  [inline, virtual]

This call-back method is called when session establishes new connection with remote server.


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

Generated on Fri Apr 17 12:26:51 2009 for B2BITS FIX Antenna C++ by  doxygen 1.5.6