[Quickfix-developers] Session details storage; time taking to log on/log off with multiple sessions
Brought to you by:
orenmnero
|
From: PaulVR <p.r...@gm...> - 2006-12-07 19:24:16
|
To initialise an initiator, I populate a FIX::SessionSettings object and then pass it to the initiator's constructor. Is there a way to query the information passed in in the FIX::SessionSettings object when it includes more fields than QuickFIX requires? I noticed that the Session's DataDictionary will only contain the details needed for the Session and it will not include additional fields passed in during initialisation whilst the initiator does not provide the interface to get the information back. Since when messages arrive I have a SessionID, I could look up associated read-only details such as the name of a gateway or a counterparty. At the moment I keep FIX::SessionSettings separately in addition to what I pass to the initiator's constructor and then query these but if it were possible to encapsulate required information in the Session, it would be better. Also, there may be a need for some read/write information: for example, I noticed that logoff may not necessarily be preceded by a successful logon, and we alert users by e-mail if a session has been disconnected. If I could keep the information about successful logons in the Session, I would not alert users to those logoffs that have not been material to the situation. As far as time it takes sessions to log on or log off is concerned, when one initiator (ThreadedSocketInitiator) handles many (around 13) sessions, I noticed that if I were to choose to initiate "good" (that connect without problems) sessions only, these would connect almost instantaneously but when intermingled with and hampered by "bad" ones, they may take a little while. The same goes for log-offs: is there a way to tune the engine to terminate a service as quickly as possible? I tried to experiment with calling .logout() on sessions before calling stop() on the initiator and it appeared to have some effect, although not in a predictable manner. Thank you. Paul -- View this message in context: http://www.nabble.com/Session-details-storage--time-taking-to-log-on-log-off-with-multiple-sessions-tf2776539.html#a7745872 Sent from the QuickFIX - Dev mailing list archive at Nabble.com. |