Class AdapterManager

  • All Implemented Interfaces:
    TelemetryManager, org.osgi.service.cm.ManagedServiceFactory

    public class AdapterManager
    extends java.lang.Object
    implements org.osgi.service.cm.ManagedServiceFactory, TelemetryManager
    This ManagedServiceFactory for service pids that contain telemetry adapter definitions and manages their lifecycle by starting/updating and stopping them accordingly. See MapBasedAdapterDef for a list of supported properties.
    Author:
    mvrueden
    • Constructor Detail

      • AdapterManager

        public AdapterManager()
    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface org.osgi.service.cm.ManagedServiceFactory
      • updated

        public void updated​(java.lang.String pid,
                            java.util.Dictionary<java.lang.String,​?> properties)
        Specified by:
        updated in interface org.osgi.service.cm.ManagedServiceFactory
      • deleted

        public void deleted​(java.lang.String pid)
        Specified by:
        deleted in interface org.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)
      • 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 interface TelemetryManager
        Returns:
        the adapters