Examples of LoggingStopWatch


Examples of org.pentaho.reporting.libraries.base.util.LoggingStopWatch

public class DefaultPerformanceMonitorContext implements PerformanceMonitorContext
{
  public PerformanceLoggingStopWatch createStopWatch(final String tag)
  {
    return new LoggingStopWatch(tag);
  }
View Full Code Here

Examples of org.pentaho.reporting.libraries.base.util.LoggingStopWatch

    return new LoggingStopWatch(tag);
  }

  public PerformanceLoggingStopWatch createStopWatch(final String tag, final Object message)
  {
    return new LoggingStopWatch(tag, message);
  }
View Full Code Here

Examples of org.perf4j.LoggingStopWatch

        assertEquals(CommonsLogStopWatch.mapLevelName(expectedExceptionPriority),
                     commonsLogStopWatch.getExceptionPriority());
    }

    protected void checkSerializationAndCloning(LoggingStopWatch stopWatch) {
        LoggingStopWatch cloneCopy = stopWatch.clone();
        assertEquals(stopWatch, cloneCopy);

        //we don't test serialization because by default most Commons Logging Log implementations are NOT serializable
    }
View Full Code Here

Examples of org.perf4j.LoggingStopWatch

*/
public class EjbInMemoryTimingAspect extends AbstractEjbTimingAspect {
    public static List<String> logStrings = Collections.synchronizedList(new ArrayList<String>());

    protected LoggingStopWatch newStopWatch(final String loggerName, final String levelName) {
        return new LoggingStopWatch() {
            private static final long serialVersionUID = -8258832873829050541L;

            public boolean isLogging() {
                return Level.toLevel(levelName).toInt() >= Level.INFO_INT;
            }
View Full Code Here

Examples of org.perf4j.LoggingStopWatch

*/
@Aspect
public abstract class ScopedInMemoryTimingAspect extends ScopedTimingAspect {

    protected LoggingStopWatch newStopWatch(final String loggerName, final String levelName) {
        return new LoggingStopWatch() {
            private static final long serialVersionUID = -4675363294385184089L;

            public boolean isLogging() {
                return Level.toLevel(levelName).toInt() >= Level.INFO_INT;
            }
View Full Code Here

Examples of org.perf4j.LoggingStopWatch

@Aspect
public class InMemoryTimingAspect extends ProfiledTimingAspect {
    public static List<String> logStrings = Collections.synchronizedList(new ArrayList<String>());

    protected LoggingStopWatch newStopWatch(final String loggerName, final String levelName) {
        return new LoggingStopWatch() {
            private static final long serialVersionUID = -1537100122960737661L;

            public boolean isLogging() {
                return Level.toLevel(levelName).toInt() >= Level.INFO_INT;
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.