Package tigase.stats

Class StatisticsList

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

public class StatisticsList extends Object implements Iterable<StatRecord>
Created: Jul 10, 2009 3:23:23 PM
Author:
Artur Hefczyc
  • Constructor Details

    • StatisticsList

      public StatisticsList(Level level)
  • Method Details

    • 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)
    • add

      public <E extends Number> boolean add(String comp, String description, Collection<E> value, Level recordLevel)
    • addCompStats

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

      public boolean checkLevel(Level recordLevel)
    • checkLevel

      public boolean checkLevel(Level recordLevel, long value)
    • checkLevel

      public boolean checkLevel(Level recordLevel, StatRecord record)
    • checkLevel

      public boolean checkLevel(Level recordLevel, int value)
    • getCompConnections

      public int getCompConnections(String comp)
    • getCompIq

      public long getCompIq(String comp)
    • getCompIqReceived

      public long getCompIqReceived(String comp)
    • getCompIqSent

      public long getCompIqSent(String comp)
    • getCompNames

      public Set<String> getCompNames()
      Returns names of every component for which statistics are stored in stats variable
    • getCompMsg

      public long getCompMsg(String comp)
    • getCompMsgReceived

      public long getCompMsgReceived(String comp)
    • getCompMsgSent

      public long getCompMsgSent(String comp)
    • getCompPackets

      public long getCompPackets(String comp)
    • getCompPres

      public long getCompPres(String comp)
    • getCompPresReceived

      public long getCompPresReceived(String comp)
    • getCompPresSent

      public long getCompPresSent(String comp)
    • getCompReceivedPackets

      public long getCompReceivedPackets(String comp)
    • getCompSentPackets

      public long getCompSentPackets(String comp)
    • getCompStats

      public LinkedHashMap<String,StatRecord> getCompStats(String comp)
    • 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)
    • getValue

      public <E> Collection<E> getValue(String comp, String description, Collection<E> def)
    • getCollectionValue

      public <E> Collection<E> getCollectionValue(String dataId)
    • getCollectionValue

      public <E> Collection<E> getCollectionValue(String comp, String description, Collection<E> def)
    • getValue

      public Object getValue(String dataId)
    • iterator

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

      public String toString()
      Overrides:
      toString in class Object