public class PollableServiceConfig extends Object implements PollConfig, ScheduleInterval
| Constructor and Description |
|---|
PollableServiceConfig(PollableService svc,
PollerConfig pollerConfig,
PollOutagesConfig pollOutagesConfig,
Package pkg,
Timer timer,
PersisterFactory persisterFactory,
ResourceStorageDao resourceStorageDao,
LocationAwarePollerClient locationAwarePollerClient)
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.
|
void |
refreshThresholds()
Should be called when thresholds configuration has been reloaded
|
boolean |
scheduledSuspension()
scheduledSuspension
|
public PollableServiceConfig(PollableService svc, PollerConfig pollerConfig, PollOutagesConfig pollOutagesConfig, Package pkg, Timer timer, PersisterFactory persisterFactory, ResourceStorageDao resourceStorageDao, LocationAwarePollerClient locationAwarePollerClient)
Constructor for PollableServiceConfig.
svc - a PollableService object.pollerConfig - a PollerConfig object.pollOutagesConfig - a PollOutagesConfig 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 void refreshThresholds()
refreshThresholds 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 © 2020. All rights reserved.