Class BwStats

java.lang.Object
org.bedework.calfacade.BwStats
All Implemented Interfaces:
Serializable

public class BwStats extends Object implements Serializable
Some statistics for the Bedework calendar. These are not necessarily absolutely correct. We don't lock, just increment and decrement but they work well enough to get an idea of how we're performing.
Author:
Mike Douglass douglm@bedework.edu
See Also:
  • Field Details

    • collectionCacheStats

      protected BwStats.CacheStats collectionCacheStats
    • tzFetches

      protected int tzFetches
    • systemTzFetches

      protected int systemTzFetches
    • tzStores

      protected int tzStores
    • eventFetchTime

      protected double eventFetchTime
    • eventFetches

      protected long eventFetches
    • dateCacheStats

      protected BwStats.CacheStats dateCacheStats
    • accessStats

      protected Collection<org.bedework.access.Access.AccessStatsEntry> accessStats
  • Constructor Details

    • BwStats

      public BwStats()
  • Method Details

    • getCollectionCacheStats

      public BwStats.CacheStats getCollectionCacheStats()
      Returns:
      Collection stats
    • getTzFetches

      public int getTzFetches()
      Returns:
      int total num timezone fetches.
    • incTzFetches

      public void incTzFetches()
    • getSystemTzFetches

      public int getSystemTzFetches()
      Returns:
      int num system timezone fetches.
    • incSystemTzFetches

      public void incSystemTzFetches()
    • getTzStores

      public int getTzStores()
      Returns:
      int num timezone stores.
    • incTzStores

      public void incTzStores()
    • getEventFetchTime

      public double getEventFetchTime()
      Returns:
      double event fetch millis.
    • incEventFetchTime

      public void incEventFetchTime(double val)
      Parameters:
      val - double event fetch millis.
    • getEventFetches

      public long getEventFetches()
      Returns:
      long event fetches.
    • incEventFetches

      public void incEventFetches(long val)
      Parameters:
      val - long event fetches.
    • getDateCacheStats

      public BwStats.CacheStats getDateCacheStats()
      Returns:
      date cache Stats
    • setAccessStats

      public void setAccessStats(Collection<org.bedework.access.Access.AccessStatsEntry> val)
      Parameters:
      val - access Stats
    • getAccessStats

      public Collection<org.bedework.access.Access.AccessStatsEntry> getAccessStats()
      Returns:
      access Stats
    • getStats

      public Collection<BwStats.StatsEntry> getStats()
      Returns:
      Collection of StatsEntry
    • cacheStatsToString

      public void cacheStatsToString(ArrayList<BwStats.StatsEntry> al, BwStats.CacheStats cs)
      Parameters:
      al - list of stats entries
      cs - cachestats
    • toString

      public static String toString(Collection<BwStats.StatsEntry> c)
      Turn the Collection of StatsEntry into a String for dumps.
      Parameters:
      c - Collection of StatsEntry
      Returns:
      String formatted result.
    • toString

      public String toString()
      Overrides:
      toString in class Object