public FixClient(final SessionSettings settings) throws ConfigError { MessageStoreFactory messageStoreFactory = new FileStoreFactory(settings); SLF4JLogFactory logFactory = new SLF4JLogFactory(settings); MessageFactory messageFactory = new DefaultMessageFactory(); socketInitiator = new SocketInitiator(this, messageStoreFactory, settings, logFactory, messageFactory); }
public QuickFixServer() throws ConfigError { SessionSettings settings = new SessionSettings(getClass().getResourceAsStream("/quickfix/quickfix-server.properties")); MessageStoreFactory storeFactory = new MemoryStoreFactory(); LogFactory logFactory = new SLF4JLogFactory(settings); MessageFactory messageFactory = new DefaultMessageFactory(); Application application = new QuickFixStreamingApp(quoteQueue); acceptor = new SocketAcceptor(application, storeFactory, settings, logFactory, messageFactory); }
public FixServer(final SessionSettings settings, final Publisher orderPublisher) throws ConfigError { this.orderPublisher = orderPublisher; MessageStoreFactory messageStoreFactory = new FileStoreFactory(settings); SLF4JLogFactory logFactory = new SLF4JLogFactory(settings); MessageFactory messageFactory = new DefaultMessageFactory(); socketAcceptor = new SocketAcceptor(this, messageStoreFactory, settings, logFactory, messageFactory); sessionByBroker = new HashMap<String, SessionID>(); matchingUnit = new MatchingUnit("MSFT"); matchingUnit.register(this); matchingUnit.setTradingMode(TradingMode.Continuous); matchingUnit.setTradingPhase(TradingPhase.CoreContinuous); }