org.apache.cocoon.components.profiler
Interface Profiler

All Known Implementing Classes:
ProfilerImpl

public interface Profiler

Profiler component interface.

Version:
CVS $Id: Profiler.java 55389 2004-10-23 15:46:58Z cziegeler $
Author:
Vadim Gritsenko, Stephan Michels

Field Summary
static String ROLE
           
 
Method Summary
 void addResult(String uri, ProfilerData data)
          Add a result for a request.
 void clearResult(Object key)
          Remove a specified result.
 void clearResults()
          Clear the results.
 ProfilerResult getResult(Object key)
          Returns a result of a specifed key.
 Collection getResultKeys()
          Returns a collection of all keys
 Collection getResults()
          Returns a collection of the results.
 

Field Detail

ROLE

public static final String ROLE
Method Detail

clearResults

public void clearResults()
Clear the results.


clearResult

public void clearResult(Object key)
Remove a specified result.

Parameters:
key - Key of the result.

addResult

public void addResult(String uri,
                      ProfilerData data)
Add a result for a request.

Parameters:
uri - URI of the request
data - Result of the profiling

getResultKeys

public Collection getResultKeys()
Returns a collection of all keys

Returns:
Keys of all results.

getResults

public Collection getResults()
Returns a collection of the results.

Returns:
Collection of results.

getResult

public ProfilerResult getResult(Object key)
Returns a result of a specifed key.

Parameters:
key - Key of the result.
Returns:
Result.


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.