public final class WorkerPool
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Google Dataflow API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
WorkerPool() |
Modifier and Type | Method and Description |
---|---|
WorkerPool |
clone() |
AutoscalingSettings |
getAutoscalingSettings()
Settings for autoscaling of this WorkerPool.
|
java.util.List<Disk> |
getDataDisks()
Data disks that are used by a VM in this workflow.
|
java.lang.String |
getDefaultPackageSet()
The default package set to install.
|
java.lang.Integer |
getDiskSizeGb()
Size of root disk for VMs, in GB.
|
java.lang.String |
getDiskSourceImage()
Fully qualified source image for disks.
|
java.lang.String |
getDiskType()
Type of root disk for VMs.
|
java.lang.String |
getIpConfiguration()
Configuration for VM IPs.
|
java.lang.String |
getKind()
The kind of the worker pool; currently only `harness` and `shuffle` are supported.
|
java.lang.String |
getMachineType()
Machine type (e.g.
|
java.util.Map<java.lang.String,java.lang.String> |
getMetadata()
Metadata to set on the Google Compute Engine VMs.
|
java.lang.String |
getNetwork()
Network to which VMs will be assigned.
|
java.lang.Integer |
getNumThreadsPerWorker()
The number of threads per worker harness.
|
java.lang.Integer |
getNumWorkers()
Number of Google Compute Engine workers in this pool needed to execute the job.
|
java.lang.String |
getOnHostMaintenance()
The action to take on host maintenance, as defined by the Google Compute Engine API.
|
java.util.List<DataflowPackage> |
getPackages()
Packages to be installed on workers.
|
java.util.Map<java.lang.String,java.lang.Object> |
getPoolArgs()
Extra arguments for this worker pool.
|
java.lang.String |
getSubnetwork()
Subnetwork to which VMs will be assigned, if desired.
|
TaskRunnerSettings |
getTaskrunnerSettings()
Settings passed through to Google Compute Engine workers when using the standard Dataflow task
runner.
|
java.lang.String |
getTeardownPolicy()
Sets the policy for determining when to turndown worker pool.
|
java.lang.String |
getWorkerHarnessContainerImage()
Required.
|
java.lang.String |
getZone()
Zone to run the worker pools in.
|
WorkerPool |
set(java.lang.String fieldName,
java.lang.Object value) |
WorkerPool |
setAutoscalingSettings(AutoscalingSettings autoscalingSettings)
Settings for autoscaling of this WorkerPool.
|
WorkerPool |
setDataDisks(java.util.List<Disk> dataDisks)
Data disks that are used by a VM in this workflow.
|
WorkerPool |
setDefaultPackageSet(java.lang.String defaultPackageSet)
The default package set to install.
|
WorkerPool |
setDiskSizeGb(java.lang.Integer diskSizeGb)
Size of root disk for VMs, in GB.
|
WorkerPool |
setDiskSourceImage(java.lang.String diskSourceImage)
Fully qualified source image for disks.
|
WorkerPool |
setDiskType(java.lang.String diskType)
Type of root disk for VMs.
|
WorkerPool |
setIpConfiguration(java.lang.String ipConfiguration)
Configuration for VM IPs.
|
WorkerPool |
setKind(java.lang.String kind)
The kind of the worker pool; currently only `harness` and `shuffle` are supported.
|
WorkerPool |
setMachineType(java.lang.String machineType)
Machine type (e.g.
|
WorkerPool |
setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
Metadata to set on the Google Compute Engine VMs.
|
WorkerPool |
setNetwork(java.lang.String network)
Network to which VMs will be assigned.
|
WorkerPool |
setNumThreadsPerWorker(java.lang.Integer numThreadsPerWorker)
The number of threads per worker harness.
|
WorkerPool |
setNumWorkers(java.lang.Integer numWorkers)
Number of Google Compute Engine workers in this pool needed to execute the job.
|
WorkerPool |
setOnHostMaintenance(java.lang.String onHostMaintenance)
The action to take on host maintenance, as defined by the Google Compute Engine API.
|
WorkerPool |
setPackages(java.util.List<DataflowPackage> packages)
Packages to be installed on workers.
|
WorkerPool |
setPoolArgs(java.util.Map<java.lang.String,java.lang.Object> poolArgs)
Extra arguments for this worker pool.
|
WorkerPool |
setSubnetwork(java.lang.String subnetwork)
Subnetwork to which VMs will be assigned, if desired.
|
WorkerPool |
setTaskrunnerSettings(TaskRunnerSettings taskrunnerSettings)
Settings passed through to Google Compute Engine workers when using the standard Dataflow task
runner.
|
WorkerPool |
setTeardownPolicy(java.lang.String teardownPolicy)
Sets the policy for determining when to turndown worker pool.
|
WorkerPool |
setWorkerHarnessContainerImage(java.lang.String workerHarnessContainerImage)
Required.
|
WorkerPool |
setZone(java.lang.String zone)
Zone to run the worker pools in.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
public AutoscalingSettings getAutoscalingSettings()
null
for nonepublic WorkerPool setAutoscalingSettings(AutoscalingSettings autoscalingSettings)
autoscalingSettings
- autoscalingSettings or null
for nonepublic java.util.List<Disk> getDataDisks()
null
for nonepublic WorkerPool setDataDisks(java.util.List<Disk> dataDisks)
dataDisks
- dataDisks or null
for nonepublic java.lang.String getDefaultPackageSet()
null
for nonepublic WorkerPool setDefaultPackageSet(java.lang.String defaultPackageSet)
defaultPackageSet
- defaultPackageSet or null
for nonepublic java.lang.Integer getDiskSizeGb()
null
for nonepublic WorkerPool setDiskSizeGb(java.lang.Integer diskSizeGb)
diskSizeGb
- diskSizeGb or null
for nonepublic java.lang.String getDiskSourceImage()
null
for nonepublic WorkerPool setDiskSourceImage(java.lang.String diskSourceImage)
diskSourceImage
- diskSourceImage or null
for nonepublic java.lang.String getDiskType()
null
for nonepublic WorkerPool setDiskType(java.lang.String diskType)
diskType
- diskType or null
for nonepublic java.lang.String getIpConfiguration()
null
for nonepublic WorkerPool setIpConfiguration(java.lang.String ipConfiguration)
ipConfiguration
- ipConfiguration or null
for nonepublic java.lang.String getKind()
null
for nonepublic WorkerPool setKind(java.lang.String kind)
kind
- kind or null
for nonepublic java.lang.String getMachineType()
null
for nonepublic WorkerPool setMachineType(java.lang.String machineType)
machineType
- machineType or null
for nonepublic java.util.Map<java.lang.String,java.lang.String> getMetadata()
null
for nonepublic WorkerPool setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
metadata
- metadata or null
for nonepublic java.lang.String getNetwork()
null
for nonepublic WorkerPool setNetwork(java.lang.String network)
network
- network or null
for nonepublic java.lang.Integer getNumThreadsPerWorker()
null
for nonepublic WorkerPool setNumThreadsPerWorker(java.lang.Integer numThreadsPerWorker)
numThreadsPerWorker
- numThreadsPerWorker or null
for nonepublic java.lang.Integer getNumWorkers()
null
for nonepublic WorkerPool setNumWorkers(java.lang.Integer numWorkers)
numWorkers
- numWorkers or null
for nonepublic java.lang.String getOnHostMaintenance()
null
for nonepublic WorkerPool setOnHostMaintenance(java.lang.String onHostMaintenance)
onHostMaintenance
- onHostMaintenance or null
for nonepublic java.util.List<DataflowPackage> getPackages()
null
for nonepublic WorkerPool setPackages(java.util.List<DataflowPackage> packages)
packages
- packages or null
for nonepublic java.util.Map<java.lang.String,java.lang.Object> getPoolArgs()
null
for nonepublic WorkerPool setPoolArgs(java.util.Map<java.lang.String,java.lang.Object> poolArgs)
poolArgs
- poolArgs or null
for nonepublic java.lang.String getSubnetwork()
null
for nonepublic WorkerPool setSubnetwork(java.lang.String subnetwork)
subnetwork
- subnetwork or null
for nonepublic TaskRunnerSettings getTaskrunnerSettings()
null
for nonepublic WorkerPool setTaskrunnerSettings(TaskRunnerSettings taskrunnerSettings)
taskrunnerSettings
- taskrunnerSettings or null
for nonepublic java.lang.String getTeardownPolicy()
null
for nonepublic WorkerPool setTeardownPolicy(java.lang.String teardownPolicy)
teardownPolicy
- teardownPolicy or null
for nonepublic java.lang.String getWorkerHarnessContainerImage()
null
for nonepublic WorkerPool setWorkerHarnessContainerImage(java.lang.String workerHarnessContainerImage)
workerHarnessContainerImage
- workerHarnessContainerImage or null
for nonepublic java.lang.String getZone()
null
for nonepublic WorkerPool setZone(java.lang.String zone)
zone
- zone or null
for nonepublic WorkerPool set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public WorkerPool clone()
clone
in class com.google.api.client.json.GenericJson