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