public class PollableServiceConfig extends Object implements PollConfig, ScheduleInterval
Constructor and Description |
---|
PollableServiceConfig(PollableService svc,
PollerConfig pollerConfig,
Package pkg,
Timer timer,
PersisterFactory persisterFactory,
ThresholdingService thresholdingService,
LocationAwarePollerClient locationAwarePollerClient,
ReadablePollOutagesDao pollOutagesDao)
Constructor for PollableServiceConfig.
|
Modifier and Type | Method and Description |
---|---|
long |
getCurrentTime()
getCurrentTime
|
long |
getInterval()
getInterval
|
int |
getNodeId() |
String |
getPackageName() |
PollStatus |
poll()
poll
|
void |
refresh()
Uses the existing package name to try and re-obtain the package from the poller config factory.
|
boolean |
scheduledSuspension()
scheduledSuspension
|
public PollableServiceConfig(PollableService svc, PollerConfig pollerConfig, Package pkg, Timer timer, PersisterFactory persisterFactory, ThresholdingService thresholdingService, LocationAwarePollerClient locationAwarePollerClient, ReadablePollOutagesDao pollOutagesDao)
Constructor for PollableServiceConfig.
svc
- a PollableService
object.pollerConfig
- a PollerConfig
object.pkg
- a Package
object.timer
- a Timer
object.public PollStatus poll()
poll
poll
in interface PollConfig
PollStatus
object.public void refresh()
refresh
in interface PollConfig
public long getCurrentTime()
getCurrentTime
getCurrentTime
in interface PollConfig
getCurrentTime
in interface Timer
public long getInterval()
getInterval
getInterval
in interface ScheduleInterval
public boolean scheduledSuspension()
scheduledSuspension
scheduledSuspension
in interface ScheduleInterval
public String getPackageName()
public int getNodeId()
Copyright © 2021. All rights reserved.