jetbrains.buildServer.util
Class Vars

java.lang.Object
  extended by jetbrains.buildServer.util.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 Summary
Vars(java.lang.String actionName)
           
 
Method Summary
 int compareTo(Vars o)
           
static Vars[] counters()
           
static void dumpAsText()
           
 boolean equals(java.lang.Object o)
           
 long getCount()
           
 java.util.Date getLastModified()
           
 java.lang.String getName()
           
 int getRecentCount()
           
 int hashCode()
           
static void inc(java.lang.String actionName)
           
static void reset()
           
static void resetCounters()
           
static void setRecentTTL(double seconds)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

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()

getCount

public long getCount()

getLastModified

public java.util.Date getLastModified()

getName

public java.lang.String getName()

counters

public static Vars[] counters()

reset

public static void reset()

setRecentTTL

public static void setRecentTTL(double seconds)

getRecentCount

public int getRecentCount()

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>