Class NotificationBackendManager
java.lang.Object
org.jolokia.server.core.service.notification.NotificationBackendManager
The notification backend managed is responsible for looking up
backends and managing their lifecycles.
- Since:
- 22.03.13
- Author:
- roland
-
Constructor Summary
ConstructorsConstructorDescriptionNotificationBackendManager(JolokiaContext pContext) Lookup backends and remember -
Method Summary
Modifier and TypeMethodDescriptiongetBackend(String pType) Lookup backend from the pre generated map of backendsGet the global configuration from all registered backends.voidunregister(Client pClient) Unregister a client completely.voidunsubscribe(String pType, String pClient, String pHandle) Unsubscribe a notification from a backend
-
Constructor Details
-
NotificationBackendManager
Lookup backends and remember- Parameters:
pContext- jolokia context
-
-
Method Details
-
getBackendConfig
Get the global configuration from all registered backends. This information is returned to the client when he registers.- Returns:
- map with backend types as keys and their configuration as values (which is probably also a map)
-
getBackend
Lookup backend from the pre generated map of backends- Parameters:
pType- backend type to lookup
-
unsubscribe
Unsubscribe a notification from a backend- Parameters:
pType- backend typepClient- client idpHandle- notification handle
-
unregister
Unregister a client completely. Every backend which holds a notification for this client will get notified.- Parameters:
pClient- client to unregister.
-