Package ch.qos.logback.access.filter
Class StatisticalViewImpl
- java.lang.Object
-
- ch.qos.logback.access.filter.StatisticalViewImpl
-
- All Implemented Interfaces:
StatisticalView,LifeCycle
public class StatisticalViewImpl extends java.lang.Object implements StatisticalView, LifeCycle
-
-
Field Summary
Fields Modifier and Type Field Description (package private) CountingFiltercountingFilter(package private) booleanstarted(package private) StatsByDaystatsByDay(package private) StatsByHourstatsByHour(package private) StatsByMinutestatsByMinute(package private) StatsByMonthstatsByMonth(package private) StatsByWeekstatsByWeek
-
Constructor Summary
Constructors Constructor Description StatisticalViewImpl(CountingFilter countingFilter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetDailyAverage()doublegetHourlyAverage()longgetLastDaysCount()longgetLastHoursCount()longgetLastMinuteCount()longgetLastMonthsCount()longgetLastWeeksCount()doublegetMinuteAverage()doublegetMonthlyAverage()longgetTotal()doublegetWeeklyAverage()booleanisStarted()voidstart()voidstop()(package private) voidupdate()(package private) voidupdate(long now)
-
-
-
Field Detail
-
countingFilter
final CountingFilter countingFilter
-
started
boolean started
-
statsByMinute
StatsByMinute statsByMinute
-
statsByHour
StatsByHour statsByHour
-
statsByDay
StatsByDay statsByDay
-
statsByWeek
StatsByWeek statsByWeek
-
statsByMonth
StatsByMonth statsByMonth
-
-
Constructor Detail
-
StatisticalViewImpl
StatisticalViewImpl(CountingFilter countingFilter)
-
-
Method Detail
-
getDailyAverage
public double getDailyAverage()
- Specified by:
getDailyAveragein interfaceStatisticalView
-
getLastDaysCount
public long getLastDaysCount()
- Specified by:
getLastDaysCountin interfaceStatisticalView
-
getMonthlyAverage
public double getMonthlyAverage()
- Specified by:
getMonthlyAveragein interfaceStatisticalView
-
getLastMonthsCount
public long getLastMonthsCount()
- Specified by:
getLastMonthsCountin interfaceStatisticalView
-
getTotal
public long getTotal()
- Specified by:
getTotalin interfaceStatisticalView
-
getWeeklyAverage
public double getWeeklyAverage()
- Specified by:
getWeeklyAveragein interfaceStatisticalView
-
getLastWeeksCount
public long getLastWeeksCount()
- Specified by:
getLastWeeksCountin interfaceStatisticalView
-
update
void update(long now)
-
update
void update()
-
getLastMinuteCount
public long getLastMinuteCount()
- Specified by:
getLastMinuteCountin interfaceStatisticalView
-
getMinuteAverage
public double getMinuteAverage()
- Specified by:
getMinuteAveragein interfaceStatisticalView
-
getHourlyAverage
public double getHourlyAverage()
- Specified by:
getHourlyAveragein interfaceStatisticalView
-
getLastHoursCount
public long getLastHoursCount()
- Specified by:
getLastHoursCountin interfaceStatisticalView
-
-