B2BITS FIX Antenna C++ 2.32.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
Engine::AdminApplication Class Referenceabstract

Administrative application interface. More...

#include <B2BITS_AdminApplication.h>

+ Inheritance diagram for Engine::AdminApplication:
+ Collaboration diagram for Engine::AdminApplication:

Public Types

typedef std::map< std::string, Session * > AdminSessions
 Type for the administrative sessions container.
 
enum  SessionAction { SSN_NEW = 0 , SSN_DELETED , SSN_UPDATED }
 Possible session actions. More...
 

Public Member Functions

virtual void bindApplication (AdminApplication *appl)=0
 Binds session from embedded AdminApplication.
 
virtual void bindSession (Session *pSession)=0
 Binds session with AdminApplication.
 
virtual AdminSessions getAdminSessions () const =0
 Returns admin sessions map.
 
virtual void subscriptionListNotify (SessionAction status, Session *changedSsn, const SessionContext &reciverSsnInfo)=0
 Handle notification on sessions creation or deleting.
 
virtual void terminate ()=0
 Terminates all administrative sessions.
 
virtual void terminateNA ()=0
 Terminates all non-administrative sessions, this application has ownership of.
 

Additional Inherited Members

- Protected Member Functions inherited from Engine::Application
virtual void onAfterMessageIsParsed (FIXMessage &msg, const Session &sn)
 Fired after incoming message is parsed and stored in storage.
 
virtual void onAfterMessageIsReceived (char const *msg, std::size_t msgSize, const Session &sn)
 Fired just after message is received from socket.
 
virtual void onAfterMessageIsSent (const AfterMessageIsSentEvent &event, const Session &sn)
 Fired after message is sent to socket.
 
virtual void onAsyncConnectCompleted (int error, const Session &sn)
 Fired when async connect operation has completed.
 
virtual void onBeforeMessageIsSent (const BeforeMessageIsSentEvent &event, const Session &sn)
 Fired before message is sent to socket.
 
virtual void onBeforeMessageIsSent (int msgSeqNum, const Session &sn, std::size_t msgCount)
 Fired before message is sent to socket.
 
virtual void onBeforeMessageIsSerialized (FIXMessage &msg, const Session &sn)
 Fired after outgoing message is validated and before it is stored in the storage and sent to socket.
 
virtual void onHeartbeatWithTestReqIDEvent (const HeartbeatWithTestReqIDEvent &event, const Session &sn)=0
 This call-back method is called when a Heartbeat message (MsgType = 0) with the TestReqID field (tag = 112) has been received.
 
virtual void onIncomingThrottlerTriggered (const IncomingThrottlerTriggeredEvent &event, const Session &sn)
 Fired when one of the incoming throttlers restriction is met.
 
virtual void onInMsgSeqNumTooLowEvent (const InMsgSeqNumTooLowEvent *event, const Session &sn)
 Faired on incoming message with sequence number too low without PossDupFlag set.
 
virtual void onInSeqNumChanged (int oldValue, int newValue, const Session &sn)
 Fired just after the incoming seqnum is changed.
 
virtual void onInvalidResendRequestEvent (const ResendRequestEvent &event, const Session &sn)
 This call-back method is called when a ill-formed Resend Request (MsgType = 2) has been received.
 
virtual void onLogonEvent (const LogonEvent *event, const Session &sn)=0
 This call-back method is called to notify that the Logon message has been received from the counterpart.
 
virtual void onLogoutEvent (const LogoutEvent *event, const Session &sn)=0
 This call-back method is called to notify that the Logout message has been received from the counterpart or the session was disconnected.
 
virtual void onMessagePreparedForSending (const FIXMessage &msg, const Session &sn)
 Fired when message is prepared for sending to socket.
 
virtual void onMsgRejectEvent (const MsgRejectEvent *event, const Session &sn)=0
 This call-back method is called when a message have to be rejected.
 
virtual void onNewStateEvent (const NewStateEvent &event, const Session &sn)=0
 This call-back method is called when the session has changed its state.
 
virtual void onOutgoingSessionLevelRejectEvent (const OutgoingSessionLevelRejectEvent *event, const Session &sn)
 This call-back method is called when a session-level Reject message (MsgType = 3) is sent.
 
virtual void onReconnectTryEvent (int remainTries, const Session &sn)
 This call-back method is called each time session tries to reconnect Callback is called in the scope of the session lock.
 
virtual bool onResend (const FIXMessage &msg, const Session &sn)=0
 This call-back method is called when an outgoing message is about to be resent as a reply to the incoming ResendRequest message.
 
virtual void onResendRequestEvent (const ResendRequestEvent &event, const Session &sn)=0
 This call-back method is called when a Resend Request (MsgType = 2) has been received.
 
virtual bool onResendRequestLoop (const ResendRequestEvent &event, const Session &sn)
 This call-back method is called when #DuplicateResendRequestLimit ResendRequest messages are received.
 
virtual void onSequenceGapEvent (const SequenceGapEvent *event, const Session &sn)=0
 This call-back method is called when a message gap is detected in incoming messages.
 
virtual void onSessionLevelRejectEvent (const SessionLevelRejectEvent *event, const Session &sn)=0
 This call-back method is called when a session-level Reject message (MsgType = 3) is received.
 
virtual bool onSessionLevelRejectWithSeqNumTooHigh (const FIXMessage &msg, const Session &sn)
 Fired when Session Level Reject message is received with the sequence number too high.
 
virtual void onSwitchConnectionEvent (const SwitchConnectionEvent &event, const Session &sn)
 This call-back method is called when the session is switching to another connection.
 
virtual void onTerminated (const Session &sn)
 Fired when Session is terminated and all internal threads are stopped.
 
virtual void onUnableToRouteMessage (const UnableToRouteMessageEvent &event, const Session &sn)=0
 This call-back method is called when the message has to be routed to the session, which does not exist.
 
virtual void onUnexpectedMessageEvent (const UnexpectedMessageEvent *event, const Session &aSn)
 This call-back method is called to notify about received unexpected message.
 
virtual bool process (const FIXMessage &msg, const Session &sn)=0
 A call-back method to process incoming business level messages.
 
virtual ~Application ()
 Destructor.
 

Detailed Description

Administrative application interface.

Member Typedef Documentation

◆ AdminSessions

typedef std::map<std::string, Session*> Engine::AdminApplication::AdminSessions

Type for the administrative sessions container.

Member Enumeration Documentation

◆ SessionAction

Possible session actions.

Enumerator
SSN_NEW 
SSN_DELETED 
SSN_UPDATED 

Member Function Documentation

◆ bindApplication()

virtual void Engine::AdminApplication::bindApplication ( AdminApplication * appl)
pure virtual

Binds session from embedded AdminApplication.

Used for custom admin applications only

◆ bindSession()

virtual void Engine::AdminApplication::bindSession ( Session * pSession)
pure virtual

Binds session with AdminApplication.

Application takes reference to the session

◆ getAdminSessions()

virtual AdminSessions Engine::AdminApplication::getAdminSessions ( ) const
pure virtual

Returns admin sessions map.

◆ subscriptionListNotify()

virtual void Engine::AdminApplication::subscriptionListNotify ( SessionAction status,
Session * changedSsn,
const SessionContext & reciverSsnInfo )
pure virtual

Handle notification on sessions creation or deleting.

◆ terminate()

virtual void Engine::AdminApplication::terminate ( )
pure virtual

Terminates all administrative sessions.

◆ terminateNA()

virtual void Engine::AdminApplication::terminateNA ( )
pure virtual

Terminates all non-administrative sessions, this application has ownership of.