public class DefaultServiceMonitorRegistry extends Object implements ServiceMonitorRegistry
Aggregates ServiceMonitor
implementations exposed via the ServiceLoader
and via the OSGi registry.
In order to expose a service monitor via the Java Service Loader, you must include the full package and class name in /META-INF/services/org.opennms.netmgt.poller.ServiceMonitor
Services monitors exposed via OSGi must include a 'type' property with the class-name of the services monitor being exposed.
Constructor and Description |
---|
DefaultServiceMonitorRegistry() |
Modifier and Type | Method and Description |
---|---|
ServiceMonitor |
getMonitorByClassName(String className) |
Set<String> |
getMonitorClassNames() |
void |
onBind(ServiceMonitor serviceMonitor,
Map properties) |
void |
onUnbind(ServiceMonitor serviceMonitor,
Map properties) |
public void onBind(ServiceMonitor serviceMonitor, Map properties)
public void onUnbind(ServiceMonitor serviceMonitor, Map properties)
public ServiceMonitor getMonitorByClassName(String className)
getMonitorByClassName
in interface ServiceMonitorRegistry
public Set<String> getMonitorClassNames()
getMonitorClassNames
in interface ServiceMonitorRegistry
Copyright © 2021. All rights reserved.