jetbrains.buildServer.util
Class WatchDog

java.lang.Object
  extended by jetbrains.buildServer.util.WatchDog

public class WatchDog
extends java.lang.Object

Author:
Kir

Field Summary
static org.apache.log4j.Logger LOG
           
static int SEC
           
 
Constructor Summary
WatchDog()
          Creates WatchDog that is not logging its events anywhere
WatchDog(java.lang.String name)
          Creates WatchDog that is logging its events into standard output
WatchDog(java.lang.String name, org.apache.log4j.Logger logger)
          Creates WatchDog that is logging its events into standard output if passed logger is null
WatchDog(java.lang.String name, org.apache.log4j.Logger logger, org.apache.log4j.Priority logLevel)
          Creates WatchDog that is logging its events into standard output if passed logger is null
WatchDog(java.lang.String name, org.apache.log4j.Logger logger, org.apache.log4j.Priority logLevel, boolean logIntoStdOutOnNullLogger)
           
 
Method Summary
 java.lang.String current()
           
 long getTimeMsecs()
           
 long getTimeNanosec()
           
 void stop()
           
 void watch(java.lang.String s)
           
 void watchAndReset(java.lang.String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

@NonNls
public static final org.apache.log4j.Logger LOG

SEC

public static final int SEC
See Also:
Constant Field Values
Constructor Detail

WatchDog

public WatchDog()
Creates WatchDog that is not logging its events anywhere


WatchDog

public WatchDog(java.lang.String name)
Creates WatchDog that is logging its events into standard output


WatchDog

public WatchDog(java.lang.String name,
                org.apache.log4j.Logger logger)
Creates WatchDog that is logging its events into standard output if passed logger is null


WatchDog

public WatchDog(java.lang.String name,
                org.apache.log4j.Logger logger,
                org.apache.log4j.Priority logLevel)
Creates WatchDog that is logging its events into standard output if passed logger is null


WatchDog

public WatchDog(java.lang.String name,
                org.apache.log4j.Logger logger,
                org.apache.log4j.Priority logLevel,
                boolean logIntoStdOutOnNullLogger)
Method Detail

watch

public final void watch(java.lang.String s)

current

public java.lang.String current()

stop

public final void stop()

watchAndReset

public final void watchAndReset(java.lang.String s)

getTimeMsecs

public long getTimeMsecs()

getTimeNanosec

public long getTimeNanosec()