public class RequestHandler extends Object
| Constructor and Description |
|---|
RequestHandler(io.javalin.Javalin app,
org.apache.hadoop.conf.Configuration conf,
TimelineService.Config timelineServiceConfig,
HoodieEngineContext hoodieEngineContext,
org.apache.hadoop.fs.FileSystem fileSystem,
FileSystemViewManager viewManager) |
| Modifier and Type | Method and Description |
|---|---|
static String |
jsonifyResult(io.javalin.http.Context ctx,
Object obj,
Registry metricsRegistry,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
org.apache.log4j.Logger logger)
Serializes the result into JSON String.
|
void |
register() |
void |
stop() |
public RequestHandler(io.javalin.Javalin app,
org.apache.hadoop.conf.Configuration conf,
TimelineService.Config timelineServiceConfig,
HoodieEngineContext hoodieEngineContext,
org.apache.hadoop.fs.FileSystem fileSystem,
FileSystemViewManager viewManager)
throws IOException
IOExceptionpublic static String jsonifyResult(io.javalin.http.Context ctx, Object obj, Registry metricsRegistry, com.fasterxml.jackson.databind.ObjectMapper objectMapper, org.apache.log4j.Logger logger) throws com.fasterxml.jackson.core.JsonProcessingException
ctx - Javalin contextobj - object to serializemetricsRegistry - Registry instance for storing metricsobjectMapper - JSON object mapperlogger - Logger instancecom.fasterxml.jackson.core.JsonProcessingExceptionpublic void register()
public void stop()
Copyright © 2023 The Apache Software Foundation. All rights reserved.