com.raritantechnologies.utils.time
Class FlatFileEventRecorder

java.lang.Object
  extended bycom.raritantechnologies.utils.time.FlatFileEventRecorder
All Implemented Interfaces:
IConfigurable, IEventRecorder

public class FlatFileEventRecorder
extends java.lang.Object
implements IEventRecorder

Event Recorder that adds event times to a flat file.

XML Configuration Template:
   <EventRecorder class="com.raritantechnologies.utils.time.FlatFileEventRecorder"
       fileName="[file name to write event times]"
       dateFormat="[Date format for event times]" 
       delimiter="|" />
 

Developed by Raritan Technologies .

Author:
Ted Sullivan

Field Summary
 
Fields inherited from interface com.raritantechnologies.utils.time.IEventRecorder
type
 
Constructor Summary
FlatFileEventRecorder()
           
FlatFileEventRecorder(java.lang.String fileName, java.lang.String dateFormatSt)
           
 
Method Summary
 java.lang.String getDateFormat()
           
 java.lang.String getDelimiter()
           
 java.util.List getEventTimes(java.lang.String eventName)
           
 java.lang.String getFileName()
           
 java.util.Date getLastEventTime(java.lang.String eventName)
           
 void initialize(org.w3c.dom.Element elem)
          Initializes the object from an XML tag or element.
 void setDateFormat(java.lang.String dateFormatSt)
           
 void setDelimiter(java.lang.String delimiter)
           
 void setFileName(java.lang.String fileName)
           
 void storeEventTime(java.lang.String eventName, java.util.Date eventTime)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlatFileEventRecorder

public FlatFileEventRecorder()

FlatFileEventRecorder

public FlatFileEventRecorder(java.lang.String fileName,
                             java.lang.String dateFormatSt)
Method Detail

getLastEventTime

public java.util.Date getLastEventTime(java.lang.String eventName)
Specified by:
getLastEventTime in interface IEventRecorder

getEventTimes

public java.util.List getEventTimes(java.lang.String eventName)
Specified by:
getEventTimes in interface IEventRecorder

storeEventTime

public void storeEventTime(java.lang.String eventName,
                           java.util.Date eventTime)
Specified by:
storeEventTime in interface IEventRecorder

initialize

public void initialize(org.w3c.dom.Element elem)
Description copied from interface: IConfigurable
Initializes the object from an XML tag or element. This method is called by the Framework as part of the application initializtion. see ConfigurationManager, XMLConfigurationManager, XMLSearchFieldMapFactory, XMLSearchSourceFactory. Configurable objects that are owned or contained by other configurable objects will be initialized in by the parent object.

Specified by:
initialize in interface IConfigurable

setFileName

public void setFileName(java.lang.String fileName)

getFileName

public java.lang.String getFileName()

setDelimiter

public void setDelimiter(java.lang.String delimiter)

getDelimiter

public java.lang.String getDelimiter()

setDateFormat

public void setDateFormat(java.lang.String dateFormatSt)

getDateFormat

public java.lang.String getDateFormat()