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 Google Dataflow API. For a detailed explanation see: http://code.google.com/p/google-http-java-client/wiki/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 |
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 |
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.
|
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 |
getZone()
Zone to run the worker pools in (e.g.
|
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 |
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 |
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 |
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 |
setZone(String zone)
Zone to run the worker pools in (e.g.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
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 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 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 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 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