Class DefaultServiceCollectorRegistry
- java.lang.Object
-
- org.opennms.netmgt.collection.support.DefaultServiceCollectorRegistry
-
- All Implemented Interfaces:
ServiceCollectorRegistry
public class DefaultServiceCollectorRegistry extends Object implements ServiceCollectorRegistry
Aggregates
ServiceCollectorimplementations exposed via theServiceLoaderand 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 ServiceCollectorgetCollectorByClassName(String className)Set<String>getCollectorClassNames()voidonBind(ServiceCollector serviceCollector, Map properties)voidonUnbind(ServiceCollector serviceCollector, Map properties)
-
-
-
Method Detail
-
onBind
public void onBind(ServiceCollector serviceCollector, Map properties)
-
onUnbind
public void onUnbind(ServiceCollector serviceCollector, Map properties)
-
getCollectorByClassName
public ServiceCollector getCollectorByClassName(String className)
- Specified by:
getCollectorByClassNamein interfaceServiceCollectorRegistry
-
getCollectorClassNames
public Set<String> getCollectorClassNames()
- Specified by:
getCollectorClassNamesin interfaceServiceCollectorRegistry
-
-