protected Session findQFSession(IoSession ioSession, SessionID sessionID) { Session quickfixSession = findQFSession(ioSession); if (quickfixSession == null) { quickfixSession = Session.lookupSession(sessionID); } return quickfixSession; }
@Override public void onCreate(SessionID sessionId) { logger.info("Session created: {}", sessionId); this.sessionId = sessionId; Session.lookupSession(sessionId).logon(); }
protected Session findQFSession(IoSession ioSession, SessionID sessionID) { Session quickfixSession = findQFSession(ioSession); if (quickfixSession == null) { quickfixSession = Session.lookupSession(sessionID); } return quickfixSession; }
protected Session findQFSession(IoSession ioSession, SessionID sessionID) { Session quickfixSession = findQFSession(ioSession); if (quickfixSession == null) { quickfixSession = Session.lookupSession(sessionID); } return quickfixSession; }
@Override public void run() { Session.lookupSession(sessionId).send(message); }
public void sendMessage(final Message message, final SessionID sessionId) { log.trace("sending message: {}", message); Session.lookupSession(sessionId).send(message); }
private void sendMessage(Message message, SessionID sessionId) { Session.lookupSession(sessionId).send(message); }
public void refresh() throws IOException { // IOException is declared to maintain strict compatibility with QF JNI final String text = "memory store does not support refresh!"; final Session session = sessionID != null ? Session.lookupSession(sessionID) : null; if (session != null) { session.getLog().onErrorEvent("ERROR: " + text); } else { LoggerFactory.getLogger(MemoryStore.class).error(text); } }
public void refresh() throws IOException { // IOException is declared to maintain strict compatibility with QF JNI final String text = "memory store does not support refresh!"; final Session session = sessionID != null ? Session.lookupSession(sessionID) : null; if (session != null) { session.getLog().onErrorEvent("ERROR: " + text); } else { LoggerFactory.getLogger(MemoryStore.class).error(text); } }
public void refresh() throws IOException { // IOException is declared to maintain strict compatibility with QF JNI final String text = "memory store does not support refresh!"; if (sessionID != null) { Session session = Session.lookupSession(sessionID); session.getLog().onErrorEvent("ERROR: " + text); } else { LoggerFactory.getLogger(MemoryStore.class).error(text); } }
public void logout() { for (SessionID sessionId : initiator.getSessions()) { Session.lookupSession(sessionId).logout("user requested"); } }
public void onCreate(SessionID sessionID) { Session.lookupSession(sessionID).getLog().onEvent("Valid order types: " + validOrderTypes); }
public synchronized void logon() { if (!initiatorStarted) { try { initiator.start(); initiatorStarted = true; } catch (Exception e) { log.error("Logon failed", e); } } else { for (SessionID sessionId : initiator.getSessions()) { Session.lookupSession(sessionId).logon(); } } }
public TabularData getSessions() throws IOException { List<ConnectorSession> sessions = new ArrayList<>(); for (SessionID sessionID : connector.getSessions()) { Session session = Session.lookupSession(sessionID); sessions.add(new ConnectorSession(session, sessionExporter.getSessionName(sessionID))); } try { return tabularDataAdapter.fromBeanList("Sessions", "Session", "sessionID", sessions); } catch (OpenDataException e) { throw JmxSupport.toIOException(e); } }
public TabularData getLoggedOnSessions() throws OpenDataException { List<ObjectName> names = new ArrayList<>(); for (SessionID sessionID : connector.getSessions()) { Session session = Session.lookupSession(sessionID); if (session.isLoggedOn()) { names.add(sessionExporter.getSessionName(sessionID)); } } return tabularDataAdapter.fromArray("Sessions", "SessionID", toObjectNameArray(names)); }
public TabularData getLoggedOnSessions() throws OpenDataException { List<ObjectName> names = new ArrayList<>(); for (SessionID sessionID : connector.getSessions()) { Session session = Session.lookupSession(sessionID); if (session.isLoggedOn()) { names.add(sessionExporter.getSessionName(sessionID)); } } return tabularDataAdapter.fromArray("Sessions", "SessionID", toObjectNameArray(names)); }
public TabularData getLoggedOnSessions() throws OpenDataException { List<ObjectName> names = new ArrayList<>(); for (SessionID sessionID : connector.getSessions()) { Session session = Session.lookupSession(sessionID); if (session.isLoggedOn()) { names.add(sessionExporter.getSessionName(sessionID)); } } return tabularDataAdapter.fromArray("Sessions", "SessionID", toObjectNameArray(names)); }
public TabularData getSessions() throws IOException { List<ConnectorSession> sessions = new ArrayList<>(); for (SessionID sessionID : connector.getSessions()) { Session session = Session.lookupSession(sessionID); sessions.add(new ConnectorSession(session, sessionExporter.getSessionName(sessionID))); } try { return tabularDataAdapter.fromBeanList("Sessions", "Session", "sessionID", sessions); } catch (OpenDataException e) { throw JmxSupport.toIOException(e); } }
public TabularData getSessions() throws IOException { List<ConnectorSession> sessions = new ArrayList<>(); for (SessionID sessionID : connector.getSessions()) { Session session = Session.lookupSession(sessionID); sessions.add(new ConnectorSession(session, sessionExporter.getSessionName(sessionID))); } try { return tabularDataAdapter.fromBeanList("Sessions", "Session", "sessionID", sessions); } catch (OpenDataException e) { throw JmxSupport.toIOException(e); } }
private void registerSessions() { for (SessionID sessionID : connector.getSessions()) { if (sessionExporter.getSessionName(sessionID) == null) { try { final ObjectName name = sessionExporter.register( jmxExporter, Session.lookupSession(sessionID), connectorName, settings); sessionNames.add(name); } catch (RuntimeException e) { throw e; } catch (Exception e) { throw new QFJException("Connector MBean postregistration failed", e); } } } }