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

Examples of org.pentaho.reporting.libraries.base.util.MemoryUsageMessage


      this.lastRowCount = rowCount;
      if (logger.isDebugEnabled())
      {
        final FastMessageFormat messageFormat =
            new FastMessageFormat("{0} Rows: {1} ({2,number,0.000} rows/sec) ");
        logger.debug(new MemoryUsageMessage(messageFormat.format(
            new Object[]{message, rowCount, rowsPerSec})));
      }
    }
  }
View Full Code Here


      return;
    }

    rowCount = -1;
    startTime = System.currentTimeMillis();
    logger.info(new MemoryUsageMessage
        ("[" + Thread.currentThread().getName() + "] Report Processing started. "));
  }
View Full Code Here

      }
    }

    if (print)
    {
      logger.info(new MemoryUsageMessage
          ("[" + Thread.currentThread().getName() + "] Activity: " + event.getActivity() + " Level: " + +lastStage +
              " Processing page: " + lastPage + " Row: " + lastRow + " Time: " +
              (System.currentTimeMillis() - startTime) + "ms "));

    }
View Full Code Here

    final FastMessageFormat messageFormat =
        new FastMessageFormat("[{0}] Report Processing Finished: {1}ms - {2,number,0.000} rows/sec - ");

    final long processTime = System.currentTimeMillis() - startTime;
    final double rowsPerSecond = rowCount * 1000.0f / (processTime);
    logger.info(new MemoryUsageMessage
        (messageFormat.format(new Object[]{
            Thread.currentThread().getName(), new Long(processTime),
            new Double(rowsPerSecond)})));

  }
View Full Code Here

  public void processReport() throws ReportProcessingException
  {
    if (AbstractReportProcessor.logger.isDebugEnabled())
    {
      AbstractReportProcessor.logger.debug(new MemoryUsageMessage(System.identityHashCode(
          Thread.currentThread()) + ": Report processing time: Starting: "));
    }
    try
    {
      final long startTime = System.currentTimeMillis();

      fireProcessingStarted(new ReportProgressEvent(this));

      if (isPaginated() == false)
      {
        // Processes the whole report ..
        prepareReportProcessing();
      }

      final long paginateTime = System.currentTimeMillis();
      if (AbstractReportProcessor.logger.isDebugEnabled())
      {
        AbstractReportProcessor.logger.debug(new MemoryUsageMessage
            (System.identityHashCode(Thread.currentThread()) +
                ": Report processing time: Pagination time: " + ((paginateTime - startTime) / 1000.0)));
      }
      if (getLogicalPageCount() == 0)
      {
        throw new EmptyReportException("Report did not generate any content.");
      }

      // Start from scratch ...
      PageState state = getLogicalPageState(0);
      while (state != null)
      {
        state = processPage(state, true);
      }
      final long endTime = System.currentTimeMillis();
      if (AbstractReportProcessor.logger.isDebugEnabled())
      {
        AbstractReportProcessor.logger.debug(new MemoryUsageMessage
            (System.identityHashCode(Thread.currentThread()) +
                ": Report processing time: " + ((endTime - startTime) / 1000.0)));
      }
    }
    catch (EmptyReportException re)
View Full Code Here

      {
        final double rowsPerSec = (rowCount * 1000.0 / deltaTime);

        final FastMessageFormat messageFormat =
            new FastMessageFormat("{0} - Rows: {1} - Time: {2,number,0.000}sec - Throughput: ({3,number,0.000} rows/sec) ");
        logger.debug(new MemoryUsageMessage(messageFormat.format(
            new Object[]{message, rowCount, deltaTime / 1000.0, rowsPerSec})));
      }
    }
  }
View Full Code Here

    try
    {
      swGlobal.start();
      if (AbstractReportProcessor.logger.isDebugEnabled())
      {
        AbstractReportProcessor.logger.debug(new MemoryUsageMessage(System.identityHashCode(
            Thread.currentThread()) + ": Report processing time: Starting: "));
      }
      try
      {
        final long startTime = System.currentTimeMillis();

        fireProcessingStarted(new ReportProgressEvent(this));

        if (isPaginated() == false)
        {
          // Processes the whole report ..
          prepareReportProcessing();
        }
        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()) +
                    ": Report processing time: Pagination time: " + ((paginateTime - startTime) / 1000.0)));
          }
          if (getLogicalPageCount() == 0)
          {
            throw new EmptyReportException("Report did not generate any content.");
          }

          // Start from scratch ...
          PageState state = getLogicalPageState(0);
          while (state != null)
          {
            state = processPage(state, true);
          }
          final long endTime = System.currentTimeMillis();
          if (AbstractReportProcessor.logger.isDebugEnabled())
          {
            AbstractReportProcessor.logger.debug(new MemoryUsageMessage
                (System.identityHashCode(Thread.currentThread()) +
                    ": Report processing time: " + ((endTime - startTime) / 1000.0)));
          }
        }
        finally
View Full Code Here

      return;
    }

    rowCount = -1;
    startTime = System.currentTimeMillis();
    logger.info(new MemoryUsageMessage
        ("[" + Thread.currentThread().getName() + "] Report Processing started. "));
  }
View Full Code Here

      }
    }

    if (print)
    {
      logger.info(new MemoryUsageMessage
          ("[" + Thread.currentThread().getName() + "] Activity: " + event.getActivity() + " Level: " + +lastStage +
              " Processing page: " + lastPage + " Row: " + lastRow + " Time: " +
              (System.currentTimeMillis() - startTime) + "ms "));

    }
View Full Code Here

    final FastMessageFormat messageFormat =
        new FastMessageFormat("[{0}] Report Processing Finished: {1}ms - {2,number,0.000} rows/sec - ");

    final long processTime = System.currentTimeMillis() - startTime;
    final double rowsPerSecond = rowCount * 1000.0f / (processTime);
    logger.info(new MemoryUsageMessage
        (messageFormat.format(new Object[]{
            Thread.currentThread().getName(), new Long(processTime),
            new Double(rowsPerSecond)})));

  }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.libraries.base.util.MemoryUsageMessage

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.