public class StatisticsList extends Object implements Iterable<StatRecord>
Constructor and Description |
---|
StatisticsList(Level level) |
Modifier and Type | Method and Description |
---|---|
<E extends Number> |
add(String comp,
String description,
Collection<E> value,
Level recordLevel) |
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) |
boolean |
checkLevel(Level recordLevel,
StatRecord record) |
<E> Collection<E> |
getCollectionValue(String dataId) |
<E> Collection<E> |
getCollectionValue(String comp,
String description,
Collection<E> def) |
int |
getCompConnections(String comp) |
long |
getCompIq(String comp) |
long |
getCompIqReceived(String comp) |
long |
getCompIqSent(String comp) |
long |
getCompMsg(String comp) |
long |
getCompMsgReceived(String comp) |
long |
getCompMsgSent(String comp) |
Set<String> |
getCompNames()
Returns names of every component for which statistics are stored in
stats variable |
long |
getCompPackets(String comp) |
long |
getCompPres(String comp) |
long |
getCompPresReceived(String comp) |
long |
getCompPresSent(String comp) |
long |
getCompReceivedPackets(String comp) |
long |
getCompSentPackets(String comp) |
LinkedHashMap<String,StatRecord> |
getCompStats(String comp) |
Object |
getValue(String dataId) |
<E> Collection<E> |
getValue(String comp,
String description,
Collection<E> def) |
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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public StatisticsList(Level level)
public <E extends Number> boolean add(String comp, String description, Collection<E> value, Level recordLevel)
public LinkedHashMap<String,StatRecord> addCompStats(String comp)
public boolean checkLevel(Level recordLevel)
public boolean checkLevel(Level recordLevel, long value)
public boolean checkLevel(Level recordLevel, StatRecord record)
public boolean checkLevel(Level recordLevel, int value)
public int getCompConnections(String comp)
public long getCompIq(String comp)
public long getCompIqReceived(String comp)
public long getCompIqSent(String comp)
public Set<String> getCompNames()
stats
variablepublic long getCompMsg(String comp)
public long getCompMsgReceived(String comp)
public long getCompMsgSent(String comp)
public long getCompPackets(String comp)
public long getCompPres(String comp)
public long getCompPresReceived(String comp)
public long getCompPresSent(String comp)
public long getCompReceivedPackets(String comp)
public long getCompSentPackets(String comp)
public LinkedHashMap<String,StatRecord> getCompStats(String comp)
public <E> Collection<E> getValue(String comp, String description, Collection<E> def)
public <E> Collection<E> getCollectionValue(String dataId)
public <E> Collection<E> getCollectionValue(String comp, String description, Collection<E> def)
public Iterator<StatRecord> iterator()
iterator
in interface Iterable<StatRecord>
Copyright © 2017 "Tigase, Inc.". All rights reserved.