Class NotificationBackendManager

java.lang.Object
org.jolokia.server.core.service.notification.NotificationBackendManager

public class NotificationBackendManager extends Object
The notification backend managed is responsible for looking up backends and managing their lifecycles.
Since:
22.03.13
Author:
roland
  • Constructor Details

    • NotificationBackendManager

      public NotificationBackendManager(JolokiaContext pContext)
      Lookup backends and remember
      Parameters:
      pContext - jolokia context
  • Method Details

    • getBackendConfig

      public Map<String,?> getBackendConfig()
      Get the global configuration from all registered backends. This information is returned to the client when he registers.
      Returns:
      map with backend types as keys and their configuration as values (which is probably also a map)
    • getBackend

      public NotificationBackend getBackend(String pType)
      Lookup backend from the pre generated map of backends
      Parameters:
      pType - backend type to lookup
    • unsubscribe

      public void unsubscribe(String pType, String pClient, String pHandle)
      Unsubscribe a notification from a backend
      Parameters:
      pType - backend type
      pClient - client id
      pHandle - notification handle
    • unregister

      public void unregister(Client pClient)
      Unregister a client completely. Every backend which holds a notification for this client will get notified.
      Parameters:
      pClient - client to unregister.