Package mondrian.server.monitor

Examples of mondrian.server.monitor.Monitor


    MondrianServer mondrianServer = MondrianServer.forId(null);
    if (mondrianServer != null) {
      MondrianVersion mv = mondrianServer.getVersion();

      final Monitor monitor = mondrianServer.getMonitor();
      final ServerInfo server = monitor.getServer();

      int statementCurrentlyOpenCount = 0; //server.statementCurrentlyOpenCount();
      int connectionCurrentlyOpenCount = 0; // server.connectionCurrentlyOpenCount();
      int sqlStatementCurrentlyOpenCount = 0; //server.sqlStatementCurrentlyOpenCount();
      int statementCurrentlyExecutingCount = 0; //server.statementCurrentlyExecutingCount();
      float avgCellDimensionality = (float) server.cellCoordinateCount / (float) server.cellCount;

      final List<ConnectionInfo> connections = monitor.getConnections();
      final List<StatementInfo> statements = monitor.getStatements();

      return new MondrianStats(
          server,
          mv,
          statementCurrentlyOpenCount,
View Full Code Here


  public ServerInfo getMondrianServer() {
    MondrianServer mondrianServer = MondrianServer.forId(null);
    if (mondrianServer != null) {
      MondrianVersion mv = mondrianServer.getVersion();

      final Monitor monitor = mondrianServer.getMonitor();
      final ServerInfo server = monitor.getServer();
      return server;
    }
    return null;
  }
View Full Code Here

            cacheControl.createMeasuresRegion(
                getCubeWithName(
                    "Sales",
                    getConnection().getSchema().getCubes())));
        Thread.sleep(2000); // wait for flush to propagate
        final Monitor monitor = server.getMonitor();
        final ServerInfo serverBefore = monitor.getServer();

        final List<Future<Boolean>> futures = new ArrayList<Future<Boolean>>();
        for (int i = 0; i < parallel; i++) {
            Callable<Boolean> runnable = new Callable<Boolean>() {
                public Boolean call() {
                    assertQueryReturns(
                        "select [Gender].Children * [Product].Children on 0\n"
                        + "from [Sales]",
                        "Axis #0:\n"
                        + "{}\n"
                        + "Axis #1:\n"
                        + "{[Gender].[F], [Product].[Drink]}\n"
                        + "{[Gender].[F], [Product].[Food]}\n"
                        + "{[Gender].[F], [Product].[Non-Consumable]}\n"
                        + "{[Gender].[M], [Product].[Drink]}\n"
                        + "{[Gender].[M], [Product].[Food]}\n"
                        + "{[Gender].[M], [Product].[Non-Consumable]}\n"
                        + "Row #0: 12,202\n"
                        + "Row #0: 94,814\n"
                        + "Row #0: 24,542\n"
                        + "Row #0: 12,395\n"
                        + "Row #0: 97,126\n"
                        + "Row #0: 25,694\n");
                    return true;
                }
            };
            futures.add(executor.submit(runnable));
        }
        for (Future<Boolean> future : futures) {
            assertTrue(future.get() == Boolean.TRUE);
        }
        final ServerInfo serverAfter = monitor.getServer();
        final String beforeAfter =
            "before: " + serverBefore + "\n"
            + "after: " + serverAfter + "\n"
            + iteration;
        assertTrue(
View Full Code Here

TOP

Related Classes of mondrian.server.monitor.Monitor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.