Class AdapterManager
- java.lang.Object
-
- org.opennms.netmgt.telemetry.distributed.sentinel.AdapterManager
-
- All Implemented Interfaces:
TelemetryManager
,org.osgi.service.cm.ManagedServiceFactory
public class AdapterManager extends java.lang.Object implements org.osgi.service.cm.ManagedServiceFactory, TelemetryManager
ThisManagedServiceFactory
for service pids that contain telemetry adapter definitions and manages their lifecycle by starting/updating and stopping them accordingly. SeeMapBasedAdapterDef
for a list of supported properties.- Author:
- mvrueden
-
-
Constructor Summary
Constructors Constructor Description AdapterManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deleted(java.lang.String pid)
void
destroy()
java.util.List<Adapter>
getAdapters()
Get the list of currently configured and enabled adapters.java.util.List<Listener>
getListeners()
Get the list of currently configured and enabled listeners.java.lang.String
getName()
void
init()
void
setBundleContext(org.osgi.framework.BundleContext bundleContext)
void
setDistPollerDao(DistPollerDao distPollerDao)
void
setMessageConsumerManager(MessageConsumerManager messageConsumerManager)
void
setTelemetryRegistry(TelemetryRegistry telemetryRegistry)
void
updated(java.lang.String pid, java.util.Dictionary<java.lang.String,?> properties)
-
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceorg.osgi.service.cm.ManagedServiceFactory
-
updated
public void updated(java.lang.String pid, java.util.Dictionary<java.lang.String,?> properties)
- Specified by:
updated
in interfaceorg.osgi.service.cm.ManagedServiceFactory
-
deleted
public void deleted(java.lang.String pid)
- Specified by:
deleted
in interfaceorg.osgi.service.cm.ManagedServiceFactory
-
init
public void init()
-
destroy
public void destroy()
-
setDistPollerDao
public void setDistPollerDao(DistPollerDao distPollerDao)
-
setTelemetryRegistry
public void setTelemetryRegistry(TelemetryRegistry telemetryRegistry)
-
setMessageConsumerManager
public void setMessageConsumerManager(MessageConsumerManager messageConsumerManager)
-
setBundleContext
public void setBundleContext(org.osgi.framework.BundleContext bundleContext)
-
getListeners
public java.util.List<Listener> getListeners()
Description copied from interface:TelemetryManager
Get the list of currently configured and enabled listeners.- Specified by:
getListeners
in interfaceTelemetryManager
- Returns:
- the listeners
-
getAdapters
public java.util.List<Adapter> getAdapters()
Description copied from interface:TelemetryManager
Get the list of currently configured and enabled adapters.- Specified by:
getAdapters
in interfaceTelemetryManager
- Returns:
- the adapters
-
-