Package tigase.stats

Class StatisticsList

    • Constructor Detail

      • StatisticsList

        public StatisticsList​(Level level)
    • Method Detail

      • 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,
                           float value,
                           Level recordLevel)
      • 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
        Returns:
      • 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)
      • 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)
      • getCollectionValue

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