@Deprecated public class GCSHandler extends AbstractWranglerHandler
GCS filesystemAbstractWranglerHandler.NamespacedResponder<T>, AbstractWranglerHandler.NamespacedResponderRunnable| Constructor and Description |
|---|
GCSHandler()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
exploreGCS(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String connectionId,
String path,
int objectLimit)
Deprecated.
Lists GCS bucket's contents for the given prefix path.
|
static Map<String,String> |
getConnectorProperties(Map<String,String> config)
Deprecated.
|
static String |
getPath(Workspace workspace)
Deprecated.
|
void |
initialize(io.cdap.cdap.api.service.http.SystemHttpServiceContext context)
Deprecated.
|
void |
loadObject(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String connectionId,
String bucket,
String blobPath,
String scope)
Deprecated.
Reads GCS object into workspace.
|
void |
specification(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String connectionId,
String workspaceId)
Deprecated.
Specification for the source.
|
void |
testGCSConnection(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace)
Deprecated.
|
getConnection, getValidatedConnection, getValidatedConnection, getWorkspace, respond, respond, respond, shouldCopyHeadercreateTableconfigure, configure, destroy, 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>Exception@POST
@Path(value="/contexts/{context}/connections/gcs/test")
public void testGCSConnection(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
@PathParam(value="context")
String namespace)
@GET
@Path(value="contexts/{context}/connections/{connection-id}/gcs/explore")
public void exploreGCS(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
@PathParam(value="context")
String namespace,
@PathParam(value="connection-id")
String connectionId,
@QueryParam(value="path")
String path,
@QueryParam(value="limit") @DefaultValue(value="1000")
int objectLimit)
request - HTTP Request handler.responder - HTTP Response handler.@GET
@Path(value="contexts/{context}/connections/{connection-id}/gcs/buckets/{bucket}/read")
public void loadObject(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
@PathParam(value="context")
String namespace,
@PathParam(value="connection-id")
String connectionId,
@PathParam(value="bucket")
String bucket,
@QueryParam(value="blob")
String blobPath,
@QueryParam(value="scope") @DefaultValue(value="default")
String scope)
request - HTTP Request handler.responder - HTTP Response handler.@GET
@Path(value="contexts/{context}/connections/{connection-id}/gcs/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="connection-id")
String connectionId,
@QueryParam(value="wid")
String workspaceId)
request - HTTP request handler.responder - HTTP response handler.public static Map<String,String> getConnectorProperties(Map<String,String> config)
Copyright © 2023 CDAP Licensed under the Apache License, Version 2.0.