Examples of StatisticsProvider


Examples of mondrian.spi.StatisticsProvider

        }
        final List<StatisticsProvider> providerList =
            new ArrayList<StatisticsProvider>();
        for (String name : names) {
            try {
                StatisticsProvider provider =
                    ClassResolver.INSTANCE.instantiateSafe(name);
                providerList.add(provider);
            } catch (Exception e) {
                LOGGER.info(
                    "Error instantiating statistics provider (class=" + name
View Full Code Here

Examples of org.apache.geronimo.management.StatisticsProvider

        return getMode();
    }

    public void renderView(RenderRequest request, RenderResponse response, MultiPageModel model) throws PortletException, IOException {
        AbstractName name = new AbstractName(URI.create(request.getParameter(ABSTRACT_NAME_PARAMETER)));
        StatisticsProvider pool = (StatisticsProvider) PortletManager.getManagedBean(request, name);
        ThreadPoolStats stats = (ThreadPoolStats) pool.getStats();
        String[] consumers = stats.getThreadConsumers();
        ClientStats[] result = new ClientStats[consumers.length];
        for (int i = 0; i < result.length; i++) {
            result[i] = new ClientStats(consumers[i], (int)stats.getCountForConsumer(consumers[i]).getCount());
        }
View Full Code Here

Examples of org.apache.geronimo.management.StatisticsProvider

        return getMode();
    }

    public void renderView(RenderRequest request, RenderResponse response, MultiPageModel model) throws PortletException, IOException {
        AbstractName name = new AbstractName(URI.create(request.getParameter(ABSTRACT_NAME_PARAMETER)));
        StatisticsProvider pool = (StatisticsProvider) PortletManager.getManagedBean(request, name);
        ThreadPoolStats stats = (ThreadPoolStats) pool.getStats();
        String[] consumers = stats.getThreadConsumers();
        ClientStats[] result = new ClientStats[consumers.length];
        for (int i = 0; i < result.length; i++) {
            result[i] = new ClientStats(consumers[i], (int)stats.getCountForConsumer(consumers[i]).getCount());
        }
View Full Code Here

Examples of org.apache.geronimo.management.StatisticsProvider

        return getMode();
    }

    public void renderView(RenderRequest request, RenderResponse response, MultiPageModel model) throws PortletException, IOException {
        AbstractName name = new AbstractName(URI.create(request.getParameter(ABSTRACT_NAME_PARAMETER)));
        StatisticsProvider pool = (StatisticsProvider) PortletManager.getManagedBean(request, name);
        ThreadPoolStats stats = (ThreadPoolStats) pool.getStats();
        String[] consumers = stats.getThreadConsumers();
        ClientStats[] result = new ClientStats[consumers.length];
        for (int i = 0; i < result.length; i++) {
            result[i] = new ClientStats(consumers[i], (int)stats.getCountForConsumer(consumers[i]).getCount());
        }
View Full Code Here

Examples of org.apache.geronimo.management.StatisticsProvider

        return getMode();
    }

    public void renderView(RenderRequest request, RenderResponse response, MultiPageModel model) throws PortletException, IOException {
        AbstractName name = new AbstractName(URI.create(request.getParameter(ABSTRACT_NAME_PARAMETER)));
        StatisticsProvider pool = (StatisticsProvider) PortletManager.getManagedBean(request, name);
        ThreadPoolStats stats = (ThreadPoolStats) pool.getStats();
        String[] consumers = stats.getThreadConsumers();
        ClientStats[] result = new ClientStats[consumers.length];
        for (int i = 0; i < result.length; i++) {
            result[i] = new ClientStats(consumers[i], (int)stats.getCountForConsumer(consumers[i]).getCount());
        }
View Full Code Here

Examples of org.apache.geronimo.management.StatisticsProvider

        return getMode();
    }

    public void renderView(RenderRequest request, RenderResponse response, MultiPageModel model) throws PortletException, IOException {
        AbstractName name = new AbstractName(URI.create(request.getParameter(ABSTRACT_NAME_PARAMETER)));
        StatisticsProvider pool = (StatisticsProvider) PortletManager.getManagedBean(request, name);
        ThreadPoolStats stats = (ThreadPoolStats) pool.getStats();
        String[] consumers = stats.getThreadConsumers();
        ClientStats[] result = new ClientStats[consumers.length];
        for (int i = 0; i < result.length; i++) {
            result[i] = new ClientStats(consumers[i], (int)stats.getCountForConsumer(consumers[i]).getCount());
        }
View Full Code Here

Examples of org.jboss.monitor.StatisticsProvider

   public Map retrieveStatistic()
   {
      // Loop through all Interceptors and add statistics
      Map lStatistics = new HashMap();
      StatisticsProvider lProvider = (StatisticsProvider) getPersistenceManager();
      lStatistics.putAll( lProvider.retrieveStatistic() );
      lProvider = (StatisticsProvider) getInstancePool();
      lStatistics.putAll( lProvider.retrieveStatistic() );
      return lStatistics;
   }
View Full Code Here

Examples of org.jboss.monitor.StatisticsProvider

   public Map retrieveStatistic()
   {
      // Loop through all Interceptors and add statistics
      Map lStatistics = new HashMap();
      StatisticsProvider lProvider = (StatisticsProvider) getPersistenceManager();
      lStatistics.putAll( lProvider.retrieveStatistic() );
      lProvider = (StatisticsProvider) getInstancePool();
      lStatistics.putAll( lProvider.retrieveStatistic() );
      return lStatistics;
   }
View Full Code Here

Examples of org.jboss.monitor.StatisticsProvider

/*      */   }
/*      */
/*      */   public Map retrieveStatistic()
/*      */   {
/*  863 */     Map lStatistics = new HashMap();
/*  864 */     StatisticsProvider lProvider = (StatisticsProvider)getPersistenceManager();
/*  865 */     lStatistics.putAll(lProvider.retrieveStatistic());
/*  866 */     lProvider = (StatisticsProvider)getInstancePool();
/*  867 */     lStatistics.putAll(lProvider.retrieveStatistic());
/*  868 */     return lStatistics;
/*      */   }
View Full Code Here

Examples of org.pentaho.aggdes.model.StatisticsProvider

  public Iterable<? extends Lattice.Tile> tiles() {
    final Algorithm algorithm = new MonteCarloAlgorithm();
    final PrintWriter pw = new PrintWriter(System.out);
    final Progress progress = new ArgumentUtils.TextProgress(pw);
    final StatisticsProvider statisticsProvider =
        new StatisticsProviderImpl(lattice);
    final double f = statisticsProvider.getFactRowCount();
    final ImmutableMap<Parameter, Object> map =
        ImmutableMap.<Parameter, Object>of(
            Algorithm.ParameterEnum.timeLimitSeconds, 1,
            Algorithm.ParameterEnum.aggregateLimit, 3,
            Algorithm.ParameterEnum.costLimit, f * 5d);
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.