public class CurrentJobsOverviewHandler extends AbstractJsonRequestHandler
Modifier and Type | Class and Description |
---|---|
static class |
CurrentJobsOverviewHandler.CurrentJobsOverviewJsonArchivist |
Constructor and Description |
---|
CurrentJobsOverviewHandler(scala.concurrent.duration.FiniteDuration timeout,
boolean includeRunningJobs,
boolean includeFinishedJobs) |
Modifier and Type | Method and Description |
---|---|
String[] |
getPaths()
Returns an array of REST URL's under which this handler can be registered.
|
String |
handleJsonRequest(Map<String,String> pathParams,
Map<String,String> queryParams,
ActorGateway jobManager)
Core method that handles the request and generates the response.
|
static void |
writeJobDetailOverviewAsJson(JobDetails details,
com.fasterxml.jackson.core.JsonGenerator gen,
long now) |
handleRequest
public CurrentJobsOverviewHandler(scala.concurrent.duration.FiniteDuration timeout, boolean includeRunningJobs, boolean includeFinishedJobs)
public String[] getPaths()
RequestHandler
public String handleJsonRequest(Map<String,String> pathParams, Map<String,String> queryParams, ActorGateway jobManager) throws Exception
AbstractJsonRequestHandler
handleJsonRequest
in class AbstractJsonRequestHandler
pathParams
- The map of REST path parameters, decoded by the router.queryParams
- The map of query parameters.jobManager
- The JobManager actor.Exception
- Handlers may forward exceptions. Exceptions of type
NotFoundException
will cause a HTTP 404
response with the exception message, other exceptions will cause a HTTP 500 response
with the exception stack trace.public static void writeJobDetailOverviewAsJson(JobDetails details, com.fasterxml.jackson.core.JsonGenerator gen, long now) throws IOException
IOException
Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.