Class LoggingStopWatch
- java.lang.Object
-
- org.pentaho.reporting.libraries.base.util.StopWatch
-
- org.pentaho.reporting.libraries.base.util.LoggingStopWatch
-
- All Implemented Interfaces:
Closeable,AutoCloseable,PerformanceLoggingStopWatch
public class LoggingStopWatch extends StopWatch implements PerformanceLoggingStopWatch
-
-
Constructor Summary
Constructors Constructor Description LoggingStopWatch(String tag)LoggingStopWatch(String tag, Object message)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoLog(String message)longgetLoggingThreshold()ObjectgetMessage()longgetRestartCount()longgetStartTime()StringgetTag()voidreset()voidsetLoggingThreshold(long loggingThreshold)voidsetMessage(Object message)voidstart()static PerformanceLoggingStopWatchstartNew(String tag)static PerformanceLoggingStopWatchstartNew(String tag, Object message)static PerformanceLoggingStopWatchstartNew(String tag, String pattern, Object... message)voidstop()voidstop(boolean pause)-
Methods inherited from class org.pentaho.reporting.libraries.base.util.StopWatch
close, getElapsedMilliseconds, getElapsedSeconds, getElapsedTime, getStartMilliseconds, isStarted, startNew, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.pentaho.reporting.libraries.base.util.PerformanceLoggingStopWatch
close
-
-
-
-
Method Detail
-
startNew
public static PerformanceLoggingStopWatch startNew(String tag, Object message)
-
startNew
public static PerformanceLoggingStopWatch startNew(String tag, String pattern, Object... message)
-
startNew
public static PerformanceLoggingStopWatch startNew(String tag)
-
getLoggingThreshold
public long getLoggingThreshold()
- Specified by:
getLoggingThresholdin interfacePerformanceLoggingStopWatch
-
setLoggingThreshold
public void setLoggingThreshold(long loggingThreshold)
- Specified by:
setLoggingThresholdin interfacePerformanceLoggingStopWatch
-
getTag
public String getTag()
- Specified by:
getTagin interfacePerformanceLoggingStopWatch
-
getMessage
public Object getMessage()
- Specified by:
getMessagein interfacePerformanceLoggingStopWatch
-
setMessage
public void setMessage(Object message)
- Specified by:
setMessagein interfacePerformanceLoggingStopWatch
-
start
public void start()
- Specified by:
startin interfacePerformanceLoggingStopWatch- Overrides:
startin classStopWatch
-
stop
public void stop(boolean pause)
- Specified by:
stopin interfacePerformanceLoggingStopWatch
-
getRestartCount
public long getRestartCount()
- Specified by:
getRestartCountin interfacePerformanceLoggingStopWatch
-
reset
public void reset()
- Specified by:
resetin interfacePerformanceLoggingStopWatch- Overrides:
resetin classStopWatch
-
getStartTime
public long getStartTime()
- Specified by:
getStartTimein interfacePerformanceLoggingStopWatch- Overrides:
getStartTimein classStopWatch
-
stop
public void stop()
- Specified by:
stopin interfacePerformanceLoggingStopWatch- Overrides:
stopin classStopWatch
-
doLog
protected void doLog(String message)
-
-