public final class WorkerSettings 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 |
---|
WorkerSettings() |
Modifier and Type | Method and Description |
---|---|
WorkerSettings |
clone() |
String |
getBaseUrl()
The base URL for accessing Google Cloud APIs.
|
Boolean |
getReportingEnabled()
Send work progress updates to service.
|
String |
getServicePath()
The Dataflow service path relative to the root URL, for example, "dataflow/v1b3/projects".
|
String |
getShuffleServicePath()
The Shuffle service path relative to the root URL, for example, "shuffle/v1beta1".
|
String |
getTempStoragePrefix()
The prefix of the resources the system should use for temporary storage.
|
String |
getWorkerId()
ID of the worker running this pipeline.
|
WorkerSettings |
set(String fieldName,
Object value) |
WorkerSettings |
setBaseUrl(String baseUrl)
The base URL for accessing Google Cloud APIs.
|
WorkerSettings |
setReportingEnabled(Boolean reportingEnabled)
Send work progress updates to service.
|
WorkerSettings |
setServicePath(String servicePath)
The Dataflow service path relative to the root URL, for example, "dataflow/v1b3/projects".
|
WorkerSettings |
setShuffleServicePath(String shuffleServicePath)
The Shuffle service path relative to the root URL, for example, "shuffle/v1beta1".
|
WorkerSettings |
setTempStoragePrefix(String tempStoragePrefix)
The prefix of the resources the system should use for temporary storage.
|
WorkerSettings |
setWorkerId(String workerId)
ID of the worker running this pipeline.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public String getBaseUrl()
null
for nonepublic WorkerSettings setBaseUrl(String baseUrl)
baseUrl
- baseUrl or null
for nonepublic Boolean getReportingEnabled()
null
for nonepublic WorkerSettings setReportingEnabled(Boolean reportingEnabled)
reportingEnabled
- reportingEnabled or null
for nonepublic String getServicePath()
null
for nonepublic WorkerSettings setServicePath(String servicePath)
servicePath
- servicePath or null
for nonepublic String getShuffleServicePath()
null
for nonepublic WorkerSettings setShuffleServicePath(String shuffleServicePath)
shuffleServicePath
- shuffleServicePath or null
for nonepublic String getTempStoragePrefix()
null
for nonepublic WorkerSettings setTempStoragePrefix(String tempStoragePrefix)
tempStoragePrefix
- tempStoragePrefix or null
for nonepublic String getWorkerId()
null
for nonepublic WorkerSettings setWorkerId(String workerId)
workerId
- workerId or null
for nonepublic WorkerSettings set(String fieldName, Object value)
set
in class GenericJson
public WorkerSettings clone()
clone
in class GenericJson