public interface DataflowPipelineWorkerPoolOptions extends GcpOptions, FileStagingOptions
Modifier and Type | Interface and Description |
---|---|
static class |
DataflowPipelineWorkerPoolOptions.AutoscalingAlgorithmType
Type of autoscaling algorithm to use.
|
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 |
---|---|
DataflowPipelineWorkerPoolOptions.AutoscalingAlgorithmType |
getAutoscalingAlgorithm()
The autoscaling algorithm to use for the workerpool.
|
int |
getDiskSizeGb()
Remote worker disk size, in gigabytes, or 0 to use the default size.
|
int |
getMaxNumWorkers()
The maximum number of workers to use for the workerpool.
|
@Nullable java.lang.String |
getMinCpuPlatform()
Specifies a Minimum CPU platform for VM instances.
|
java.lang.String |
getNetwork()
GCE network for launching
workers.
|
int |
getNumWorkers()
Number of workers to use when executing the Dataflow job.
|
java.lang.String |
getSdkContainerImage()
Container image used to configure SDK execution environment on worker.
|
java.lang.String |
getSubnetwork()
GCE subnetwork for launching
workers.
|
@Nullable java.lang.Boolean |
getUsePublicIps()
Specifies whether worker pools should be started with public IP addresses.
|
java.lang.String |
getWorkerDiskType()
Specifies what type of persistent disk is used.
|
java.lang.String |
getWorkerHarnessContainerImage()
Deprecated.
Use
getSdkContainerImage() instead. |
java.lang.String |
getWorkerMachineType()
Machine type to create Dataflow worker VMs as.
|
void |
setAutoscalingAlgorithm(DataflowPipelineWorkerPoolOptions.AutoscalingAlgorithmType value) |
void |
setDiskSizeGb(int value) |
void |
setMaxNumWorkers(int value) |
void |
setMinCpuPlatform(java.lang.String minCpuPlatform) |
void |
setNetwork(java.lang.String value) |
void |
setNumWorkers(int value) |
void |
setSdkContainerImage(java.lang.String value) |
void |
setSubnetwork(java.lang.String value) |
void |
setUsePublicIps(@Nullable java.lang.Boolean value) |
void |
setWorkerDiskType(java.lang.String value) |
void |
setWorkerHarnessContainerImage(java.lang.String value)
Deprecated.
Use
setSdkContainerImage(java.lang.String) instead. |
void |
setWorkerMachineType(java.lang.String value) |
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, setJobName, setOptionsId, setRunner, setStableUniqueNames, setTempLocation, setUserAgent
populateDisplayData
getFilesToStage, setFilesToStage
int getNumWorkers()
NONE
will affect the size of the worker pool. If left unspecified,
the Dataflow service will determine the number of workers.void setNumWorkers(int value)
DataflowPipelineWorkerPoolOptions.AutoscalingAlgorithmType getAutoscalingAlgorithm()
void setAutoscalingAlgorithm(DataflowPipelineWorkerPoolOptions.AutoscalingAlgorithmType value)
int getMaxNumWorkers()
void setMaxNumWorkers(int value)
int getDiskSizeGb()
void setDiskSizeGb(int value)
@Deprecated @Hidden java.lang.String getWorkerHarnessContainerImage()
getSdkContainerImage()
instead.@Deprecated @Hidden void setWorkerHarnessContainerImage(java.lang.String value)
setSdkContainerImage(java.lang.String)
instead.java.lang.String getSdkContainerImage()
void setSdkContainerImage(java.lang.String value)
java.lang.String getNetwork()
Default is up to the Dataflow service.
void setNetwork(java.lang.String value)
java.lang.String getSubnetwork()
Default is up to the Dataflow service. Expected format is regions/REGION/subnetworks/SUBNETWORK or the fully qualified subnetwork name, beginning with https://..., e.g. https://www.googleapis.com/compute/alpha/projects/PROJECT/ regions/REGION/subnetworks/SUBNETWORK
void setSubnetwork(java.lang.String value)
java.lang.String getWorkerMachineType()
See GCE machine types for a list of valid options.
If unset, the Dataflow service will choose a reasonable default.
void setWorkerMachineType(java.lang.String value)
java.lang.String getWorkerDiskType()
void setWorkerDiskType(java.lang.String value)
@Nullable java.lang.Boolean getUsePublicIps()
WARNING: This feature is available only through allowlist.
void setUsePublicIps(@Nullable java.lang.Boolean value)
@Nullable java.lang.String getMinCpuPlatform()
More details see Specifying Pipeline Execution Parameters.
void setMinCpuPlatform(java.lang.String minCpuPlatform)