Package io.goobi.viewer.managedbeans
Class StatisticsBean
java.lang.Object
io.goobi.viewer.managedbeans.StatisticsBean
- All Implemented Interfaces:
Serializable
Bean for the statistics page.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetConnectorVersion.getContentServerVersion.getCoreVersion.getIndexerVersion.getLastUsageStatisticsCheck.getUsageStatisticsForRecord.booleanisUsageStatisticsActive.protected StatisticsSummaryloadSummary(String pi)
-
Constructor Details
-
StatisticsBean
public StatisticsBean()
-
-
Method Details
-
getCoreVersion
getCoreVersion.- Returns:
- goobi-viewer-core version
-
getConnectorVersion
getConnectorVersion.- Returns:
- goobi-viewer-connector version
-
getContentServerVersion
getContentServerVersion.- Returns:
- intrandaContentServer version
-
getIndexerVersion
getIndexerVersion.- Returns:
- goobi-viewer-indexer version
-
getUsageStatisticsForRecord
public StatisticsSummary getUsageStatisticsForRecord(String pi) throws PresentationException, IndexUnreachableException, DAOException getUsageStatisticsForRecord.- Parameters:
pi- persistent identifier of the record- Returns:
StatisticsSummary- Throws:
PresentationExceptionIndexUnreachableExceptionDAOException
-
loadSummary
protected StatisticsSummary loadSummary(String pi) throws IndexUnreachableException, PresentationException, DAOException -
getLastUsageStatisticsCheck
getLastUsageStatisticsCheck.- Returns:
- the date of the most recent usage statistics entry in the Solr index
- Throws:
IndexUnreachableException- if any.
-
isUsageStatisticsActive
public boolean isUsageStatisticsActive()isUsageStatisticsActive.- Returns:
- true if usage statistics collection is currently active, false otherwise
-