public class WorkspaceHandler extends AbstractDirectiveHandler
AbstractWranglerHandler.NamespacedResponder<T>, AbstractWranglerHandler.NamespacedResponderRunnableCOLUMN_NAME, composite, DELIMITER_HEADER, RECORD_DELIMITER_HEADER| Constructor and Description |
|---|
WorkspaceHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
createWorkspace(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace) |
void |
deleteWorkspace(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String workspaceId) |
void |
execute(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String workspaceId)
Executes the directives on the record.
|
void |
getDirectives(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace)
Retrieve the directives available in the namespace
|
void |
getWorkspace(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String workspaceId) |
void |
initialize(io.cdap.cdap.api.service.http.SystemHttpServiceContext context) |
void |
listWorkspaces(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace) |
void |
resampleWorkspace(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String workspaceId)
Resample the workspace using a new sample request.
|
void |
specification(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String workspaceId)
Get the specification for the workspace
|
void |
updateWorkspace(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String workspaceId)
Update the workspace's directives and initiatives
|
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.
|
createUberRecord, destroy, 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 AbstractDirectiveHandlerException@POST
@Path(value="v2/contexts/{context}/workspaces")
public void createWorkspace(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
@PathParam(value="context")
String namespace)
@GET
@Path(value="v2/contexts/{context}/workspaces")
public void listWorkspaces(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
@PathParam(value="context")
String namespace)
@GET
@Path(value="v2/contexts/{context}/workspaces/{id}")
public void getWorkspace(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 workspaceId)
@POST
@Path(value="v2/contexts/{context}/workspaces/{id}")
public void updateWorkspace(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 workspaceId)
@POST
@Path(value="v2/contexts/{context}/workspaces/{id}/resample")
public void resampleWorkspace(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 workspaceId)
@DELETE
@Path(value="v2/contexts/{context}/workspaces/{id}")
public void deleteWorkspace(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 workspaceId)
@POST
@Path(value="v2/contexts/{context}/workspaces/upload")
public void upload(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
@PathParam(value="context")
String namespace)
@POST
@Path(value="v2/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 workspaceId)
@GET
@Path(value="v2/contexts/{context}/directives")
public void getDirectives(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
@PathParam(value="context")
String namespace)
@GET
@Path(value="v2/contexts/{context}/workspaces/{id}/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 workspaceId)
Copyright © 2023 CDAP Licensed under the Apache License, Version 2.0.