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:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetConnectorVersion.getContentServerVersion.getCoreVersion.Returns the total number of pages with OCR data.Returns the total number of imported pages.getImportedRecordsTrend(int days, int dataPoints) getImportedRecordsTrend.getIndexerVersion.getLastUsageStatisticsCheck.Returns a list of size two arrays which each contain the name and total number of imported works of a type of work (DocStructType).getUsageStatisticsForRecord.booleanChecks whether there are no records in the index.booleanisUsageStatisticsActive.protected StatisticsSummaryloadSummary(String pi)
-
Field Details
-
SEPARATOR
ConstantSEPARATOR="::".- See Also:
-
-
Constructor Details
-
StatisticsBean
public StatisticsBean()
-
-
Method Details
-
getImportedRecordsTrend
getImportedRecordsTrend.- Parameters:
days- total number of days covered by the trenddataPoints- number of data points to plot- Returns:
- a list of "timestamp;count" strings representing the record import trend over the given period
-
getTopStructTypesByNumber
Returns a list of size two arrays which each contain the name and total number of imported works of a type of work (DocStructType).- Returns:
- a list of "name;count" strings for each top-level document structure type ordered by number of records
-
getImportedPages
Returns the total number of imported pages.- Returns:
- the total number of imported page documents in the Solr index
-
getImportedFullTexts
Returns the total number of pages with OCR data.- Returns:
- the total number of page documents with full-text in the Solr index
-
isIndexEmpty
public boolean isIndexEmpty()Checks whether there are no records in the index.- Returns:
- true if record count is 0; false otherwise.
-
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
-