@Deprecated public class DirectivesHandler extends AbstractDirectiveHandler
AbstractWranglerHandler.NamespacedResponder<T>, AbstractWranglerHandler.NamespacedResponderRunnableCOLUMN_NAME, DELIMITER_HEADER, RECORD_DELIMITER_HEADER| Constructor and Description |
|---|
DirectivesHandler()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDataModel(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String id)
Deprecated.
Adds a data model to workspace.
|
void |
addModels(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String id)
Deprecated.
Adds a model to the workspace.
|
void |
artifacts(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace)
Deprecated.
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)
Deprecated.
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)
Deprecated.
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)
Deprecated.
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)
Deprecated.
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)
Deprecated.
Deletes the workspace.
|
void |
destroy()
Deprecated.
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)
Deprecated.
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)
Deprecated.
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)
Deprecated.
Executes the directives on the record stored in the workspace.
|
static List<Row> |
fromWorkspace(Workspace workspace)
Deprecated.
Converts the data in workspace into records.
|
void |
get(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String id)
Deprecated.
Get information about the workspace.
|
void |
getConfig(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder)
Deprecated.
Updates the configuration.
|
void |
healthCheck(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder)
Deprecated.
|
void |
initialize(io.cdap.cdap.api.service.http.SystemHttpServiceContext context)
Deprecated.
|
void |
list(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String scope)
Deprecated.
Lists all workspaces.
|
void |
removeDataModel(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String id)
Deprecated.
Removes a data model from a workspace.
|
void |
removeModels(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String id,
String modelId)
Deprecated.
|
void |
schema(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String id)
Deprecated.
|
void |
summary(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String id)
Deprecated.
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)
Deprecated.
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)
Deprecated.
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)
Deprecated.
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)
Deprecated.
This REST API returns an array of all the directives, their usage and description.
|
createUberRecord, executeDirectives, generateExecutionResponse, getWorkspaceSummarygetConnection, getValidatedConnection, getValidatedConnection, getWorkspace, respond, 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 AbstractDirectiveHandlerExceptionpublic 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 AbstractDirectiveHandler@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)
@POST
@Path(value="contexts/{context}/workspaces/{id}/datamodels")
public void addDataModel(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 associate a data model.@DELETE
@Path(value="contexts/{context}/workspaces/{id}/datamodels")
public void removeDataModel(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 disassociate a data model from.@POST
@Path(value="contexts/{context}/workspaces/{id}/models")
public void addModels(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 associated a model with.@DELETE
@Path(value="contexts/{context}/workspaces/{id}/models/{modelid}")
public void removeModels(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="modelid")
String modelId)
@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.public static List<Row> fromWorkspace(Workspace workspace) throws IOException, ClassNotFoundException
workspace - the workspace to get records fromIOExceptionClassNotFoundExceptionCopyright © 2023 CDAP Licensed under the Apache License, Version 2.0.