public class ExceptionProtectedPollerBackEnd extends Object implements PollerBackEnd
CONNECTION_HOST_ADDRESS_KEY, CONNECTION_HOST_NAME_KEY, HOST_ADDRESS_KEY, HOST_NAME_KEY| Constructor and Description | 
|---|
ExceptionProtectedPollerBackEnd()  | 
| 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()
getMonitoringLocations 
 | 
String | 
getMonitorName(String locationMonitorId)
Get monitor name 
 | 
PollerConfiguration | 
getPollerConfiguration(String locationMonitorId)
Gets the poller configuration assigned to this location monitor. 
 | 
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 
 | 
void | 
setDelegate(PollerBackEnd delegate)
setDelegate 
 | 
public void setDelegate(PollerBackEnd delegate)
setDelegate
delegate - a PollerBackEnd object.public void checkForDisconnectedMonitors()
checkForDisconnectedMonitors
checkForDisconnectedMonitors in interface PollerBackEndpublic void configurationUpdated()
configurationUpdated
configurationUpdated in interface PollerBackEndpublic String getMonitorName(String locationMonitorId)
getMonitorName in interface PollerBackEndlocationMonitorId - a int.String object.public Collection<OnmsMonitoringLocation> getMonitoringLocations()
getMonitoringLocations
getMonitoringLocations in interface PollerBackEndCollection object.public PollerConfiguration getPollerConfiguration(String locationMonitorId)
getPollerConfiguration in interface PollerBackEndlocationMonitorId - the id of the requesting location monitorhttp://issues.opennms.org/browse/PB-36public PollerConfiguration getPollerConfigurationForLocation(String location)
getPollerConfigurationForLocation in interface PollerBackEndlocation - the locationpublic Set<String> getApplicationsForLocation(String location)
OnmsMonitoredService
 objects managed by this monitoring location.getApplicationsForLocation in interface PollerBackEndlocation - the locationpublic Collection<ServiceMonitorLocator> getServiceMonitorLocators(DistributionContext context)
getServiceMonitorLocators in interface PollerBackEndcontext - a DistributionContext object.Collection object.public OnmsLocationMonitor.MonitorStatus pollerCheckingIn(String locationMonitorId, Date currentConfigurationVersion)
pollerCheckingIn in interface PollerBackEndlocationMonitorId - the id of the location monitor that is checking incurrentConfigurationVersion - the version of the configuration that the location monitor is currently usingpublic boolean pollerStarting(String locationMonitorId, Map<String,String> pollerDetails)
pollerStarting in interface PollerBackEndlocationMonitorId - the id of the requesting location monitorpollerDetails - TODOpublic void pollerStopping(String locationMonitorId)
pollerStopping in interface PollerBackEndlocationMonitorId - the id of the requesting location monitorpublic String registerLocationMonitor(String monitoringLocationId)
registerLocationMonitor in interface PollerBackEndmonitoringLocationId - the id of the monitoredLocation to associate with
 this location monitorpublic void reportResult(String locationMonitorID, int serviceId, PollStatus status)
reportResult in interface PollerBackEndlocationMonitorID - the id of the location monitor that did the pollserviceId - the id of the service that was polledstatus - a PollStatus object.public void saveResponseTimeData(String locationMonitor, OnmsMonitoredService monSvc, double responseTime, Package pkg)
PollerBackEndsaveResponseTimeData
saveResponseTimeData in interface PollerBackEndlocationMonitor - a String object.monSvc - a OnmsMonitoredService object.responseTime - a double.pkg - a Package object.public void reportSingleScan(ScanReport report)
PollerBackEndreportSingleScan in interface PollerBackEndpublic Set<MetadataField> getMetadataFields()
PollerBackEndgetMetadataFields in interface PollerBackEndpublic PollerTheme getTheme()
PollerBackEndgetTheme in interface PollerBackEndCopyright © 2021. All rights reserved.