Class AddCommand
java.lang.Object
org.jolokia.server.core.request.notification.NotificationCommand
org.jolokia.server.core.request.notification.ClientCommand
org.jolokia.server.core.request.notification.AddCommand
Command for adding a notification listener for a client with optional
filter and handback.
- Since:
- 19.03.13
- Author:
- roland
-
Method Summary
Modifier and TypeMethodDescriptionGet the configuration for an add requestA list of string filters ornullif no filters has been providedA handback object.getMode()The backend mode specifies which backend is used for delivering a notification.Objectname of the MBean the listener should connect toorg.json.simple.JSONObjecttoJSON()Methods inherited from class org.jolokia.server.core.request.notification.ClientCommand
getClientMethods inherited from class org.jolokia.server.core.request.notification.NotificationCommand
getType
-
Method Details
-
getMode
The backend mode specifies which backend is used for delivering a notification. E.g. "pull" will store notification server side which must be fetched actively by a client- Returns:
- backend mode
-
getObjectName
Objectname of the MBean the listener should connect to- Returns:
- mbean name
-
getFilter
A list of string filters ornullif no filters has been provided- Returns:
- list of filters or null if none is given.
-
getHandback
A handback object. For GET requests this is a String, for POSTS it can be an arbitrary JSON structure.- Returns:
- handback object or null if none has been provided
-
getConfig
Get the configuration for an add request- Returns:
- map holding extra configuration. This can be null or empty.
-
toJSON
public org.json.simple.JSONObject toJSON()Description copied from class:NotificationCommand- Overrides:
toJSONin classClientCommand
-