[QFJ-46] add method to get all Session IDs from SessionSettings object Created: 12/Aug/06  Updated: 24/Sep/07  Resolved: 17/Aug/06

Status: Closed
Project: QuickFIX/J
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Default
Reporter: Markus Khouri Assignee: Steve Bate
Resolution: Fixed Votes: 0
Labels: None


 Description   

This might already be possible, but I cannot find the method; being new, i obviously am learning a lot.

Consider adding a method with the following signature to SessionSettings

public void List getSessionIds()

This would return a non-null implementation of List, probably an ArrayList. I would not expect this method to throw an error. The SessionID object is immutable, i.e. there are no setXXX() methods, so I do not think that there ought to be an issue with returning the keys to the underlining hash.... though I could be wrong.

Such a method would seem to make sense since most of the other methods in SessionSettings take a SessionID parameter.



 Comments   
Comment by Steve Bate [ 17/Aug/06 ]

There is a method SessionSettings.sectionIterator() that may do what you want. It will return the SessionIDs for each non-default section of the settings files. You can then use those IDs to access information about the various sessions. You can also get the SessionIDs for the created sessions from the socket acceptor or initiator. There is a getSessions() method on both of those that returns a list of SessionIDs being connected by that connector.

Generated at Tue Jul 01 07:59:04 UTC 2025 using JIRA 7.5.2#75007-sha1:9f5725bb824792b3230a5d8716f0c13e296a3cae.