Class Vars

  • All Implemented Interfaces:
    java.lang.Comparable<Vars>

    public class Vars
    extends java.lang.Object
    implements java.lang.Comparable<Vars>
    We want to monitor how often some actions occurs in TeamCity and report some statistics about it. So this class will help us. Usage: Vars.inc("name of counter");
    Author:
    kir
    • Constructor Detail

      • Vars

        public Vars​(java.lang.String actionName)
    • Method Detail

      • inc

        public static void inc​(java.lang.String actionName)
      • resetCounters

        public static void resetCounters()
      • getCount0

        public long getCount0()
      • getCount1

        public long getCount1()
      • getCount2

        public long getCount2()
      • getLastModified

        public java.util.Date getLastModified()
      • getName

        public java.lang.String getName()
      • counters

        public static Vars[] counters()
      • reset

        public static void reset()
      • setTimeService

        public static void setTimeService​(@NotNull
                                          TimeService timeService)
      • dumpAsText

        public static void dumpAsText()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • compareTo

        public int compareTo​(Vars o)
        Specified by:
        compareTo in interface java.lang.Comparable<Vars>