Class MockInterval
- java.lang.Object
-
- org.opennms.netmgt.scheduler.mock.MockInterval
-
- All Implemented Interfaces:
ScheduleInterval
public class MockInterval extends Object implements ScheduleInterval
-
-
Constructor Summary
Constructors Constructor Description MockInterval(Timer timer, long interval)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSuspension(long start, long end)
long
getInterval()
getIntervalboolean
scheduledSuspension()
scheduledSuspensionvoid
setInterval(long interval)
-
-
-
Constructor Detail
-
MockInterval
public MockInterval(Timer timer, long interval)
- Parameters:
l
-
-
-
Method Detail
-
getInterval
public long getInterval()
Description copied from interface:ScheduleInterval
getInterval
- Specified by:
getInterval
in interfaceScheduleInterval
- Returns:
- a long.
-
setInterval
public void setInterval(long interval)
-
addSuspension
public void addSuspension(long start, long end)
-
scheduledSuspension
public boolean scheduledSuspension()
Description copied from interface:ScheduleInterval
scheduledSuspension
- Specified by:
scheduledSuspension
in interfaceScheduleInterval
- Returns:
- a boolean.
-
-