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 PollConfigPollStatus object.public void refresh()
refresh in interface PollConfigpublic long getCurrentTime()
getCurrentTime
getCurrentTime in interface PollConfiggetCurrentTime in interface Timerpublic long getInterval()
getInterval
getInterval in interface ScheduleIntervalpublic boolean scheduledSuspension()
scheduledSuspension
scheduledSuspension in interface ScheduleIntervalpublic String getPackageName()
public int getNodeId()
Copyright © 2022. All rights reserved.