Kieker 1.3

kieker.tools.currentTimeEventGenerator
Class TimestampEvent

java.lang.Object
  extended by kieker.tools.currentTimeEventGenerator.TimestampEvent
All Implemented Interfaces:
IAnalysisEvent

public class TimestampEvent
extends Object
implements IAnalysisEvent

Record type which can be used to store the current time in the field timestamp.

Author:
Andre van Hoorn

Constructor Summary
TimestampEvent(long currenTime)
          Creates a new TimestampEvent with the given timestamp.
 
Method Summary
 long getTimestamp()
          Returns the current time.
 void setTimestamp(long timestamp)
          Sets the current time to the given value.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimestampEvent

public TimestampEvent(long currenTime)
Creates a new TimestampEvent with the given timestamp.

Parameters:
currenTime -
Method Detail

getTimestamp

public long getTimestamp()
Returns the current time.

Returns:

setTimestamp

public void setTimestamp(long timestamp)
Sets the current time to the given value.

Parameters:
timestamp -

Kieker 1.3

Copyright 2011 the Kieker Project, http://kieker.sourceforge.net