Class ListenerManager
- java.lang.Object
-
- org.opennms.netmgt.telemetry.distributed.minion.ListenerManager
-
- All Implemented Interfaces:
org.osgi.service.cm.ManagedServiceFactory
public class ListenerManager extends java.lang.Object implements org.osgi.service.cm.ManagedServiceFactory
ThisManagedServiceFactory
for service pids that contain telemetry listener definitions and manages their lifecycle by starting/updating and stopping them accordingly. SeeMapBasedListenerDef
for a list of supported properties.- Author:
- jwhite
-
-
Constructor Summary
Constructors Constructor Description ListenerManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deleted(java.lang.String pid)
void
destroy()
DistPollerDao
getDistPollerDao()
MessageDispatcherFactory
getMessageDispatcherFactory()
java.lang.String
getName()
void
init()
void
setBundleContext(org.osgi.framework.BundleContext bundleContext)
void
setDistPollerDao(DistPollerDao distPollerDao)
void
setMessageDispatcherFactory(MessageDispatcherFactory messageDispatcherFactory)
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()
-
getMessageDispatcherFactory
public MessageDispatcherFactory getMessageDispatcherFactory()
-
setMessageDispatcherFactory
public void setMessageDispatcherFactory(MessageDispatcherFactory messageDispatcherFactory)
-
getDistPollerDao
public DistPollerDao getDistPollerDao()
-
setDistPollerDao
public void setDistPollerDao(DistPollerDao distPollerDao)
-
setBundleContext
public void setBundleContext(org.osgi.framework.BundleContext bundleContext)
-
setTelemetryRegistry
public void setTelemetryRegistry(TelemetryRegistry telemetryRegistry)
-
-