|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.poller.remote.support.ExceptionProtectedPollerBackEnd
public class ExceptionProtectedPollerBackEnd
ExceptionProtectedPollerBackEnd. This turns all server side exceptions into RemoteAccessExceptions so the ServerUnreachableAdapter can handle the code correctly.
| Constructor Summary | |
|---|---|
ExceptionProtectedPollerBackEnd()
|
|
| Method Summary | |
|---|---|
void |
checkForDisconnectedMonitors()
checkForDisconnectedMonitors |
void |
configurationUpdated()
configurationUpdated |
Collection<OnmsMonitoringLocationDefinition> |
getMonitoringLocations()
getMonitoringLocations |
String |
getMonitorName(int locationMonitorId)
Get monitor name |
PollerConfiguration |
getPollerConfiguration(int locationMonitorId)
Gets the poller configuration assigned to this monitoring location |
Collection<ServiceMonitorLocator> |
getServiceMonitorLocators(DistributionContext context)
Get service monitor locators for creating serviceMonitors for the poller. |
OnmsLocationMonitor.MonitorStatus |
pollerCheckingIn(int 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(int locationMonitorId,
Map<String,String> pollerDetails)
Notifies the backend that a registered poller is starting |
void |
pollerStopping(int locationMonitorId)
Notifies the backend that a registered poller is stopping |
int |
registerLocationMonitor(String monitoringLocationId)
Register a new location monitor |
void |
reportResult(int locationMonitorID,
int serviceId,
PollStatus status)
Report a poll result from the client to the server. |
void |
setDelegate(PollerBackEnd delegate)
setDelegate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExceptionProtectedPollerBackEnd()
| Method Detail |
|---|
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(int locationMonitorId)
getMonitorName in interface PollerBackEndlocationMonitorId - a int.
String object.public Collection<OnmsMonitoringLocationDefinition> getMonitoringLocations()
getMonitoringLocations
getMonitoringLocations in interface PollerBackEndCollection object.public PollerConfiguration getPollerConfiguration(int locationMonitorId)
getPollerConfiguration in interface PollerBackEndlocationMonitorId - the id of the requesting location monitor
public Collection<ServiceMonitorLocator> getServiceMonitorLocators(DistributionContext context)
getServiceMonitorLocators in interface PollerBackEndcontext - a DistributionContext object.
Collection object.
public OnmsLocationMonitor.MonitorStatus pollerCheckingIn(int 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 using
public boolean pollerStarting(int locationMonitorId,
Map<String,String> pollerDetails)
pollerStarting in interface PollerBackEndlocationMonitorId - the id of the requesting location monitorpollerDetails - TODO
public void pollerStopping(int locationMonitorId)
pollerStopping in interface PollerBackEndlocationMonitorId - the id of the requesting location monitorpublic int registerLocationMonitor(String monitoringLocationId)
registerLocationMonitor in interface PollerBackEndmonitoringLocationId - the id of the monitoredLocation to associate with
this location monitor
public void reportResult(int 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||