org.opennms.netmgt.poller.pollables
Class PollableServiceConfig

java.lang.Object
  extended by 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

Constructor Summary
PollableServiceConfig(PollableService svc, PollerConfig pollerConfig, PollOutagesConfig pollOutagesConfig, Package pkg, Timer timer)
           
 
Method Summary
 long getCurrentTime()
           
 long getInterval()
           
 PollStatus poll()
           
 void refresh()
          Uses the existing package name to try and re-obtain the package from the poller config factory.
 boolean scheduledSuspension()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PollableServiceConfig

public PollableServiceConfig(PollableService svc,
                             PollerConfig pollerConfig,
                             PollOutagesConfig pollOutagesConfig,
                             Package pkg,
                             Timer timer)
Method Detail

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.