public class DashboardConfigHandler extends AbstractJsonRequestHandler
| Modifier and Type | Field and Description |
|---|---|
static String |
DASHBOARD_CONFIG_REST_PATH |
executor| Constructor and Description |
|---|
DashboardConfigHandler(Executor executor,
long refreshInterval) |
| Modifier and Type | Method and Description |
|---|---|
static String |
createConfigJson(DashboardConfiguration dashboardConfiguration) |
String[] |
getPaths()
Returns an array of REST URL's under which this handler can be registered.
|
CompletableFuture<String> |
handleJsonRequest(Map<String,String> pathParams,
Map<String,String> queryParams,
JobManagerGateway jobManagerGateway)
Core method that handles the request and generates the response.
|
handleRequestpublic static final String DASHBOARD_CONFIG_REST_PATH
public DashboardConfigHandler(Executor executor, long refreshInterval)
public String[] getPaths()
RequestHandlerpublic CompletableFuture<String> handleJsonRequest(Map<String,String> pathParams, Map<String,String> queryParams, JobManagerGateway jobManagerGateway)
AbstractJsonRequestHandlerhandleJsonRequest in class AbstractJsonRequestHandlerpathParams - The map of REST path parameters, decoded by the router.queryParams - The map of query parameters.jobManagerGateway - to communicate with the JobManager.public static String createConfigJson(DashboardConfiguration dashboardConfiguration) throws IOException
IOExceptionCopyright © 2014–2018 The Apache Software Foundation. All rights reserved.