Class PullNotificationBackend

java.lang.Object
org.jolokia.server.core.service.api.AbstractJolokiaService<org.jolokia.server.core.service.notification.NotificationBackend>
org.jolokia.service.notif.pull.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
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Create a pull notification backend which will register an MBean allowing to pull received notification
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    channelInit(org.jolokia.server.core.service.notification.Client client, org.jolokia.server.core.http.BackChannel channel)
    void
     
    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, isEnabled, registerJolokiaMBean, unregisterJolokiaMBean

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.lang.Comparable

    compareTo

    Methods inherited from interface org.jolokia.server.core.service.api.JolokiaService

    getOrder, getType, isEnabled
  • Field Details

  • Constructor Details

    • 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 Details

    • 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