org.apache.cocoon.components.profiler
Interface Profiler

All Superinterfaces:
Component
All Known Implementing Classes:
ProfilerImpl

public interface Profiler
extends Component

Profiler component interface.

Version:
CVS $Id: Profiler.html 1304258 2012-03-23 10:09:27Z ilgrosso $
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

static final String ROLE
Method Detail

clearResults

void clearResults()
Clear the results.


clearResult

void clearResult(Object key)
Remove a specified result.

Parameters:
key - Key of the result.

addResult

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

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

getResultKeys

Collection getResultKeys()
Returns a collection of all keys

Returns:
Keys of all results.

getResults

Collection getResults()
Returns a collection of the results.

Returns:
Collection of results.

getResult

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

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


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.