org.opennms.netmgt.poller.pollables
Class PollableServiceConfig
java.lang.Object
org.opennms.netmgt.poller.pollables.PollableServiceConfig
- All Implemented Interfaces:
- PollConfig, ScheduleInterval, Timer
public class PollableServiceConfig
- extends Object
- implements PollConfig, ScheduleInterval
Represents a PollableServiceConfig
- Author:
- Mathew Brozowski
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PollableServiceConfig
public PollableServiceConfig(PollableService svc,
PollerConfig pollerConfig,
PollOutagesConfig pollOutagesConfig,
Package pkg,
Timer timer)
poll
public PollStatus poll()
- Specified by:
poll in interface PollConfig
refresh
public void refresh()
- Uses the existing package name to try and re-obtain the package from the poller config factory.
Should be called when the poller config has been reloaded.
- Specified by:
refresh in interface PollConfig
getCurrentTime
public long getCurrentTime()
- Specified by:
getCurrentTime in interface PollConfig- Specified by:
getCurrentTime in interface Timer
getInterval
public long getInterval()
- Specified by:
getInterval in interface ScheduleInterval
scheduledSuspension
public boolean scheduledSuspension()
- Specified by:
scheduledSuspension in interface ScheduleInterval
- Returns:
Copyright © 2009. All Rights Reserved.