Package org.pentaho.reporting.libraries.formatting

Examples of org.pentaho.reporting.libraries.formatting.FastMessageFormat.format()


      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


        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

    int i = 0;
    // call me at any time if you have more than 32000 functions of the same name-pattern in a single report.
    while (i < Short.MAX_VALUE)
    {
      data[0] = IntegerCache.getInteger(i);
      final String s = fastMessageFormat.format(data);
      if (names.contains(s) == false)
      {
        return s;
      }
      i += 1;
View Full Code Here

    int i = 0;
    // call me at any time if you have more than 32000 functions of the same name-pattern in a single report.
    while (i < Short.MAX_VALUE)
    {
      data[0] = IntegerCache.getInteger(i);
      final String s = fastMessageFormat.format(data);
      if (names.contains(s) == false)
      {
        return s;
      }
      i += 1;
View Full Code Here

        }
        return quote(String.valueOf(o));
      }

      final FastMessageFormat messageFormat = new FastMessageFormat(formatString, locale);
      return messageFormat.format(new Object[]{o});
    }

    public Set getParameter()
    {
      return Collections.unmodifiableSet((Set) collectedLists.clone());
View Full Code Here

        }
        return quote(String.valueOf(o));
      }

      final FastMessageFormat messageFormat = new FastMessageFormat(formatString, locale);
      return messageFormat.format(new Object[]{o});
    }

    public Set<String> getCollectedParameter()
    {
      return Collections.unmodifiableSet((Set<String>) collectedParameter.clone());
View Full Code Here

        final String solution = pathModel.getSolution();

        final FastMessageFormat messageFormat = new FastMessageFormat
            ("/content/reporting/?renderMode=XML&amp;solution={0}&amp;path={1}&amp;name={2}");
        messageFormat.setNullString("");
        return loginData.getUrl() + messageFormat.format(new Object[]{solution, path, name});
      }

      logger.debug("Ancient pentaho system detected: We will not have access to a working parameter service");
      return null;
    }
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

        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

    final double rowsPerSec = (getPageCursor() * 1000.0 / deltaTime);
    if (logger.isDebugEnabled())
    {
      final FastMessageFormat messageFormat =
          new FastMessageFormat("{0} - Pages: {1} - Time: {2,number,0.000}sec - Throughput: ({3,number,0.000} rows/sec) ");
      logger.debug(new MemoryUsageMessage(messageFormat.format(
          new Object[]{message, getPageCursor(), deltaTime / 1000.0, rowsPerSec})));
    }
  }

  protected void processingContentFinished()
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.