org.apache.cocoon.monitoring.statistics
Interface StatisticsSourceEnabled

All Known Implementing Classes:
StatisticsCollector

public interface StatisticsSourceEnabled


Method Summary
 double getHitCount(String key)
          Returns sum for all hit count for given key.
 double getHitCountSum()
          Returns all hit count for this statistics source (sum of all hit counts for all contained key's).
 Map<String,Double> getHits()
          Returns unordered Map of summed value of all hit
 Map<String,Long> getHits(long time)
          Returns unordered Map, where key is source name and value is sum of hit count, limited only to entry's that are younger then time parameter
 long getRequestCount(String key, long time)
          Returns hit count for particular key in particular time
 

Method Detail

getHitCount

double getHitCount(String key)
Returns sum for all hit count for given key. It will return 0 if given key does not have any statistics data (that means, that 0 if given key does not exist in statistics source).

Returns:
hit count for passed arguments

getHitCountSum

double getHitCountSum()
Returns all hit count for this statistics source (sum of all hit counts for all contained key's).


getHits

Map<String,Double> getHits()
Returns unordered Map of summed value of all hit


getHits

Map<String,Long> getHits(long time)
Returns unordered Map, where key is source name and value is sum of hit count, limited only to entry's that are younger then time parameter


getRequestCount

long getRequestCount(String key,
                     long time)
Returns hit count for particular key in particular time



Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.