Package org.jolokia.server.core.backend
Interface RequestDispatcher
public interface RequestDispatcher
Manager interface for dispatching a request to one
RequestHandler.
This is the entry point for Jolokia in order to process a request.- Since:
- 11.06.13
- Author:
- roland
-
Method Summary
Modifier and TypeMethodDescriptiondispatch(JolokiaRequest pJolokiaRequest) Dispatch a request to a singleRequestHandler.
-
Method Details
-
dispatch
Object dispatch(JolokiaRequest pJolokiaRequest) throws JMException, NotChangedException, EmptyResponseException, IOException Dispatch a request to a singleRequestHandler. This results a list with zero, one or more result objects. If more than one result is returned, the results must be merged.- Parameters:
pJolokiaRequest- the request to dispatch- Returns:
- result of the dispatch operation.
- Throws:
NotChangedException- the request handler detects no change for the requests' result and hence returns without result.EmptyResponseException- when no response should be createdIOException- IO Exception during the operation.JMException- a JMX operation failed.
-