public interface PollerBackEnd
PollerBackEnd interface.
Modifier and Type | Field and Description |
---|---|
static String |
CONNECTION_HOST_ADDRESS_KEY |
static String |
CONNECTION_HOST_NAME_KEY |
static String |
HOST_ADDRESS_KEY |
static String |
HOST_NAME_KEY |
Modifier and Type | Method and Description |
---|---|
void |
checkForDisconnectedMonitors()
checkForDisconnectedMonitors
|
void |
configurationUpdated()
configurationUpdated
|
Set<String> |
getApplicationsForLocation(String location)
Gets all applications associated with
OnmsMonitoredService
objects managed by this monitoring location. |
Set<MetadataField> |
getMetadataFields()
Gets all of the metadata fields to be used and optionally reported by
the poller frontend.
|
Collection<OnmsMonitoringLocation> |
getMonitoringLocations()
Return the set of available MonitoringLocationDefinitions
|
String |
getMonitorName(String locationMonitorId)
Get monitor name
|
PollerConfiguration |
getPollerConfiguration(String locationMonitorId)
Deprecated.
Use
getPollerConfigurationForLocation(String) instead. |
PollerConfiguration |
getPollerConfigurationForLocation(String location)
Gets the poller configuration assigned to this monitoring location
|
Collection<ServiceMonitorLocator> |
getServiceMonitorLocators(DistributionContext context)
Get service monitor locators for creating serviceMonitors for the poller.
|
PollerTheme |
getTheme()
Gets the theme (color, title, logo) information to use in poller UIs
|
OnmsLocationMonitor.MonitorStatus |
pollerCheckingIn(String locationMonitorId,
Date currentConfigurationVersion)
Checkin with the backend to let it know that the poller is still alive and to find
out if there are any configuration changes.
|
boolean |
pollerStarting(String locationMonitorId,
Map<String,String> pollerDetails)
Notifies the backend that a registered poller is starting
|
void |
pollerStopping(String locationMonitorId)
Notifies the backend that a registered poller is stopping
|
String |
registerLocationMonitor(String monitoringLocationId)
Register a new location monitor
|
void |
reportResult(String locationMonitorID,
int serviceId,
PollStatus status)
Report a poll result from the client to the server.
|
void |
reportSingleScan(ScanReport report)
Report a single scan from the client to the server.
|
void |
saveResponseTimeData(String locationMonitor,
OnmsMonitoredService monSvc,
double responseTime,
Package pkg)
saveResponseTimeData
|
static final String HOST_ADDRESS_KEY
static final String HOST_NAME_KEY
static final String CONNECTION_HOST_ADDRESS_KEY
static final String CONNECTION_HOST_NAME_KEY
Collection<OnmsMonitoringLocation> getMonitoringLocations()
Collection
object.String registerLocationMonitor(String monitoringLocationId)
monitoringLocationId
- the id of the monitoredLocation to associate with
this location monitorString getMonitorName(String locationMonitorId)
locationMonitorId
- a int.String
object.Collection<ServiceMonitorLocator> getServiceMonitorLocators(DistributionContext context)
context
- a DistributionContext
object.Collection
object.boolean pollerStarting(String locationMonitorId, Map<String,String> pollerDetails)
locationMonitorId
- the id of the requesting location monitorpollerDetails
- TODOvoid pollerStopping(String locationMonitorId)
locationMonitorId
- the id of the requesting location monitorOnmsLocationMonitor.MonitorStatus pollerCheckingIn(String locationMonitorId, Date currentConfigurationVersion)
locationMonitorId
- the id of the location monitor that is checking incurrentConfigurationVersion
- the version of the configuration that the location monitor is currently usingPollerConfiguration getPollerConfiguration(String locationMonitorId)
getPollerConfigurationForLocation(String)
instead.locationMonitorId
- the id of the requesting location monitorhttp://issues.opennms.org/browse/PB-36
PollerConfiguration getPollerConfigurationForLocation(String location)
location
- the locationSet<String> getApplicationsForLocation(String location)
OnmsMonitoredService
objects managed by this monitoring location.location
- the locationSet<MetadataField> getMetadataFields()
PollerTheme getTheme()
void reportResult(String locationMonitorID, int serviceId, PollStatus status)
locationMonitorID
- the id of the location monitor that did the pollserviceId
- the id of the service that was polledstatus
- a PollStatus
object.void reportSingleScan(ScanReport report)
void configurationUpdated()
configurationUpdated
void checkForDisconnectedMonitors()
checkForDisconnectedMonitors
void saveResponseTimeData(String locationMonitor, OnmsMonitoredService monSvc, double responseTime, Package pkg)
saveResponseTimeData
locationMonitor
- a String
object.monSvc
- a OnmsMonitoredService
object.responseTime
- a double.pkg
- a Package
object.Copyright © 2021. All rights reserved.