org.opennms.protocols.xml.collector
Class ConstantTimeKeeper

java.lang.Object
  extended by org.opennms.protocols.xml.collector.ConstantTimeKeeper
All Implemented Interfaces:
TimeKeeper

public class ConstantTimeKeeper
extends Object
implements TimeKeeper

The Class ConstantTimeKeeper.

Author:
Alejandro Galue

Constructor Summary
ConstantTimeKeeper(Date date)
          Instantiates a new constant time keeper.
 
Method Summary
 Date getCurrentDate()
           
 long getCurrentTime()
           
 TimeZone getTimeZone()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstantTimeKeeper

public ConstantTimeKeeper(Date date)
Instantiates a new constant time keeper.

Parameters:
date - the date
Method Detail

getCurrentTime

public long getCurrentTime()
Specified by:
getCurrentTime in interface TimeKeeper

getCurrentDate

public Date getCurrentDate()
Specified by:
getCurrentDate in interface TimeKeeper

getTimeZone

public TimeZone getTimeZone()
Specified by:
getTimeZone in interface TimeKeeper


Copyright © 2011. All Rights Reserved.