Jacson

de.spieleck.app.jacson.util
Class Accountor

java.lang.Object
  extended byde.spieleck.app.jacson.util.Accountor
All Implemented Interfaces:
ConfigVerify.Acceptor

public class Accountor
extends java.lang.Object
implements ConfigVerify.Acceptor

Class to collect and report various statistical informations about incoming chunks.

Author:
fsn

Field Summary
protected  int limit
          lower limit to the output (saves significantly resources)
static java.lang.String LIMIT_NODE
          Report name for absolute limit
protected  int max
          keep track of the maximum and total counts
static java.lang.String NAME_RCOUNT
          Report name for remaining count
static java.lang.String NAME_REMAIN
          Report name for remaining sum
static java.lang.String NAMENAME_REMAIN
          Report name for remain values value-name
static java.lang.String NUMBER_NODE
          Report name for numbered limit
protected  int numberLimit
          Not yet used: can be achieved in XSL postprocessing
static java.lang.String PERC_NODE
          Report name for percentile limit
protected  double percentLimit
           
protected  gnu.trove.TObjectIntHashMap seen
           
protected  int total
          keep track of the maximum and total counts
 
Constructor Summary
Accountor(ConfigNode config)
           
 
Method Summary
 boolean accept(ConfigNode cn)
           
 void account(java.lang.Object h)
           
static void reportCount(JacsonReport jr, java.lang.String name, java.lang.String value)
           
static void reportCount(JacsonReport jr, java.lang.String nameName, java.lang.String name, java.lang.String value)
           
 void summary(JacsonReport jr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LIMIT_NODE

public static final java.lang.String LIMIT_NODE
Report name for absolute limit

See Also:
Constant Field Values

PERC_NODE

public static final java.lang.String PERC_NODE
Report name for percentile limit

See Also:
Constant Field Values

NUMBER_NODE

public static final java.lang.String NUMBER_NODE
Report name for numbered limit

See Also:
Constant Field Values

NAMENAME_REMAIN

public static final java.lang.String NAMENAME_REMAIN
Report name for remain values value-name

See Also:
Constant Field Values

NAME_REMAIN

public static final java.lang.String NAME_REMAIN
Report name for remaining sum

See Also:
Constant Field Values

NAME_RCOUNT

public static final java.lang.String NAME_RCOUNT
Report name for remaining count

See Also:
Constant Field Values

seen

protected gnu.trove.TObjectIntHashMap seen

limit

protected int limit
lower limit to the output (saves significantly resources)


percentLimit

protected double percentLimit

numberLimit

protected int numberLimit
Not yet used: can be achieved in XSL postprocessing


max

protected int max
keep track of the maximum and total counts


total

protected int total
keep track of the maximum and total counts

Constructor Detail

Accountor

public Accountor(ConfigNode config)
          throws JacsonConfigException
Method Detail

accept

public boolean accept(ConfigNode cn)
Specified by:
accept in interface ConfigVerify.Acceptor

account

public void account(java.lang.Object h)

summary

public void summary(JacsonReport jr)

reportCount

public static void reportCount(JacsonReport jr,
                               java.lang.String name,
                               java.lang.String value)

reportCount

public static void reportCount(JacsonReport jr,
                               java.lang.String nameName,
                               java.lang.String name,
                               java.lang.String value)

Spieleck

Copyleft 2002 spieleck.de.