Package org.bedework.calfacade
Class BwStats
java.lang.Object
org.bedework.calfacade.BwStats
- All Implemented Interfaces:
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classClass to hold a statistics. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Collection<org.bedework.access.Access.AccessStatsEntry>protected BwStats.CacheStatsprotected BwStats.CacheStatsprotected longprotected doubleprotected intprotected intprotected int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCollection<org.bedework.access.Access.AccessStatsEntry>longdoublegetStats()intintintvoidincEventFetches(long val) voidincEventFetchTime(double val) voidvoidvoidvoidsetAccessStats(Collection<org.bedework.access.Access.AccessStatsEntry> val) toString()static StringTurn the Collection of StatsEntry into a String for dumps.
-
Field Details
-
collectionCacheStats
-
tzFetches
protected int tzFetches -
systemTzFetches
protected int systemTzFetches -
tzStores
protected int tzStores -
eventFetchTime
protected double eventFetchTime -
eventFetches
protected long eventFetches -
dateCacheStats
-
accessStats
-
-
Constructor Details
-
BwStats
public BwStats()
-
-
Method Details
-
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
- Returns:
- date cache Stats
-
setAccessStats
- Parameters:
val- access Stats
-
getAccessStats
- Returns:
- access Stats
-
getStats
- Returns:
- Collection of StatsEntry
-
cacheStatsToString
- Parameters:
al- list of stats entriescs- cachestats
-
toString
Turn the Collection of StatsEntry into a String for dumps.- Parameters:
c- Collection of StatsEntry- Returns:
- String formatted result.
-
toString
-