Class NotificationDispatcher
java.lang.Object
org.jolokia.service.jmx.handler.notification.NotificationDispatcher
Dispatcher for notification commands used by
NotificationHandler.
(Sub)commands are dispatched to the appropriate command in a NotificationListenerDelegate.- Since:
- 18.03.13
- Author:
- roland
-
Constructor Summary
ConstructorsConstructorDescriptionNotificationDispatcher(org.jolokia.server.core.service.api.JolokiaContext pContext) Initialize backends and delegate -
Method Summary
-
Constructor Details
-
NotificationDispatcher
public NotificationDispatcher(org.jolokia.server.core.service.api.JolokiaContext pContext) Initialize backends and delegate
-
-
Method Details
-
dispatch
public Object dispatch(org.jolokia.server.core.util.jmx.MBeanServerAccess pExecutor, org.jolokia.server.core.request.notification.NotificationCommand pCommand) throws IOException, JMException, org.jolokia.server.core.request.BadRequestException, org.jolokia.server.core.request.EmptyResponseException Dispatch a command to the appropriate method in the action in the delegate- Parameters:
pExecutor- executor providing access to the MBeanServerspCommand- the command to execute- Returns:
- the result generated by the dispatched actions
- Throws:
MBeanExceptionIOExceptionReflectionExceptionJMExceptionorg.jolokia.server.core.request.BadRequestExceptionorg.jolokia.server.core.request.EmptyResponseException
-