Class ListenerRegistration

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

public class ListenerRegistration extends Object
A registration configuration for a specific listener. This includes a callback which is used for dispatching notification to the backend.
Since:
18.03.13
Author:
roland
  • Constructor Details

    • ListenerRegistration

      public ListenerRegistration(AddCommand pCommand, BackendCallback pCallback)
      Create a new configuration object for an addListener() request
      Parameters:
      pCommand - command from where to extract parameters
      pCallback - callback to call when a notification arrives
  • Method Details

    • toJson

      public org.json.simple.JSONObject toJson()
      Return a JSON representation of this config (used for list)
      Returns:
      JSON representation
    • getCallback

      public BackendCallback getCallback()
      Get callback
    • getFilter

      public NotificationFilter getFilter()
      Get Filter
    • getMBeanName

      public ObjectName getMBeanName()
      Get Objectname
    • getHandback

      public Object getHandback()
      Get the handback used for the JMX listener
    • getBackendMode

      public String getBackendMode()
      Backend used