Package org.dspace.google
Class GoogleAsyncEventListener
java.lang.Object
org.dspace.usage.AbstractUsageEventListener
org.dspace.google.GoogleAsyncEventListener
- All Implemented Interfaces:
EventListener
Notifies Google Analytics of Bitstream VIEW events. These events are stored in memory and then
asynchronously processed by a single separate thread.
- Author:
- April Herron, Luca Giamminonni
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.commons.collections.Buffervoidinit()voidreceiveEvent(Event event) voidSend the collected events to Google Analytics.voidsetGoogleAnalyticsClients(List<GoogleAnalyticsClient> googleAnalyticsClients) Methods inherited from class org.dspace.usage.AbstractUsageEventListener
getEventNamePrefixes, getResourcePrefix, setEventService
-
Field Details
-
GA_MAX_EVENTS
public static final int GA_MAX_EVENTS- See Also:
-
-
Constructor Details
-
GoogleAsyncEventListener
public GoogleAsyncEventListener()
-
-
Method Details
-
init
@PostConstruct public void init() -
receiveEvent
-
sendCollectedEvents
public void sendCollectedEvents()Send the collected events to Google Analytics. -
getGoogleAnalyticsClients
-
setGoogleAnalyticsClients
-
getEventsBuffer
public org.apache.commons.collections.Buffer getEventsBuffer()
-