protected AbstractSocketInitiator(Application application, MessageStoreFactory messageStoreFactory, SessionSettings settings, LogFactory logFactory, MessageFactory messageFactory) throws ConfigError { this(settings, new DefaultSessionFactory(application, messageStoreFactory, logFactory, messageFactory)); }
protected AbstractSocketInitiator(Application application, MessageStoreFactory messageStoreFactory, SessionSettings settings, LogFactory logFactory, MessageFactory messageFactory) throws ConfigError { this(settings, new DefaultSessionFactory(application, messageStoreFactory, logFactory, messageFactory)); }
protected AbstractSocketAcceptor(Application application, MessageStoreFactory messageStoreFactory, SessionSettings settings, LogFactory logFactory, MessageFactory messageFactory) throws ConfigError { this(settings, new DefaultSessionFactory(application, messageStoreFactory, logFactory, messageFactory)); }
protected AbstractSocketInitiator(Application application, MessageStoreFactory messageStoreFactory, SessionSettings settings, LogFactory logFactory, MessageFactory messageFactory) throws ConfigError { this(settings, new DefaultSessionFactory(application, messageStoreFactory, logFactory, messageFactory)); }
protected AbstractSocketAcceptor(Application application, MessageStoreFactory messageStoreFactory, SessionSettings settings, LogFactory logFactory, MessageFactory messageFactory) throws ConfigError { this(settings, new DefaultSessionFactory(application, messageStoreFactory, logFactory, messageFactory)); }
protected AbstractSocketAcceptor(Application application, MessageStoreFactory messageStoreFactory, SessionSettings settings, LogFactory logFactory, MessageFactory messageFactory) throws ConfigError { this(settings, new DefaultSessionFactory(application, messageStoreFactory, logFactory, messageFactory)); }
/** * @param settings session settings * @param templateMappings this is a list of session ID patterns mapped to session IDs in * the settings file. The session IDs represent the template for a specified session ID * pattern. The template is used to dynamically create acceptor sessions. * Use "*" to represent a wildcard for a pattern element. For example, * new SessionID("FIX.4.2", "*", "*") would match for any FIX 4.2 session ID. * This allows separate template session configurations for FIX versions (or * CompIDs) being accepted dynamically on a single TCP port. * @param application application for the dynamic sessions * @param messageStoreFactory message store factory for the dynamic sessions * @param logFactory log factory for the dynamic sessions * @param messageFactory message factory for the dynamic sessions * @see TemplateMapping */ public DynamicAcceptorSessionProvider(final SessionSettings settings, List<TemplateMapping> templateMappings, quickfix.Application application, MessageStoreFactory messageStoreFactory, LogFactory logFactory, MessageFactory messageFactory) { this.settings = settings; this.templateMappings = templateMappings; sessionFactory = new DefaultSessionFactory(application, messageStoreFactory, logFactory, messageFactory); }
/** * @param settings session settings * @param templateMappings this is a list of session ID patterns mapped to session IDs in * the settings file. The session IDs represent the template for a specified session ID * pattern. The template is used to dynamically create acceptor sessions. * Use "*" to represent a wildcard for a pattern element. For example, * new SessionID("FIX.4.2", "*", "*") would match for any FIX 4.2 session ID. * This allows separate template session configurations for FIX versions (or * CompIDs) being accepted dynamically on a single TCP port. * @param application application for the dynamic sessions * @param messageStoreFactory message store factory for the dynamic sessions * @param logFactory log factory for the dynamic sessions * @param messageFactory message factory for the dynamic sessions * @see TemplateMapping */ public DynamicAcceptorSessionProvider(final SessionSettings settings, List<TemplateMapping> templateMappings, quickfix.Application application, MessageStoreFactory messageStoreFactory, LogFactory logFactory, MessageFactory messageFactory) { this.settings = settings; this.templateMappings = templateMappings; sessionFactory = new DefaultSessionFactory(application, messageStoreFactory, logFactory, messageFactory); }
/** * @param settings session settings * @param templateMappings this is a list of session ID patterns mapped to session IDs in * the settings file. The session IDs represent the template for a specified session ID * pattern. The template is used to dynamically create acceptor sessions. * Use "*" to represent a wildcard for a pattern element. For example, * new SessionID("FIX.4.2", "*", "*") would match for any FIX 4.2 session ID. * This allows separate template session configurations for FIX versions (or * CompIDs) being accepted dynamically on a single TCP port. * @param application application for the dynamic sessions * @param messageStoreFactory message store factory for the dynamic sessions * @param logFactory log factory for the dynamic sessions * @param messageFactory message factory for the dynamic sessions * @see TemplateMapping */ public DynamicAcceptorSessionProvider(final SessionSettings settings, List<TemplateMapping> templateMappings, quickfix.Application application, MessageStoreFactory messageStoreFactory, LogFactory logFactory, MessageFactory messageFactory) { this.settings = settings; this.templateMappings = templateMappings; sessionFactory = new DefaultSessionFactory(application, messageStoreFactory, logFactory, messageFactory); }
@Bean(name="dataSourceRedshift") public DataSource dataSourceRedshift() throws SQLException, JSchException { SimpleDriverDataSource dataSource = new SimpleDriverDataSource(); dataSource.setDriver(new com.amazon.redshift.jdbc41.Driver()); dataSource.setUrl("jdbc:postgresql://" + redshiftHost + ":" + redshiftPort + "/" + redshiftDatabase); dataSource.setUsername(redshiftUser); dataSource.setPassword(redshiftPass); DefaultSessionFactory defaultSessionFactory = new DefaultSessionFactory(); TunneledDataSourceWrapper tunneledDataSource = new TunneledDataSourceWrapper( new TunnelConnectionManager( defaultSessionFactory, redshiftTunnel ), dataSource ); return tunneledDataSource; }