Class DefaultServiceMonitorRegistry
- java.lang.Object
-
- org.opennms.netmgt.poller.support.DefaultServiceMonitorRegistry
-
- All Implemented Interfaces:
ServiceMonitorRegistry
public class DefaultServiceMonitorRegistry extends 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(String className)
Set<String>
getMonitorClassNames()
void
onBind(ServiceMonitor serviceMonitor, Map properties)
void
onUnbind(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:
getMonitorByClassName
in interfaceServiceMonitorRegistry
-
getMonitorClassNames
public Set<String> getMonitorClassNames()
- Specified by:
getMonitorClassNames
in interfaceServiceMonitorRegistry
-
-