private String getTabTitle(MemoryLogModel memoryLogModel) { SessionID sessionId = memoryLogModel.getSessionId(); if (sessionId == null) { return NO_SESSION_ID; } else { return sessionId.toString(); } }
private String getLogSuffix(SessionID sessionID, IoSession protocolSession) { String suffix = ":"; if (sessionID != null) { suffix += "sessionID=" + sessionID.toString() + ";"; } if (protocolSession != null) { suffix += "address=" + protocolSession.getRemoteAddress(); } return suffix; }
public Pair(ClOrdID clOrdID, SessionID sessionID) { this.clOrdID = clOrdID; this.sessionID = sessionID; hashCode = ("C:" + clOrdID.toString() + "S:" + sessionID.toString()).hashCode(); }