Nitido Inc.

com.nitido.nimbox.http.services.tracking.file
Class FileTrackingService

java.lang.Object
  extended by com.nitido.nimbox.http.services.tracking.NiMTrackingService
      extended by com.nitido.nimbox.http.services.tracking.file.FileTrackingService
All Implemented Interfaces:
FileTrackingServiceConstants

public class FileTrackingService
extends NiMTrackingService
implements FileTrackingServiceConstants

This class implements the NiMTrackingService interface. This Tracking Service implementation logs all events into a log file using the NiM Logging Service. The configuration for this service must follow the format bellow:


Field Summary
 
Fields inherited from interface com.nitido.nimbox.http.services.tracking.file.FileTrackingServiceConstants
ANONYMOUS_ID, CONF_KEY_TRACKING_DATE_FORMAT, CONF_KEY_TRACKING_LOG, CONF_KEY_TRACKING_TZ, DEFAULT_TRACKING_DATE_FORMAT, DEFAULT_TZ
 
Method Summary
static FileTrackingService getInstance()
          This method returns the singleton instance of the class.
 void recordEvent(Entity entity, TrackingEvent event)
          This method records the given event using the NiM Logging Service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static FileTrackingService getInstance()
This method returns the singleton instance of the class. If an instance has not been instantiated, the instance is created, otherwise the existing instance is returned. This method can be assumed to be thread safe.

Returns:
Reference to the singleton class instance.

recordEvent

public void recordEvent(Entity entity,
                        TrackingEvent event)
This method records the given event using the NiM Logging Service.

Specified by:
recordEvent in class NiMTrackingService
Parameters:
entity - Reference to the entity making the request.
event - Reference to the event being recorded. This parameter cannot be null.
Throws:
java.lang.IllegalArgumentException - If the event parameter is null

Nitido NiM 2.5 Java API

These JavaDoc pages are generated for release/nim_2_5-2.5.44

Copyright © 1999-2009 Nitido Inc.    Proprietary and Confidential.    All Rights Reserved.