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 Summary
Constructors Constructor Description StatisticsList(Level level)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(String comp, String description, float value, Level recordLevel)booleanadd(String comp, String description, int value, Level recordLevel)booleanadd(String comp, String description, long value, Level recordLevel)booleanadd(String comp, String description, String value, Level recordLevel)<E extends Number>
booleanadd(String comp, String description, Collection<E> value, Level recordLevel)LinkedHashMap<String,StatRecord>addCompStats(String comp)booleancheckLevel(Level recordLevel)booleancheckLevel(Level recordLevel, int value)booleancheckLevel(Level recordLevel, long value)booleancheckLevel(Level recordLevel, StatRecord record)<E> Collection<E>getCollectionValue(String dataId)<E> Collection<E>getCollectionValue(String comp, String description, Collection<E> def)intgetCompConnections(String comp)longgetCompIq(String comp)longgetCompIqReceived(String comp)longgetCompIqSent(String comp)longgetCompMsg(String comp)longgetCompMsgReceived(String comp)longgetCompMsgSent(String comp)Set<String>getCompNames()Returns names of every component for which statistics are stored instatsvariablelonggetCompPackets(String comp)longgetCompPres(String comp)longgetCompPresReceived(String comp)longgetCompPresSent(String comp)longgetCompReceivedPackets(String comp)longgetCompSentPackets(String comp)LinkedHashMap<String,StatRecord>getCompStats(String comp)ObjectgetValue(String dataId)floatgetValue(String comp, String description, float def)intgetValue(String comp, String description, int def)longgetValue(String comp, String description, long def)StringgetValue(String comp, String description, String def)<E> Collection<E>getValue(String comp, String description, Collection<E> def)Iterator<StatRecord>iterator()StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
StatisticsList
public StatisticsList(Level level)
-
-
Method Detail
-
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 instatsvariable
-
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 <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)
-
iterator
public Iterator<StatRecord> iterator()
- Specified by:
iteratorin interfaceIterable<StatRecord>
-
-