Package org.dspace.statistics.util
Class StatisticsImporter
java.lang.Object
org.dspace.statistics.util.StatisticsImporter
Class to load intermediate statistics files (produced from log files by
ClassicDSpaceLogConverter) into Solr.- Author:
- Stuart Lewis
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final BitstreamServiceprotected final CollectionServiceprotected final CommunityServiceprotected static final ConfigurationServiceprotected final ItemServiceprotected final SolrLoggerService -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
solrLoggerService
-
configurationService
-
bitstreamService
-
collectionService
-
communityService
-
itemService
-
-
Constructor Details
-
StatisticsImporter
public StatisticsImporter(boolean local) Constructor. Optionally loads local data to replace foreign data if using someone else's log files- Parameters:
local- Whether to use local data
-
-
Method Details
-
load
Read lines from the statistics file and load their data into solr.- Parameters:
filename- The filename of the file to loadcontext- The DSpace Contextverbose- Whether to display verbose output
-
main
Main method to run the statistics importer.- Parameters:
args- the command line arguments given- Throws:
Exception- If something goes wrong
-