org.apache.cocoon.components.profiler
Class SimpleProfiler

java.lang.Object
  |
  +--org.apache.avalon.framework.logger.AbstractLoggable
        |
        +--org.apache.cocoon.components.profiler.SimpleProfiler
All Implemented Interfaces:
org.apache.avalon.framework.component.Component, org.apache.avalon.framework.logger.Loggable, Profiler, org.apache.avalon.framework.thread.ThreadSafe

public class SimpleProfiler
extends org.apache.avalon.framework.logger.AbstractLoggable
implements Profiler, org.apache.avalon.framework.thread.ThreadSafe

Profiler component implementation. Stores profiler data for all pipelines.

Version:
CVS $Id: SimpleProfiler.java,v 1.4 2002/02/22 07:00:11 cziegeler Exp $
Author:
Vadim Gritsenko

Fields inherited from interface org.apache.cocoon.components.profiler.Profiler
ROLE
 
Constructor Summary
SimpleProfiler()
           
 
Method Summary
 void addResult(java.lang.String uri, ProfilerData data)
           
 void clearResult(java.lang.Object key)
           
 void clearResults()
           
 ProfilerResult getResult(java.lang.Object key)
           
 java.util.Collection getResultKeys()
           
 java.util.Collection getResults()
           
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLoggable
getLogger, setLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleProfiler

public SimpleProfiler()
Method Detail

clearResults

public void clearResults()
Specified by:
clearResults in interface Profiler

clearResult

public void clearResult(java.lang.Object key)
Specified by:
clearResult in interface Profiler

getResultKeys

public java.util.Collection getResultKeys()
Specified by:
getResultKeys in interface Profiler

getResults

public java.util.Collection getResults()
Specified by:
getResults in interface Profiler

getResult

public ProfilerResult getResult(java.lang.Object key)
Specified by:
getResult in interface Profiler

addResult

public void addResult(java.lang.String uri,
                      ProfilerData data)
Specified by:
addResult in interface Profiler


Copyright � 1999-2002 Apache Software Foundation. All Rights Reserved.