Package org.dspace.app.statistics

Defines usage event instrumentation points and provides implementations for testing.

See: Description

Package org.dspace.app.statistics Description

Defines usage event instrumentation points and provides implementations for testing.

This package makes usage instrumentation (for statistics, or whatever else you may fancy) pluggable, while avoiding any unnecessary assumptions about how usage events may be transmitted, persisted, or processed.

At appropriate points in the processing of user actions, events may be assembled and "fired". What happens when an event is fired is configurable via the PluginService. One must configure a plugin for the AbstractUsageEvent class, defined in this package, to select an event processing implementation.

Three "stock" implementations are provided.

PassiveUsageEventListener
absorbs events without taking action, resulting in behavior identical to that of DSpace before this package was added. This is the default if no plugin is configured.
TabFileUsageEventListener
writes event records to a file in Tab Separated Values format.
UsageEventXMLLogger
writes event records to a file in an XML format. Suitable mainly for testing.

Copyright © 2016 DuraSpace. All Rights Reserved.