public interface GcsOptions extends ApplicationNameOptions, GcpOptions, PipelineOptions
Modifier and Type | Interface and Description |
---|---|
static class |
GcsOptions.ExecutorServiceFactory
Returns the default
ExecutorService to use within the Apache Beam SDK. |
static class |
GcsOptions.PathValidatorFactory
Creates a
PathValidator object using the class specified in getPathValidatorClass() . |
GcpOptions.DefaultProjectFactory, GcpOptions.EnableStreamingEngineFactory, GcpOptions.GcpOAuthScopesFactory, GcpOptions.GcpTempLocationFactory, GcpOptions.GcpUserCredentialsFactory
GoogleApiDebugOptions.GoogleApiTracer
PipelineOptions.AtomicLongFactory, PipelineOptions.CheckEnabled, PipelineOptions.DirectRunner, PipelineOptions.JobNameFactory, PipelineOptions.UserAgentFactory
STREAMING_ENGINE_EXPERIMENT, WINDMILL_SERVICE_EXPERIMENT
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
getEnableBucketReadMetricCounter()
If true, reports number of bytes read from each gcs bucket.
|
java.lang.Boolean |
getEnableBucketWriteMetricCounter()
If true, reports number of bytes written to each gcs bucket.
|
java.util.concurrent.ExecutorService |
getExecutorService()
Deprecated.
use
ExecutorOptions.getScheduledExecutorService() instead |
java.lang.String |
getGcsEndpoint()
GCS endpoint to use.
|
@Nullable java.lang.Integer |
getGcsHttpRequestReadTimeout() |
@Nullable java.lang.Integer |
getGcsHttpRequestWriteTimeout() |
java.lang.Boolean |
getGcsPerformanceMetrics()
If true, reports metrics of certain operations, such as batch copies.
|
java.lang.String |
getGcsReadCounterPrefix() |
@Nullable java.lang.Integer |
getGcsRewriteDataOpBatchLimit() |
@Nullable java.lang.Integer |
getGcsUploadBufferSizeBytes()
The buffer size (in bytes) to use when uploading files to GCS.
|
GcsUtil |
getGcsUtil()
The GcsUtil instance that should be used to communicate with Google Cloud Storage.
|
java.lang.String |
getGcsWriteCounterPrefix() |
PathValidator |
getPathValidator()
The path validator instance that should be used to validate paths.
|
java.lang.Class<? extends PathValidator> |
getPathValidatorClass()
The class of the validator that should be created and used to validate paths.
|
void |
setEnableBucketReadMetricCounter(java.lang.Boolean enableBucketReadMetricCounter) |
void |
setEnableBucketWriteMetricCounter(java.lang.Boolean enableBucketWriteMetricCounter) |
void |
setExecutorService(java.util.concurrent.ExecutorService value)
Deprecated.
use
ExecutorOptions.setScheduledExecutorService(java.util.concurrent.ScheduledExecutorService) instead. If set, it may
result in multiple ExecutorServices, and therefore thread pools, in the runtime. |
void |
setGcsEndpoint(java.lang.String value) |
void |
setGcsHttpRequestReadTimeout(@Nullable java.lang.Integer timeoutMs) |
void |
setGcsHttpRequestWriteTimeout(@Nullable java.lang.Integer timeoutMs) |
void |
setGcsPerformanceMetrics(java.lang.Boolean reportPerformanceMetrics) |
void |
setGcsReadCounterPrefix(java.lang.String gcsReadCounterPrefix) |
void |
setGcsRewriteDataOpBatchLimit(@Nullable java.lang.Integer timeoutMs) |
void |
setGcsUploadBufferSizeBytes(@Nullable java.lang.Integer bytes) |
void |
setGcsUtil(GcsUtil value) |
void |
setGcsWriteCounterPrefix(java.lang.String gcsReadCounterPrefix) |
void |
setPathValidator(PathValidator validator) |
void |
setPathValidatorClass(java.lang.Class<? extends PathValidator> validatorClass) |
getAppName, setAppName
getCredentialFactoryClass, getDataflowKmsKey, getGcpCredential, getGcpOauthScopes, getGcpTempLocation, getImpersonateServiceAccount, getProject, getWorkerRegion, getWorkerZone, getZone, isEnableStreamingEngine, setCredentialFactoryClass, setDataflowKmsKey, setEnableStreamingEngine, setGcpCredential, setGcpOauthScopes, setGcpTempLocation, setImpersonateServiceAccount, setProject, setWorkerRegion, setWorkerZone, setZone
getGoogleApiTrace, setGoogleApiTrace
as, getJobName, getOptionsId, getRunner, getStableUniqueNames, getTempLocation, getUserAgent, outputRuntimeOptions, revision, setJobName, setOptionsId, setRunner, setStableUniqueNames, setTempLocation, setUserAgent
populateDisplayData
@Default.InstanceFactory(value=GcsUtil.GcsUtilFactory.class) @Hidden GcsUtil getGcsUtil()
void setGcsUtil(GcsUtil value)
@Default.InstanceFactory(value=GcsOptions.ExecutorServiceFactory.class) @Hidden @Deprecated java.util.concurrent.ExecutorService getExecutorService()
ExecutorOptions.getScheduledExecutorService()
insteadExecutorOptions.getScheduledExecutorService()
.@Deprecated void setExecutorService(java.util.concurrent.ExecutorService value)
ExecutorOptions.setScheduledExecutorService(java.util.concurrent.ScheduledExecutorService)
instead. If set, it may
result in multiple ExecutorServices, and therefore thread pools, in the runtime.@Hidden java.lang.String getGcsEndpoint()
void setGcsEndpoint(java.lang.String value)
@Nullable java.lang.Integer getGcsUploadBufferSizeBytes()
AsyncWriteChannelOptions.getUploadChunkSize()
for more information on the restrictions
and performance implications of this value.void setGcsUploadBufferSizeBytes(@Nullable java.lang.Integer bytes)
@Default.Class(value=GcsPathValidator.class) java.lang.Class<? extends PathValidator> getPathValidatorClass()
void setPathValidatorClass(java.lang.Class<? extends PathValidator> validatorClass)
@Default.InstanceFactory(value=GcsOptions.PathValidatorFactory.class) PathValidator getPathValidator()
void setPathValidator(PathValidator validator)
@Default.Boolean(value=false) java.lang.Boolean getGcsPerformanceMetrics()
void setGcsPerformanceMetrics(java.lang.Boolean reportPerformanceMetrics)
@Nullable java.lang.Integer getGcsHttpRequestReadTimeout()
void setGcsHttpRequestReadTimeout(@Nullable java.lang.Integer timeoutMs)
@Nullable java.lang.Integer getGcsHttpRequestWriteTimeout()
void setGcsHttpRequestWriteTimeout(@Nullable java.lang.Integer timeoutMs)
@Nullable java.lang.Integer getGcsRewriteDataOpBatchLimit()
void setGcsRewriteDataOpBatchLimit(@Nullable java.lang.Integer timeoutMs)
@Default.Boolean(value=false) java.lang.Boolean getEnableBucketWriteMetricCounter()
void setEnableBucketWriteMetricCounter(java.lang.Boolean enableBucketWriteMetricCounter)
@Default.Boolean(value=false) java.lang.Boolean getEnableBucketReadMetricCounter()
void setEnableBucketReadMetricCounter(java.lang.Boolean enableBucketReadMetricCounter)
@Default.String(value="GCS_read_bytes_counter") java.lang.String getGcsReadCounterPrefix()
void setGcsReadCounterPrefix(java.lang.String gcsReadCounterPrefix)
@Default.String(value="GCS_write_bytes_counter") java.lang.String getGcsWriteCounterPrefix()
void setGcsWriteCounterPrefix(java.lang.String gcsReadCounterPrefix)