Class DefaultServiceMonitorRegistry
- java.lang.Object
-
- org.opennms.netmgt.poller.support.DefaultServiceMonitorRegistry
-
- All Implemented Interfaces:
ServiceMonitorRegistry
public class DefaultServiceMonitorRegistry extends Object implements ServiceMonitorRegistry
Aggregates
ServiceMonitorimplementations exposed via theServiceLoaderand 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.
- Author:
- jwhite
-
-
Constructor Summary
Constructors Constructor Description DefaultServiceMonitorRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceMonitorgetMonitorByClassName(String className)Set<String>getMonitorClassNames()voidonBind(ServiceMonitor serviceMonitor, Map properties)voidonUnbind(ServiceMonitor serviceMonitor, Map properties)
-
-
-
Method Detail
-
onBind
public void onBind(ServiceMonitor serviceMonitor, Map properties)
-
onUnbind
public void onUnbind(ServiceMonitor serviceMonitor, Map properties)
-
getMonitorByClassName
public ServiceMonitor getMonitorByClassName(String className)
- Specified by:
getMonitorByClassNamein interfaceServiceMonitorRegistry
-
getMonitorClassNames
public Set<String> getMonitorClassNames()
- Specified by:
getMonitorClassNamesin interfaceServiceMonitorRegistry
-
-