|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hyperic.util.timer.UserSpecifiedTimeClock
public class UserSpecifiedTimeClock
A clock that returns the value set by the user. This implementation is particularly useful for unit testing frameworks.
Constructor Summary | |
---|---|
UserSpecifiedTimeClock()
Creates an instance that defaults to the current system time. |
Method Summary | |
---|---|
long |
currentTimeMillis()
|
void |
setCurrentTime(long currentTimeMillis)
Set the current time. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UserSpecifiedTimeClock()
Method Detail |
---|
public void setCurrentTime(long currentTimeMillis)
currentTimeMillis
- The current time in milliseconds.public long currentTimeMillis()
currentTimeMillis
in interface Clock
Clock.currentTimeMillis()
|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |