Package org.pentaho.reporting.libraries.base.util

Examples of org.pentaho.reporting.libraries.base.util.PerformanceLoggingStopWatch.start()


  private TableModel sort(final TableModel tableModel, final List<SortConstraint> sortConstraints)
  {
    logger.debug("Sorting by " + sortConstraints);
    PerformanceLoggingStopWatch stopWatch = this.performanceMonitorContext.createStopWatch(PerformanceTags.REPORT_QUERY_SORT);
    stopWatch.start();
    try
    {
      return new SortingTableModel(new MetaNormalizedTableModel(tableModel), sortConstraints);
    }
    finally
View Full Code Here


    }

    PerformanceLoggingStopWatch sw = getPerformanceMonitorContext().createStopWatch(PerformanceTags.REPORT_PREPARE);
    try
    {
      sw.start();
      // every report processing starts with an StartState.
      final DefaultProcessingContext processingContext = createProcessingContext();
      final MasterReport report = getReport();
      final OutputFunction lm = createLayoutManager();
View Full Code Here

      }
      final PerformanceLoggingStopWatch preDataSw =
                     getPerformanceMonitorContext().createStopWatch(PerformanceTags.REPORT_PREPARE_DATA);
      try
      {
        preDataSw.start();

        processingContext.setProgressLevelCount(levels.length);
        int level = levels[index];
        // outer loop: process all function levels
        boolean hasNext;
View Full Code Here

            AbstractReportProcessor.logger.debug("Pagination started ..");
            state = processPaginationLevel(state, stateList, maxRows);
          }
          else
          {
            preDataSw.start();
            state = processPrepareLevels(state, maxRows);
            preDataSw.stop(true);
          }

          // if there is an other level to process, then use the finish state to
View Full Code Here

  {
    PerformanceLoggingStopWatch sw =
        getPerformanceMonitorContext().createStopWatch(PerformanceTags.REPORT_PREPARE_CROSSTAB);
    try
    {
      sw.start();
      processingContext.setProcessingLevel(LayoutProcess.LEVEL_STRUCTURAL_PREPROCESSING);
      processingContext.setProgressLevel(-1);

      final int maxRows = startState.getNumberOfRows();
      ProcessState state = processPrepareLevels(startState, maxRows);
View Full Code Here

      throws ReportProcessingException
  {
    PerformanceLoggingStopWatch sw = getPerformanceMonitorContext().createStopWatch(PerformanceTags.REPORT_PAGINATE);
    try
    {
      sw.start();
      final boolean failOnError = isStrictErrorHandling(getReport().getReportConfiguration());
      final ReportProcessingErrorHandler errorHandler = new CollectingReportErrorHandler();
      final DefaultLayoutPagebreakHandler pagebreakHandler = new DefaultLayoutPagebreakHandler();

      final ProcessState initialReportState = startState.deriveForStorage();
View Full Code Here

  {
    PerformanceLoggingStopWatch swGlobal =
        getPerformanceMonitorContext().createStopWatch(PerformanceTags.REPORT_PROCESSING);
    try
    {
      swGlobal.start();
      if (AbstractReportProcessor.logger.isDebugEnabled())
      {
        AbstractReportProcessor.logger.debug(new MemoryUsageMessage(System.identityHashCode(
            Thread.currentThread()) + ": Report processing time: Starting: "));
      }
View Full Code Here

        }
        PerformanceLoggingStopWatch sw =
            getPerformanceMonitorContext().createStopWatch(PerformanceTags.REPORT_GENERATE);
        try
        {
          sw.start();
          final long paginateTime = System.currentTimeMillis();
          if (AbstractReportProcessor.logger.isDebugEnabled())
          {
            AbstractReportProcessor.logger.debug(new MemoryUsageMessage
                (System.identityHashCode(Thread.currentThread()) +
View Full Code Here

    final DataFactory dataFactory = context.getDataFactory();
    PerformanceLoggingStopWatch sw = context.getPerformanceMonitorContext().createStopWatch
            (PerformanceTags.REPORT_PARAMETER_QUERY, new FormattedMessage("query={%s}", getQueryName()));
    try
    {
      sw.start();
      final TableModel tableModel = dataFactory.queryData(getQueryName(),
          new CompoundDataRow(envDataRow, parameterData));

      final String formula = getParameterAttribute(ParameterAttributeNames.Core.NAMESPACE,
          ParameterAttributeNames.Core.DISPLAY_VALUE_FORMULA, context);
View Full Code Here

    PerformanceLoggingStopWatch sw =
                 parameterContext.getPerformanceMonitorContext().createStopWatch(PerformanceTags.REPORT_PARAMETER);
    try
    {
      sw.start();

      final TrustedParameterContext trustedParameterContext = new TrustedParameterContext(parameterContext);
      final ParameterDefinitionEntry[] parameterDefinitionEntries = parameterDefinition.getParameterDefinitions();

      for (int i = 0; i < parameterDefinitionEntries.length; i++)
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.