Package org.marketcetera.util.quickfix
Class SpringSessionSettings
- java.lang.Object
-
- org.marketcetera.util.spring.LazyBean
-
- org.marketcetera.util.quickfix.SpringSessionSettings
-
public class SpringSessionSettings extends LazyBean
A Spring-aware QuickFIX/J session settings. It also offers these extensions:The settings may be associated with zero or more session descriptors
SpringSessionDescriptor, which inherit default session parameter values from the settings.The log factory class may be specified via the extension parameter
LOG_FACTORY_CLASS_PARAM; if it is not specified, aSLF4JLogFactoryis used.The message store factory class may be specified via the extension parameter
MESSAGE_STORE_FACTORY_CLASS_PARAM; if it is not specified, aFileStoreFactoryis used.
- Since:
- 1.0.0
- Version:
- $Id: SpringSessionSettings.java 17411 2017-04-28 14:50:38Z colin $
- Author:
- tlerios@marketcetera.com
-
-
Field Summary
Fields Modifier and Type Field Description static StringLOG_FACTORY_CLASS_PARAMThe parameter name for the QuickFIX/J log factory class extension parameter.private Map<Object,Object>mDefaultsprivate List<SpringSessionDescriptor>mDescriptorsstatic StringMESSAGE_STORE_FACTORY_CLASS_PARAMThe parameter name for the QuickFIX/J message store factory class extension parameter.private quickfix.LogFactorymQLogFactoryprivate quickfix.MessageStoreFactorymQMessageStoreFactoryprivate quickfix.SessionSettingsmQSettings
-
Constructor Summary
Constructors Constructor Description SpringSessionSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<Object,Object>getDefaults()Returns the receiver's defaults.List<SpringSessionDescriptor>getDescriptors()Returns the receiver's session descriptors.quickfix.LogFactorygetQLogFactory()Returns the receiver's QuickFIX/J log factory.quickfix.MessageStoreFactorygetQMessageStoreFactory()Returns the receiver's QuickFIX/J message store factory.quickfix.SessionSettingsgetQSettings()Returns the receiver's QuickFIX/J session settings.protected voidprocess()Processes the receiver.voidsetDefaults(Map<Object,Object> defaults)Sets the receiver's defaults to the given ones.voidsetDescriptors(List<SpringSessionDescriptor> descriptors)Sets the receiver's session descriptors to the given ones.-
Methods inherited from class org.marketcetera.util.spring.LazyBean
assertNotProcessed, ensureProcessed, forceProcess
-
-
-
-
Field Detail
-
LOG_FACTORY_CLASS_PARAM
public static final String LOG_FACTORY_CLASS_PARAM
The parameter name for the QuickFIX/J log factory class extension parameter.- See Also:
- Constant Field Values
-
MESSAGE_STORE_FACTORY_CLASS_PARAM
public static final String MESSAGE_STORE_FACTORY_CLASS_PARAM
The parameter name for the QuickFIX/J message store factory class extension parameter.- See Also:
- Constant Field Values
-
mDescriptors
private List<SpringSessionDescriptor> mDescriptors
-
mQSettings
private quickfix.SessionSettings mQSettings
-
mQLogFactory
private quickfix.LogFactory mQLogFactory
-
mQMessageStoreFactory
private quickfix.MessageStoreFactory mQMessageStoreFactory
-
-
Method Detail
-
setDefaults
public void setDefaults(Map<Object,Object> defaults)
Sets the receiver's defaults to the given ones. This is a key-value map of QuickFIX/J session parameters, and all keys and values are strings.- Parameters:
defaults- The defaults. It may be null.
-
getDefaults
public Map<Object,Object> getDefaults()
Returns the receiver's defaults. This is a key-value map of QuickFIX/J session parameters, and all keys and values are strings.- Returns:
- The defaults. It may be null.
-
setDescriptors
public void setDescriptors(List<SpringSessionDescriptor> descriptors)
Sets the receiver's session descriptors to the given ones. This method also sets the settings of each descriptor to the receiver.- Parameters:
descriptors- The descriptors. It may be null.
-
getDescriptors
public List<SpringSessionDescriptor> getDescriptors()
Returns the receiver's session descriptors.- Returns:
- The descriptors. It may be null.
-
getQSettings
public quickfix.SessionSettings getQSettings()
Returns the receiver's QuickFIX/J session settings.- Returns:
- The settings.
-
getQLogFactory
public quickfix.LogFactory getQLogFactory()
Returns the receiver's QuickFIX/J log factory.- Returns:
- The factory.
-
getQMessageStoreFactory
public quickfix.MessageStoreFactory getQMessageStoreFactory()
Returns the receiver's QuickFIX/J message store factory.- Returns:
- The factory.
-
process
protected void process()
Description copied from class:LazyBeanProcesses the receiver. This method will only be called once throughLazyBean.ensureProcessed().
-
-