etm.contrib.aggregation.log
Class DefaultOutputFormatter

java.lang.Object
  extended by etm.contrib.aggregation.log.DefaultOutputFormatter
All Implemented Interfaces:
LogOutputFormatter

public class DefaultOutputFormatter
extends java.lang.Object
implements LogOutputFormatter

Default log output formatter. It writes log messages in the format

  etmPoint=<$1>, parent=<$2>, transactionTime=<$3>, recordingTime=<$4>
 
where
  $1 is the name of the EtmPoint,
  $2 the of the parent if any (is empty otherwhise),
  $3 the transactionTime in ms
  $4 the time of the measurement taken using System.currentTimeMillis()
 

The transaction time is written using a NumberFormat with min/max friction digits of 3.

Version:
$Revision: 109 $
Author:
void.fm

Constructor Summary
DefaultOutputFormatter()
          A DefaultOutputFormatter using default locale.
DefaultOutputFormatter(java.util.Locale locale)
          A DefaultOutputFormatter using the given locale.
 
Method Summary
protected  java.lang.String calculateParentHierarchie(EtmPoint aEtmPoint)
           
 java.lang.String format(EtmPoint aEtmPoint)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultOutputFormatter

public DefaultOutputFormatter()
A DefaultOutputFormatter using default locale.


DefaultOutputFormatter

public DefaultOutputFormatter(java.util.Locale locale)
A DefaultOutputFormatter using the given locale.

Parameters:
locale - The locale to use for transactiontime format.
Method Detail

format

public java.lang.String format(EtmPoint aEtmPoint)
Specified by:
format in interface LogOutputFormatter

calculateParentHierarchie

protected java.lang.String calculateParentHierarchie(EtmPoint aEtmPoint)


Copyright © 2004,2005, 2006, 2007 void.fm. All Rights Reserved.