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)
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)
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 PollConfig
PollStatus
object.public void refresh()
refresh
in interface PollConfig
public void refreshThresholds()
refreshThresholds
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 © 2017. All rights reserved.