Class ListenerRegistration
java.lang.Object
org.jolokia.server.core.service.notification.ListenerRegistration
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 Summary
ConstructorsConstructorDescriptionListenerRegistration(AddCommand pCommand, BackendCallback pCallback) Create a new configuration object for an addListener() request -
Method Summary
Modifier and TypeMethodDescriptionBackend usedGet callbackGet FilterGet the handback used for the JMX listenerGet Objectnameorg.json.simple.JSONObjecttoJson()Return a JSON representation of this config (used for list)
-
Constructor Details
-
ListenerRegistration
Create a new configuration object for an addListener() request- Parameters:
pCommand- command from where to extract parameterspCallback- 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
Get callback -
getFilter
Get Filter -
getMBeanName
Get Objectname -
getHandback
Get the handback used for the JMX listener -
getBackendMode
Backend used
-