Exemplo n.º 1
0
 public Object visit(ConnectionsCommand connectionsCommand) {
   List<ConnectionInfo> list = new ArrayList<ConnectionInfo>();
   for (MutableConnectionInfo info : connectionMap.values()) {
     list.add(info.fix());
   }
   return list;
 }
Exemplo n.º 2
0
    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;
    }