|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.poller.remote.support.DefaultPollerBackEnd
public class DefaultPollerBackEnd
| Constructor Summary | |
|---|---|
DefaultPollerBackEnd()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
void |
checkForDisconnectedMonitors()
|
void |
configurationUpdated()
|
java.util.Collection<org.opennms.netmgt.model.OnmsMonitoringLocationDefinition> |
getMonitoringLocations()
Return the set of available MonitoringLocationDefinitions |
java.lang.String |
getMonitorName(int locationMonitorId)
Get monitor name |
PollerConfiguration |
getPollerConfiguration(int locationMonitorId)
Gets the poller configuration assigned to this monitoring location |
java.util.Collection<ServiceMonitorLocator> |
getServiceMonitorLocators(DistributionContext context)
Get service monitor locators for creating serviceMonitors for the poller. |
org.opennms.netmgt.model.OnmsLocationMonitor.MonitorStatus |
pollerCheckingIn(int locationMonitorId,
java.util.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,
java.util.Map<java.lang.String,java.lang.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(java.lang.String monitoringLocationId)
Register a new location monitor |
void |
reportResult(int locationMonitorID,
int serviceId,
org.opennms.netmgt.model.PollStatus pollResult)
Report a poll result from the client to the server. |
void |
setDisconnectedTimeout(int disconnectedTimeout)
|
void |
setEventIpcManager(EventIpcManager eventIpcManager)
|
void |
setLocationMonitorDao(org.opennms.netmgt.dao.LocationMonitorDao locMonDao)
|
void |
setMonitoredServiceDao(org.opennms.netmgt.dao.MonitoredServiceDao monSvcDao)
|
void |
setPollerConfig(PollerConfig pollerConfig)
|
void |
setTimeKeeper(org.opennms.core.utils.TimeKeeper timeKeeper)
|
void |
start()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultPollerBackEnd()
| Method Detail |
|---|
public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exception
public void start()
throws java.lang.Exception
start in interface SpringServiceDaemonjava.lang.Exceptionpublic void checkForDisconnectedMonitors()
checkForDisconnectedMonitors in interface PollerBackEndpublic void configurationUpdated()
configurationUpdated in interface PollerBackEndpublic java.util.Collection<org.opennms.netmgt.model.OnmsMonitoringLocationDefinition> getMonitoringLocations()
PollerBackEnd
getMonitoringLocations in interface PollerBackEndpublic java.lang.String getMonitorName(int locationMonitorId)
PollerBackEnd
getMonitorName in interface PollerBackEndpublic PollerConfiguration getPollerConfiguration(int locationMonitorId)
PollerBackEnd
getPollerConfiguration in interface PollerBackEndlocationMonitorId - the id of the requesting location monitor
public java.util.Collection<ServiceMonitorLocator> getServiceMonitorLocators(DistributionContext context)
PollerBackEnd
getServiceMonitorLocators in interface PollerBackEnd
public org.opennms.netmgt.model.OnmsLocationMonitor.MonitorStatus pollerCheckingIn(int locationMonitorId,
java.util.Date currentConfigurationVersion)
PollerBackEnd
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,
java.util.Map<java.lang.String,java.lang.String> pollerDetails)
PollerBackEnd
pollerStarting in interface PollerBackEndlocationMonitorId - the id of the requesting location monitorpollerDetails - TODOpublic void pollerStopping(int locationMonitorId)
PollerBackEnd
pollerStopping in interface PollerBackEndlocationMonitorId - the id of the requesting location monitorpublic int registerLocationMonitor(java.lang.String monitoringLocationId)
PollerBackEnd
registerLocationMonitor in interface PollerBackEndmonitoringLocationId - the id of the monitoredLocation to associate with
this location monitor
public void reportResult(int locationMonitorID,
int serviceId,
org.opennms.netmgt.model.PollStatus pollResult)
PollerBackEnd
reportResult in interface PollerBackEndlocationMonitorID - the id of the location monitor that did the pollserviceId - the id of the service that was polledpublic void setDisconnectedTimeout(int disconnectedTimeout)
public void setEventIpcManager(EventIpcManager eventIpcManager)
public void setLocationMonitorDao(org.opennms.netmgt.dao.LocationMonitorDao locMonDao)
public void setMonitoredServiceDao(org.opennms.netmgt.dao.MonitoredServiceDao monSvcDao)
public void setPollerConfig(PollerConfig pollerConfig)
public void setTimeKeeper(org.opennms.core.utils.TimeKeeper timeKeeper)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||