Class PullNotificationBackend

  • All Implemented Interfaces:
    Comparable<org.jolokia.server.core.service.notification.NotificationBackend>, org.jolokia.server.core.service.api.JolokiaService<org.jolokia.server.core.service.notification.NotificationBackend>, org.jolokia.server.core.service.notification.NotificationBackend

    public class PullNotificationBackend
    extends org.jolokia.server.core.service.api.AbstractJolokiaService<org.jolokia.server.core.service.notification.NotificationBackend>
    implements org.jolokia.server.core.service.notification.NotificationBackend
    Pull based implementation for notifications
    Since:
    20.03.13
    Author:
    roland
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.jolokia.server.core.service.api.JolokiaService

        org.jolokia.server.core.service.api.JolokiaService.Init
    • Constructor Summary

      Constructors 
      Constructor Description
      PullNotificationBackend​(int order)
      Create a pull notification backend which will register an MBean allowing to pull received notification
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void channelInit​(org.jolokia.server.core.service.notification.Client client, org.jolokia.server.core.http.BackChannel channel)
      void destroy()  
      Map<String,​?> getConfig()
      String getNotifType()
      void init​(org.jolokia.server.core.service.api.JolokiaContext pContext)
      org.jolokia.server.core.service.notification.BackendCallback subscribe​(org.jolokia.server.core.service.notification.NotificationSubscription pSubscription)
      void unregister​(org.jolokia.server.core.service.notification.Client pClient)
      void unsubscribe​(String pClientId, String pHandle)
      • Methods inherited from class org.jolokia.server.core.service.api.AbstractJolokiaService

        compareTo, getJolokiaContext, getOrder, getType, registerJolokiaMBean, unregisterJolokiaMBean
      • Methods inherited from interface org.jolokia.server.core.service.api.JolokiaService

        getOrder, getType
    • Constructor Detail

      • PullNotificationBackend

        public PullNotificationBackend​(int order)
        Create a pull notification backend which will register an MBean allowing to pull received notification
        Parameters:
        order - of this notification backend
    • Method Detail

      • init

        public void init​(org.jolokia.server.core.service.api.JolokiaContext pContext)
        Specified by:
        init in interface org.jolokia.server.core.service.api.JolokiaService<org.jolokia.server.core.service.notification.NotificationBackend>
        Overrides:
        init in class org.jolokia.server.core.service.api.AbstractJolokiaService<org.jolokia.server.core.service.notification.NotificationBackend>
      • destroy

        public void destroy()
                     throws Exception
        Specified by:
        destroy in interface org.jolokia.server.core.service.api.JolokiaService<org.jolokia.server.core.service.notification.NotificationBackend>
        Overrides:
        destroy in class org.jolokia.server.core.service.api.AbstractJolokiaService<org.jolokia.server.core.service.notification.NotificationBackend>
        Throws:
        Exception
      • getNotifType

        public String getNotifType()
        Specified by:
        getNotifType in interface org.jolokia.server.core.service.notification.NotificationBackend
      • subscribe

        public org.jolokia.server.core.service.notification.BackendCallback subscribe​(org.jolokia.server.core.service.notification.NotificationSubscription pSubscription)
        Specified by:
        subscribe in interface org.jolokia.server.core.service.notification.NotificationBackend
      • channelInit

        public void channelInit​(org.jolokia.server.core.service.notification.Client client,
                                org.jolokia.server.core.http.BackChannel channel)
        Specified by:
        channelInit in interface org.jolokia.server.core.service.notification.NotificationBackend
      • unsubscribe

        public void unsubscribe​(String pClientId,
                                String pHandle)
        Specified by:
        unsubscribe in interface org.jolokia.server.core.service.notification.NotificationBackend
      • unregister

        public void unregister​(org.jolokia.server.core.service.notification.Client pClient)
        Specified by:
        unregister in interface org.jolokia.server.core.service.notification.NotificationBackend
        Parameters:
        pClient -
      • getConfig

        public Map<String,​?> getConfig()
        Specified by:
        getConfig in interface org.jolokia.server.core.service.notification.NotificationBackend