Kieker 1.5

kieker.common.record.misc
Class TimestampRecord

java.lang.Object
  extended by kieker.common.record.AbstractMonitoringRecord
      extended by kieker.common.record.misc.TimestampRecord
All Implemented Interfaces:
Serializable, Comparable<IMonitoringRecord>, IMonitoringRecord, IMonitoringRecord.Factory

public final class TimestampRecord
extends AbstractMonitoringRecord
implements IMonitoringRecord.Factory

Record type which can be used to store a timestamp.

Author:
Andre van Hoorn
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface kieker.common.record.IMonitoringRecord
IMonitoringRecord.Factory
 
Constructor Summary
TimestampRecord()
          Constructs a new TimestampRecord with the without setting the current time value.
TimestampRecord(long timestamp)
           
TimestampRecord(Object[] values)
           
 
Method Summary
 long getCurrentTime()
          Deprecated. will be removed in Kieker 1.6; use getTimestamp()
 long getTimestamp()
           
 Class<?>[] getValueTypes()
           
 void initFromArray(Object[] values)
          Deprecated. 
 void setCurrentTime(long currentTime)
          Deprecated. will be removed in Kieker 1.6; record will become immutable
 Object[] toArray()
           
 
Methods inherited from class kieker.common.record.AbstractMonitoringRecord
checkArray, classForName, compareTo, createFromArray, createFromStringArray, equals, fromStringArrayToTypedArray, getLoggingTimestamp, hashCode, setLoggingTimestamp, toString, typesForClass
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TimestampRecord

public TimestampRecord()
Constructs a new TimestampRecord with the without setting the current time value.


TimestampRecord

public TimestampRecord(long timestamp)

TimestampRecord

public TimestampRecord(Object[] values)
Method Detail

toArray

public Object[] toArray()
Specified by:
toArray in interface IMonitoringRecord

initFromArray

@Deprecated
public void initFromArray(Object[] values)
Deprecated. 

Specified by:
initFromArray in interface IMonitoringRecord

getValueTypes

public Class<?>[] getValueTypes()
Specified by:
getValueTypes in interface IMonitoringRecord

getCurrentTime

@Deprecated
public long getCurrentTime()
Deprecated. will be removed in Kieker 1.6; use getTimestamp()

Returns the current time.

Returns:
the current time.

getTimestamp

public final long getTimestamp()
Returns:
the timestamp

setCurrentTime

@Deprecated
public void setCurrentTime(long currentTime)
Deprecated. will be removed in Kieker 1.6; record will become immutable

Sets the current time to the given value.

Parameters:
currentTime -

Kieker 1.5

Copyright 2012 the Kieker Project, http://kieker-monitoring.net