com.raritantechnologies.utils.time
Class FlatFileEventRecorder
java.lang.Object
com.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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FlatFileEventRecorder
public FlatFileEventRecorder()
FlatFileEventRecorder
public FlatFileEventRecorder(java.lang.String fileName,
java.lang.String dateFormatSt)
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()