@Service public class DefaultStatsService extends Object implements StatsService
Constructor and Description |
---|
DefaultStatsService() |
Modifier and Type | Method and Description |
---|---|
ClientStat |
getCountForClientId(String clientId)
Calculate the usage count for a single client
|
Map<String,Integer> |
getSummaryStats()
Calculate summary statistics
approvalCount: total approved sites
userCount: unique users
clientCount: unique clients
|
void |
resetCache()
Reset both stats caches on a trigger (before the timer runs out).
|
public DefaultStatsService()
public Map<String,Integer> getSummaryStats()
StatsService
getSummaryStats
in interface StatsService
public ClientStat getCountForClientId(String clientId)
StatsService
getCountForClientId
in interface StatsService
clientId
- the id of the client to search onpublic void resetCache()
resetCache
in interface StatsService
Copyright © 2018. All rights reserved.