public final class TaskRunnerSettings 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 |
---|
TaskRunnerSettings() |
Modifier and Type | Method and Description |
---|---|
TaskRunnerSettings |
clone() |
Boolean |
getAlsologtostderr()
Also send taskrunner log info to stderr?
|
String |
getBaseTaskDir()
Location on the worker for task-specific subdirectories.
|
String |
getBaseUrl()
The base URL for the taskrunner to use when accessing Google Cloud APIs.
|
String |
getCommandlinesFileName()
Store preprocessing commands in this file.
|
Boolean |
getContinueOnException()
Do we continue taskrunner if an exception is hit?
|
String |
getDataflowApiVersion()
API version of endpoint, e.g.
|
String |
getHarnessCommand()
Command to launch the worker harness.
|
String |
getLanguageHint()
Suggested backend language.
|
String |
getLogDir()
Directory on the VM to store logs.
|
Boolean |
getLogToSerialconsole()
Send taskrunner log into to Google Compute Engine VM serial console?
|
String |
getLogUploadLocation()
Indicates where to put logs.
|
List<String> |
getOauthScopes()
OAuth2 scopes to be requested by the taskrunner in order to access the dataflow API.
|
WorkerSettings |
getParallelWorkerSettings()
Settings to pass to the parallel worker harness.
|
String |
getStreamingWorkerMainClass()
Streaming worker main class name.
|
String |
getTaskGroup()
The UNIX group ID on the worker VM to use for tasks launched by taskrunner; e.g.
|
String |
getTaskUser()
The UNIX user ID on the worker VM to use for tasks launched by taskrunner; e.g.
|
String |
getTempStoragePrefix()
The prefix of the resources the taskrunner should use for temporary storage.
|
String |
getVmId()
ID string of VM.
|
String |
getWorkflowFileName()
Store the workflow in this file.
|
TaskRunnerSettings |
set(String fieldName,
Object value) |
TaskRunnerSettings |
setAlsologtostderr(Boolean alsologtostderr)
Also send taskrunner log info to stderr?
|
TaskRunnerSettings |
setBaseTaskDir(String baseTaskDir)
Location on the worker for task-specific subdirectories.
|
TaskRunnerSettings |
setBaseUrl(String baseUrl)
The base URL for the taskrunner to use when accessing Google Cloud APIs.
|
TaskRunnerSettings |
setCommandlinesFileName(String commandlinesFileName)
Store preprocessing commands in this file.
|
TaskRunnerSettings |
setContinueOnException(Boolean continueOnException)
Do we continue taskrunner if an exception is hit?
|
TaskRunnerSettings |
setDataflowApiVersion(String dataflowApiVersion)
API version of endpoint, e.g.
|
TaskRunnerSettings |
setHarnessCommand(String harnessCommand)
Command to launch the worker harness.
|
TaskRunnerSettings |
setLanguageHint(String languageHint)
Suggested backend language.
|
TaskRunnerSettings |
setLogDir(String logDir)
Directory on the VM to store logs.
|
TaskRunnerSettings |
setLogToSerialconsole(Boolean logToSerialconsole)
Send taskrunner log into to Google Compute Engine VM serial console?
|
TaskRunnerSettings |
setLogUploadLocation(String logUploadLocation)
Indicates where to put logs.
|
TaskRunnerSettings |
setOauthScopes(List<String> oauthScopes)
OAuth2 scopes to be requested by the taskrunner in order to access the dataflow API.
|
TaskRunnerSettings |
setParallelWorkerSettings(WorkerSettings parallelWorkerSettings)
Settings to pass to the parallel worker harness.
|
TaskRunnerSettings |
setStreamingWorkerMainClass(String streamingWorkerMainClass)
Streaming worker main class name.
|
TaskRunnerSettings |
setTaskGroup(String taskGroup)
The UNIX group ID on the worker VM to use for tasks launched by taskrunner; e.g.
|
TaskRunnerSettings |
setTaskUser(String taskUser)
The UNIX user ID on the worker VM to use for tasks launched by taskrunner; e.g.
|
TaskRunnerSettings |
setTempStoragePrefix(String tempStoragePrefix)
The prefix of the resources the taskrunner should use for temporary storage.
|
TaskRunnerSettings |
setVmId(String vmId)
ID string of VM.
|
TaskRunnerSettings |
setWorkflowFileName(String workflowFileName)
Store the workflow in this file.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public Boolean getAlsologtostderr()
null
for nonepublic TaskRunnerSettings setAlsologtostderr(Boolean alsologtostderr)
alsologtostderr
- alsologtostderr or null
for nonepublic String getBaseTaskDir()
null
for nonepublic TaskRunnerSettings setBaseTaskDir(String baseTaskDir)
baseTaskDir
- baseTaskDir or null
for nonepublic String getBaseUrl()
null
for nonepublic TaskRunnerSettings setBaseUrl(String baseUrl)
baseUrl
- baseUrl or null
for nonepublic String getCommandlinesFileName()
null
for nonepublic TaskRunnerSettings setCommandlinesFileName(String commandlinesFileName)
commandlinesFileName
- commandlinesFileName or null
for nonepublic Boolean getContinueOnException()
null
for nonepublic TaskRunnerSettings setContinueOnException(Boolean continueOnException)
continueOnException
- continueOnException or null
for nonepublic String getDataflowApiVersion()
null
for nonepublic TaskRunnerSettings setDataflowApiVersion(String dataflowApiVersion)
dataflowApiVersion
- dataflowApiVersion or null
for nonepublic String getHarnessCommand()
null
for nonepublic TaskRunnerSettings setHarnessCommand(String harnessCommand)
harnessCommand
- harnessCommand or null
for nonepublic String getLanguageHint()
null
for nonepublic TaskRunnerSettings setLanguageHint(String languageHint)
languageHint
- languageHint or null
for nonepublic String getLogDir()
null
for nonepublic TaskRunnerSettings setLogDir(String logDir)
logDir
- logDir or null
for nonepublic Boolean getLogToSerialconsole()
null
for nonepublic TaskRunnerSettings setLogToSerialconsole(Boolean logToSerialconsole)
logToSerialconsole
- logToSerialconsole or null
for nonepublic String getLogUploadLocation()
null
for nonepublic TaskRunnerSettings setLogUploadLocation(String logUploadLocation)
logUploadLocation
- logUploadLocation or null
for nonepublic List<String> getOauthScopes()
null
for nonepublic TaskRunnerSettings setOauthScopes(List<String> oauthScopes)
oauthScopes
- oauthScopes or null
for nonepublic WorkerSettings getParallelWorkerSettings()
null
for nonepublic TaskRunnerSettings setParallelWorkerSettings(WorkerSettings parallelWorkerSettings)
parallelWorkerSettings
- parallelWorkerSettings or null
for nonepublic String getStreamingWorkerMainClass()
null
for nonepublic TaskRunnerSettings setStreamingWorkerMainClass(String streamingWorkerMainClass)
streamingWorkerMainClass
- streamingWorkerMainClass or null
for nonepublic String getTaskGroup()
null
for nonepublic TaskRunnerSettings setTaskGroup(String taskGroup)
taskGroup
- taskGroup or null
for nonepublic String getTaskUser()
null
for nonepublic TaskRunnerSettings setTaskUser(String taskUser)
taskUser
- taskUser or null
for nonepublic String getTempStoragePrefix()
null
for nonepublic TaskRunnerSettings setTempStoragePrefix(String tempStoragePrefix)
tempStoragePrefix
- tempStoragePrefix or null
for nonepublic String getVmId()
null
for nonepublic TaskRunnerSettings setVmId(String vmId)
vmId
- vmId or null
for nonepublic String getWorkflowFileName()
null
for nonepublic TaskRunnerSettings setWorkflowFileName(String workflowFileName)
workflowFileName
- workflowFileName or null
for nonepublic TaskRunnerSettings set(String fieldName, Object value)
set
in class GenericJson
public TaskRunnerSettings clone()
clone
in class GenericJson