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 void
doLog(String message)
long
getLoggingThreshold()
Object
getMessage()
long
getRestartCount()
long
getStartTime()
String
getTag()
void
reset()
void
setLoggingThreshold(long loggingThreshold)
void
setMessage(Object message)
void
start()
static PerformanceLoggingStopWatch
startNew(String tag)
static PerformanceLoggingStopWatch
startNew(String tag, Object message)
static PerformanceLoggingStopWatch
startNew(String tag, String pattern, Object... message)
void
stop()
void
stop(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:
getLoggingThreshold
in interfacePerformanceLoggingStopWatch
-
setLoggingThreshold
public void setLoggingThreshold(long loggingThreshold)
- Specified by:
setLoggingThreshold
in interfacePerformanceLoggingStopWatch
-
getTag
public String getTag()
- Specified by:
getTag
in interfacePerformanceLoggingStopWatch
-
getMessage
public Object getMessage()
- Specified by:
getMessage
in interfacePerformanceLoggingStopWatch
-
setMessage
public void setMessage(Object message)
- Specified by:
setMessage
in interfacePerformanceLoggingStopWatch
-
start
public void start()
- Specified by:
start
in interfacePerformanceLoggingStopWatch
- Overrides:
start
in classStopWatch
-
stop
public void stop(boolean pause)
- Specified by:
stop
in interfacePerformanceLoggingStopWatch
-
getRestartCount
public long getRestartCount()
- Specified by:
getRestartCount
in interfacePerformanceLoggingStopWatch
-
reset
public void reset()
- Specified by:
reset
in interfacePerformanceLoggingStopWatch
- Overrides:
reset
in classStopWatch
-
getStartTime
public long getStartTime()
- Specified by:
getStartTime
in interfacePerformanceLoggingStopWatch
- Overrides:
getStartTime
in classStopWatch
-
stop
public void stop()
- Specified by:
stop
in interfacePerformanceLoggingStopWatch
- Overrides:
stop
in classStopWatch
-
doLog
protected void doLog(String message)
-
-