package org.everit.osgi.dev.maven.statistic;

/**
 * Interface for Google Analytics tracking.
 */
public interface GoogleAnalyticsTrackingService {

  /**
   * Send event tracking message to Google Analytics.
   *
   * @param analyticsReferer
   *          the name of the referer. That means who execute goal (example: eosgi-maven-plugin or
   *          eclipse-e4-plugin).
   * @param executedGoalName
   *          the name of the executed goal.
   */
  void sendEvent(String analyticsReferer, String executedGoalName);

  /**
   * Shutdown sending process.
   */
  void shutdown();
}

@@ -142,16 +142,203 @@
 vice %7B%0A%0A
+  /**%0A   * Cancel sending event process based on event id.%0A   *%0A   * @param eventId%0A   *          the id of the event that want so cancel.%0A   */%0A  void cancelEventSending(long eventId);%0A%0A
   /**%0A  
@@ -634,24 +634,73 @@
 al.%0A   *
-/%0A  void
+ @return the unique event id the send event.%0A   */%0A  long
  sendEve
@@ -756,70 +756,7 @@
 me);
-%0A%0A  /**%0A   * Shutdown sending process.%0A   */%0A  void shutdown();
 %0A%7D%0A

modify GoogleAnalyticsTrackingService interface