public final class WorkerPool extends 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 Dataflow API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
WorkerPool() |
Modifier and Type | Method and Description |
---|---|
WorkerPool |
clone() |
AutoscalingSettings |
getAutoscalingSettings()
Settings for autoscaling of this WorkerPool.
|
List<Disk> |
getDataDisks()
Data disks that are used by a VM in this workflow.
|
String |
getDefaultPackageSet()
The default package set to install.
|
Integer |
getDiskSizeGb()
Size of root disk for VMs, in GB.
|
String |
getDiskSourceImage()
Fully qualified source image for disks.
|
String |
getDiskType()
Type of root disk for VMs.
|
String |
getIpConfiguration()
Configuration for VM IPs.
|
String |
getKind()
The kind of the worker pool; currently only `harness` and `shuffle` are supported.
|
String |
getMachineType()
Machine type (e.g.
|
Map<String,String> |
getMetadata()
Metadata to set on the Google Compute Engine VMs.
|
String |
getNetwork()
Network to which VMs will be assigned.
|
Integer |
getNumThreadsPerWorker()
The number of threads per worker harness.
|
Integer |
getNumWorkers()
Number of Google Compute Engine workers in this pool needed to execute the job.
|
String |
getOnHostMaintenance()
The action to take on host maintenance, as defined by the Google Compute Engine API.
|
List<DataflowPackage> |
getPackages()
Packages to be installed on workers.
|
Map<String,Object> |
getPoolArgs()
Extra arguments for this worker pool.
|
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.
|
String |
getTeardownPolicy()
Sets the policy for determining when to turndown worker pool.
|
String |
getWorkerHarnessContainerImage()
Required.
|
String |
getZone()
Zone to run the worker pools in.
|
WorkerPool |
set(String fieldName,
Object value) |
WorkerPool |
setAutoscalingSettings(AutoscalingSettings autoscalingSettings)
Settings for autoscaling of this WorkerPool.
|
WorkerPool |
setDataDisks(List<Disk> dataDisks)
Data disks that are used by a VM in this workflow.
|
WorkerPool |
setDefaultPackageSet(String defaultPackageSet)
The default package set to install.
|
WorkerPool |
setDiskSizeGb(Integer diskSizeGb)
Size of root disk for VMs, in GB.
|
WorkerPool |
setDiskSourceImage(String diskSourceImage)
Fully qualified source image for disks.
|
WorkerPool |
setDiskType(String diskType)
Type of root disk for VMs.
|
WorkerPool |
setIpConfiguration(String ipConfiguration)
Configuration for VM IPs.
|
WorkerPool |
setKind(String kind)
The kind of the worker pool; currently only `harness` and `shuffle` are supported.
|
WorkerPool |
setMachineType(String machineType)
Machine type (e.g.
|
WorkerPool |
setMetadata(Map<String,String> metadata)
Metadata to set on the Google Compute Engine VMs.
|
WorkerPool |
setNetwork(String network)
Network to which VMs will be assigned.
|
WorkerPool |
setNumThreadsPerWorker(Integer numThreadsPerWorker)
The number of threads per worker harness.
|
WorkerPool |
setNumWorkers(Integer numWorkers)
Number of Google Compute Engine workers in this pool needed to execute the job.
|
WorkerPool |
setOnHostMaintenance(String onHostMaintenance)
The action to take on host maintenance, as defined by the Google Compute Engine API.
|
WorkerPool |
setPackages(List<DataflowPackage> packages)
Packages to be installed on workers.
|
WorkerPool |
setPoolArgs(Map<String,Object> poolArgs)
Extra arguments for this worker pool.
|
WorkerPool |
setSubnetwork(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(String teardownPolicy)
Sets the policy for determining when to turndown worker pool.
|
WorkerPool |
setWorkerHarnessContainerImage(String workerHarnessContainerImage)
Required.
|
WorkerPool |
setZone(String zone)
Zone to run the worker pools in.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public AutoscalingSettings getAutoscalingSettings()
null
for nonepublic WorkerPool setAutoscalingSettings(AutoscalingSettings autoscalingSettings)
autoscalingSettings
- autoscalingSettings or null
for nonepublic List<Disk> getDataDisks()
null
for nonepublic WorkerPool setDataDisks(List<Disk> dataDisks)
dataDisks
- dataDisks or null
for nonepublic String getDefaultPackageSet()
null
for nonepublic WorkerPool setDefaultPackageSet(String defaultPackageSet)
defaultPackageSet
- defaultPackageSet or null
for nonepublic Integer getDiskSizeGb()
null
for nonepublic WorkerPool setDiskSizeGb(Integer diskSizeGb)
diskSizeGb
- diskSizeGb or null
for nonepublic String getDiskSourceImage()
null
for nonepublic WorkerPool setDiskSourceImage(String diskSourceImage)
diskSourceImage
- diskSourceImage or null
for nonepublic String getDiskType()
null
for nonepublic WorkerPool setDiskType(String diskType)
diskType
- diskType or null
for nonepublic String getIpConfiguration()
null
for nonepublic WorkerPool setIpConfiguration(String ipConfiguration)
ipConfiguration
- ipConfiguration or null
for nonepublic String getKind()
null
for nonepublic WorkerPool setKind(String kind)
kind
- kind or null
for nonepublic String getMachineType()
null
for nonepublic WorkerPool setMachineType(String machineType)
machineType
- machineType or null
for nonepublic Map<String,String> getMetadata()
null
for nonepublic WorkerPool setMetadata(Map<String,String> metadata)
metadata
- metadata or null
for nonepublic String getNetwork()
null
for nonepublic WorkerPool setNetwork(String network)
network
- network or null
for nonepublic Integer getNumThreadsPerWorker()
null
for nonepublic WorkerPool setNumThreadsPerWorker(Integer numThreadsPerWorker)
numThreadsPerWorker
- numThreadsPerWorker or null
for nonepublic Integer getNumWorkers()
null
for nonepublic WorkerPool setNumWorkers(Integer numWorkers)
numWorkers
- numWorkers or null
for nonepublic String getOnHostMaintenance()
null
for nonepublic WorkerPool setOnHostMaintenance(String onHostMaintenance)
onHostMaintenance
- onHostMaintenance or null
for nonepublic List<DataflowPackage> getPackages()
null
for nonepublic WorkerPool setPackages(List<DataflowPackage> packages)
packages
- packages or null
for nonepublic Map<String,Object> getPoolArgs()
null
for nonepublic WorkerPool setPoolArgs(Map<String,Object> poolArgs)
poolArgs
- poolArgs or null
for nonepublic String getSubnetwork()
null
for nonepublic WorkerPool setSubnetwork(String subnetwork)
subnetwork
- subnetwork or null
for nonepublic TaskRunnerSettings getTaskrunnerSettings()
null
for nonepublic WorkerPool setTaskrunnerSettings(TaskRunnerSettings taskrunnerSettings)
taskrunnerSettings
- taskrunnerSettings or null
for nonepublic String getTeardownPolicy()
null
for nonepublic WorkerPool setTeardownPolicy(String teardownPolicy)
teardownPolicy
- teardownPolicy or null
for nonepublic String getWorkerHarnessContainerImage()
null
for nonepublic WorkerPool setWorkerHarnessContainerImage(String workerHarnessContainerImage)
workerHarnessContainerImage
- workerHarnessContainerImage or null
for nonepublic String getZone()
null
for nonepublic WorkerPool setZone(String zone)
zone
- zone or null
for nonepublic WorkerPool set(String fieldName, Object value)
set
in class GenericJson
public WorkerPool clone()
clone
in class GenericJson
Copyright © 2011–2019 Google. All rights reserved.