public class DirectivesHandler extends AbstractWranglerHandler
AbstractWranglerHandler.NamespacedResponder<T>| Constructor and Description |
|---|
DirectivesHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
artifacts(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace)
This HTTP endpoint is used to retrieve artifacts that include plugins
of type
Directive.Type (directive). |
void |
capabilities(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder)
Generates the capability matrix, with versions and build number.
|
void |
charsets(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder)
Extracts the charsets supported.
|
void |
create(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String id,
String name,
String scope)
Creates a workspace.
|
void |
delete(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String id)
Deletes the workspace.
|
void |
deleteGroup(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String group)
Deletes the workspace.
|
void |
destroy()
Closes the resources help by the composite registry.
|
void |
directives(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace)
This HTTP endpoint is used to retrieve plugins that are
of type
Directive.Type (directive). |
void |
directivesReload(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace)
This HTTP endpoint is used to reload the plugins that are
of type
Directive.Type (directive). |
void |
execute(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String id)
Executes the directives on the record stored in the workspace.
|
void |
get(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String id)
Get information about the workspace.
|
void |
getConfig(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder)
Updates the configuration.
|
void |
healthCheck(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder) |
void |
initialize(io.cdap.cdap.api.service.http.SystemHttpServiceContext context) |
void |
list(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String scope)
Lists all workspaces.
|
void |
schema(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String id) |
void |
summary(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String id)
Summarizes the workspace by running directives.
|
void |
upload(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace)
Upload data to the workspace, the workspace is created automatically on fly.
|
void |
uploadConfig(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder)
Updates the configuration.
|
void |
uploadData(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String id)
Upload data to the workspace.
|
void |
usage(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace)
This REST API returns an array of all the directives, their usage and description.
|
getConnection, getValidatedConnection, getValidatedConnection, getWorkspace, respond, respond, shouldCopyHeadercreateTableconfigure, configure, getConfigurer, getContext, setPropertiesusePlugin, usePlugin, usePluginClass, usePluginClasspublic void initialize(io.cdap.cdap.api.service.http.SystemHttpServiceContext context)
throws Exception
initialize in interface io.cdap.cdap.api.ProgramLifecycle<io.cdap.cdap.api.service.http.SystemHttpServiceContext>initialize in interface io.cdap.cdap.api.service.http.HttpServiceHandler<io.cdap.cdap.api.service.http.SystemHttpServiceContext,io.cdap.cdap.api.service.http.SystemHttpServiceConfigurer>initialize in class io.cdap.cdap.api.service.http.AbstractHttpServiceHandler<io.cdap.cdap.api.service.http.SystemHttpServiceContext,io.cdap.cdap.api.service.http.SystemHttpServiceConfigurer>Exceptionpublic void destroy()
destroy in interface io.cdap.cdap.api.ProgramLifecycle<io.cdap.cdap.api.service.http.SystemHttpServiceContext>destroy in interface io.cdap.cdap.api.service.http.HttpServiceHandler<io.cdap.cdap.api.service.http.SystemHttpServiceContext,io.cdap.cdap.api.service.http.SystemHttpServiceConfigurer>destroy in class io.cdap.cdap.api.service.http.AbstractHttpServiceHandler<io.cdap.cdap.api.service.http.SystemHttpServiceContext,io.cdap.cdap.api.service.http.SystemHttpServiceConfigurer>@GET
@Path(value="health")
public void healthCheck(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder)
@PUT
@Path(value="contexts/{context}/workspaces/{id}")
public void create(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,
@QueryParam(value="name")
String name,
@QueryParam(value="scope") @DefaultValue(value="default")
String scope)
request - Handler for incoming request.responder - Responder for data going out.id - of workspace to be created.name - of workspace to be created.@GET
@Path(value="contexts/{context}/workspaces")
public void list(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
@PathParam(value="context")
String namespace,
@QueryParam(value="scope") @DefaultValue(value="default")
String scope)
request - Handler for incoming request.responder - Responder for data going out.@DELETE
@Path(value="contexts/{context}/workspaces/{id}")
public void delete(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)
request - Handler for incoming request.responder - Responder for data going out.id - Workspace to deleted.@DELETE
@Path(value="contexts/{context}/workspaces/")
public void deleteGroup(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
@PathParam(value="context")
String namespace,
@QueryParam(value="group")
String group)
request - Handler for incoming request.responder - Responder for data going out.group - Group of workspaces.@GET
@Path(value="contexts/{context}/workspaces/{id}")
public void get(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)
request - Handler for incoming request.responder - Responder for data going out.id - Workspace to deleted.@POST
@Path(value="contexts/{context}/workspaces")
public void upload(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
@PathParam(value="context")
String namespace)
request - Handler for incoming request.responder - Responder for data going out.@POST
@Path(value="contexts/{context}/workspaces/{id}/upload")
public void uploadData(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)
request - Handler for incoming request.responder - Responder for data going out.id - Upload data to the workspace.@POST
@Path(value="contexts/{context}/workspaces/{id}/execute")
public void execute(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)
request - to gather information of the request.responder - to respond to the service request.id - workspace in which the directives are executed.@POST
@Path(value="contexts/{context}/workspaces/{id}/summary")
public void summary(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)
request - Handler for incoming request.responder - Responder for data going out.id - Workspace data to be summarized.@POST
@Path(value="contexts/{context}/workspaces/{id}/schema")
public void schema(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)
@GET
@Path(value="info")
public void capabilities(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder)
request - Handler for incoming request.responder - Responder for data going out.@GET
@Path(value="contexts/{context}/usage")
public void usage(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
@PathParam(value="context")
String namespace)
request - to gather information of the request.responder - to respond to the service request.@GET
@Path(value="contexts/{context}/artifacts")
public void artifacts(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
@PathParam(value="context")
String namespace)
Directive.Type (directive). Artifact will be reported
if it atleast has one plugin that is of type "directive".@GET
@Path(value="contexts/{context}/directives")
public void directives(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
@PathParam(value="context")
String namespace)
Directive.Type (directive). Artifact will be reported
if it atleast has one plugin that is of type "directive".
TODO: (CDAP-14694) Doesn't look like this should exist. Why wasn't the CDAP endpoint used?@GET
@Path(value="contexts/{context}/directives/reload")
public void directivesReload(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
@PathParam(value="context")
String namespace)
Directive.Type (directive). Artifact will be reported
if it atleast has one plugin that is of type "directive".@GET
@Path(value="charsets")
public void charsets(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder)
request - to gather information of the request.responder - to respond to the service request.@POST
@Path(value="config")
public void uploadConfig(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder)
request - to gather information of the request.responder - to respond to the service request.@GET
@Path(value="config")
public void getConfig(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder)
request - to gather information of the request.responder - to respond to the service request.Copyright © 2020 CDAP Licensed under the Apache License, Version 2.0.