public Log create(SessionID sessionID) { // it's actually code in AbstractLog that makes the final code to Log4J and not SLF4JLog itself // so send the AbstractLog here return create(sessionID, AbstractLog.class.getName()); }
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 Log create(SessionID sessionID) { // it's actually code in AbstractLog that makes the final code to Log4J and not SLF4JLog itself // so send the AbstractLog here return create(sessionID, AbstractLog.class.getName()); }
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); }
public Log create(SessionID sessionID) { // it's actually code in AbstractLog that makes the final code to Log4J and not SLF4JLog itself // so send the AbstractLog here return create(sessionID, AbstractLog.class.getName()); }
@Override public ObservableLog create() { unqualifiedLog = new ObservableLog(super.create()); return unqualifiedLog; } /* (non-Javadoc)
@Override public Log create(SessionID inSessionId) { ObservableLog log = new ObservableLog(super.create(inSessionId)); logsBySessionId.put(inSessionId, log); return log; } /**
@Override public Log create(SessionID inSessionId, String inCallerName) { ObservableLog log = new ObservableLog(super.create(inSessionId, inCallerName)); logsByFullyQualifiedSessionId.put(getKey(inSessionId, inCallerName), log); return log; } /* (non-Javadoc)