tigase.stats
Class StatisticsList

java.lang.Object
  extended by tigase.stats.StatisticsList
All Implemented Interfaces:
Iterable<StatRecord>

public class StatisticsList
extends Object
implements Iterable<StatRecord>

Created: Jul 10, 2009 3:23:23 PM

Version:
$Rev$
Author:
Artur Hefczyc

Constructor Summary
StatisticsList(Level level)
           
 
Method Summary
 boolean add(String comp, String description, float value, Level recordLevel)
           
 boolean add(String comp, String description, int value, Level recordLevel)
           
 boolean add(String comp, String description, long value, Level recordLevel)
           
 boolean add(String comp, String description, String value, Level recordLevel)
           
 LinkedHashMap<String,StatRecord> addCompStats(String comp)
           
 boolean checkLevel(Level recordLevel)
           
 boolean checkLevel(Level recordLevel, int value)
           
 boolean checkLevel(Level recordLevel, long value)
           
 LinkedHashMap<String,StatRecord> getCompStats(String comp)
           
 float getValue(String comp, String description, float def)
           
 int getValue(String comp, String description, int def)
           
 long getValue(String comp, String description, long def)
           
 String getValue(String comp, String description, String def)
           
 Iterator<StatRecord> iterator()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StatisticsList

public StatisticsList(Level level)
Method Detail

addCompStats

public LinkedHashMap<String,StatRecord> addCompStats(String comp)

getCompStats

public LinkedHashMap<String,StatRecord> getCompStats(String comp)

checkLevel

public boolean checkLevel(Level recordLevel)

checkLevel

public boolean checkLevel(Level recordLevel,
                          long value)

checkLevel

public boolean checkLevel(Level recordLevel,
                          int value)

add

public boolean add(String comp,
                   String description,
                   long value,
                   Level recordLevel)

add

public boolean add(String comp,
                   String description,
                   int value,
                   Level recordLevel)

add

public boolean add(String comp,
                   String description,
                   String value,
                   Level recordLevel)

add

public boolean add(String comp,
                   String description,
                   float value,
                   Level recordLevel)

getValue

public long getValue(String comp,
                     String description,
                     long def)

getValue

public float getValue(String comp,
                      String description,
                      float def)

getValue

public int getValue(String comp,
                    String description,
                    int def)

getValue

public String getValue(String comp,
                       String description,
                       String def)

toString

public String toString()
Overrides:
toString in class Object

iterator

public Iterator<StatRecord> iterator()
Specified by:
iterator in interface Iterable<StatRecord>


Copyright © 2001-2006 Tigase Developers Team. All rights Reserved.