public final class KafkaHandler extends AbstractWranglerHandler
AbstractWranglerHandler.NamespacedResponder<T>| Constructor and Description |
|---|
KafkaHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
list(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace)
List all kafka topics.
|
void |
read(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String id,
String topic,
int lines,
String scope)
Reads a kafka topic into workspace.
|
void |
specification(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String id,
String topic)
Specification for the source.
|
void |
test(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace) |
getConnection, getValidatedConnection, getValidatedConnection, getWorkspace, respond, respond, shouldCopyHeadercreateTableconfigure, configure, destroy, getConfigurer, getContext, initialize, setPropertiesusePlugin, usePlugin, usePluginClass, usePluginClass@POST
@Path(value="contexts/{context}/connections/kafka/test")
public void test(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
@PathParam(value="context")
String namespace)
@POST
@Path(value="contexts/{context}/connections/kafka")
public void list(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
@PathParam(value="context")
String namespace)
request - HTTP requests handler.responder - HTTP response handler.@GET
@Path(value="contexts/{context}/connections/{id}/kafka/{topic}/read")
public void read(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
@PathParam(value="context")
String namespace,
@PathParam(value="id")
String id,
@PathParam(value="topic")
String topic,
@QueryParam(value="lines")
int lines,
@QueryParam(value="scope") @DefaultValue(value="default")
String scope)
request - HTTP requests handler.responder - HTTP response handler.id - Connection id for which the tables need to be listed from database.@GET
@Path(value="contexts/{context}/connections/{id}/kafka/{topic}/specification")
public void specification(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
@PathParam(value="context")
String namespace,
@PathParam(value="id")
String id,
@PathParam(value="topic")
String topic)
request - HTTP request handler.responder - HTTP response handler.id - of the connection.topic - for which the specification need to be generated.Copyright © 2020 CDAP Licensed under the Apache License, Version 2.0.