atg.service.datacollection
Class DataItem

java.lang.Object
  extended by atg.service.datacollection.DataItem

public class DataItem
extends java.lang.Object

A basic data item. All this class has is a timestamp which can be read as millis or as a Date. If you want to pick up the timestamping functionality in your own custom data items, you can subclass DataItem or just copy the date code.

If you want to create log events to print messages and exceptions you probably want to subclass LogEvent and use the logging facility instead.

See Also:
LogEvent

Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Constructor Summary
DataItem()
          Construct an empty data item.
 
Method Summary
 java.util.Date getDateTimeStamp()
          Returns property DateTimeStamp
 long getTimeStamp()
          Returns property TimeStamp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string

Constructor Detail

DataItem

public DataItem()
Construct an empty data item.

Method Detail

getTimeStamp

public long getTimeStamp()
Returns property TimeStamp


getDateTimeStamp

public java.util.Date getDateTimeStamp()
Returns property DateTimeStamp