Class DailySessionUsageStatistics
java.lang.Object
io.goobi.viewer.model.statistics.usage.DailySessionUsageStatistics
Persistence class holding the usage statistics for a single day in the form of a list of
SessionUsageStatistics.- Author:
- Florian Alpers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSession(SessionUsageStatistics session) getDate()getId()getSession(String sessionId) longlonggetTotalRequestCount(RequestType type, String pi) longgetTotalRequestCount(RequestType type, List<String> identifiersToInclude) longlonggetUniqueRequestCount(RequestType type, String pi) longgetUniqueRequestCount(RequestType type, List<String> includedIdentifiers) toString()
-
Constructor Details
-
DailySessionUsageStatistics
- Parameters:
date- the date these statistics were recordedviewer- the name of the viewer instance
-
DailySessionUsageStatistics
public DailySessionUsageStatistics() -
DailySessionUsageStatistics
- Parameters:
orig- the instance to copy
-
-
Method Details
-
getSession
- Parameters:
sessionId- the HTTP session ID to look up- Returns:
SessionUsageStatistics
-
addSession
- Parameters:
session- the session statistics to add
-
getId
-
getDate
-
getViewerInstance
-
getTotalRequestCount
- Parameters:
type- request type to countpi- persistent identifier of the record to filter by- Returns:
- the total number of requests of the given type for the given record PI across all sessions on this day
-
getTotalRequestCount
- Parameters:
type- request type to count- Returns:
- the total number of requests of the given type across all sessions and records on this day
-
getTotalRequestCount
- Parameters:
type- request type to countidentifiersToInclude- only count requests for these record identifiers- Returns:
- the total number of requests of the given type for the given record identifiers across all sessions on this day
-
getUniqueRequestCount
- Parameters:
type- request type to count- Returns:
- the number of unique records requested with the given type across all sessions on this day
-
getUniqueRequestCount
- Parameters:
type- request type to countpi- persistent identifier of the record to filter by- Returns:
- the number of sessions on this day that issued at least one request of the given type for the given record PI
-
getUniqueRequestCount
- Parameters:
type- request type to countincludedIdentifiers- only count sessions that requested any of these identifiers- Returns:
- the number of sessions on this day that issued at least one request of the given type for any of the given record identifiers
-
getRecordIdentifier
- Returns:
- List
-
toString
-