Class DefaultServiceCollectorRegistry
- java.lang.Object
-
- org.opennms.netmgt.collection.support.DefaultServiceCollectorRegistry
-
- All Implemented Interfaces:
ServiceCollectorRegistry
public class DefaultServiceCollectorRegistry extends java.lang.Object implements ServiceCollectorRegistry
Aggregates
ServiceCollector
implementations exposed via theServiceLoader
and via the OSGi registry.In order to expose a service collector via the Java Service Loader, you must include the full package and class name in /META-INF/services/org.opennms.netmgt.collection.api.ServiceCollector
Services collectors 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 DefaultServiceCollectorRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceCollector
getCollectorByClassName(java.lang.String className)
java.util.Set<java.lang.String>
getCollectorClassNames()
void
onBind(ServiceCollector serviceCollector, java.util.Map properties)
void
onUnbind(ServiceCollector serviceCollector, java.util.Map properties)
-
-
-
Method Detail
-
onBind
public void onBind(ServiceCollector serviceCollector, java.util.Map properties)
-
onUnbind
public void onUnbind(ServiceCollector serviceCollector, java.util.Map properties)
-
getCollectorByClassName
public ServiceCollector getCollectorByClassName(java.lang.String className)
- Specified by:
getCollectorByClassName
in interfaceServiceCollectorRegistry
-
getCollectorClassNames
public java.util.Set<java.lang.String> getCollectorClassNames()
- Specified by:
getCollectorClassNames
in interfaceServiceCollectorRegistry
-
-