public Object visit(ConnectionsCommand connectionsCommand) { List<ConnectionInfo> list = new ArrayList<ConnectionInfo>(); for (MutableConnectionInfo info : connectionMap.values()) { list.add(info.fix()); } return list; }
public Object visit(ConnectionEndEvent event) { final MutableConnectionInfo conn = connectionMap.remove(event.connectionId); if (conn == null) { return missing(event); } foo(conn, event); foo(server.aggConn, event); // Since the connection info will no longer be in the table, // broadcast the final info to anyone who is interested. RolapUtil.MONITOR_LOGGER.debug(conn.fix()); return null; }