org.kuali.rice.ken.util
Class PerformanceLog

java.lang.Object
  extended by org.kuali.rice.ken.util.PerformanceLog

public final class PerformanceLog
extends Object

Wrapper for the Log4J performance log

Author:
Kuali Rice Team (rice.collab@kuali.org)

Nested Class Summary
static class PerformanceLog.PerformanceStopWatch
          This class
 
Constructor Summary
PerformanceLog()
           
 
Method Summary
static org.apache.log4j.Logger getInstance()
          This method returns an instance of the logger object.
static void logDuration(String message, long duration)
          This method logs the duration information for a given message.
static PerformanceLog.PerformanceStopWatch startTimer(String message)
          This method returns a new stop watch instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PerformanceLog

public PerformanceLog()
Method Detail

getInstance

public static org.apache.log4j.Logger getInstance()
This method returns an instance of the logger object.

Returns:
Logger

startTimer

public static PerformanceLog.PerformanceStopWatch startTimer(String message)
This method returns a new stop watch instance.

Parameters:
message -
Returns:
PerformanceStopWatch

logDuration

public static void logDuration(String message,
                               long duration)
This method logs the duration information for a given message.

Parameters:
message -
duration -


Copyright © 2005-2011 The Kuali Foundation. All Rights Reserved.