Google Cloud Dataflow SDK for Java, version 1.9.1
com.google.cloud.dataflow.sdk.options
Class DataflowPipelineOptions.JobNameFactory
- java.lang.Object
-
- com.google.cloud.dataflow.sdk.options.DataflowPipelineOptions.JobNameFactory
-
- All Implemented Interfaces:
- DefaultValueFactory<String>
- Enclosing interface:
- DataflowPipelineOptions
public static class DataflowPipelineOptions.JobNameFactory extends Object implements DefaultValueFactory<String>
Returns a normalized job name constructed fromApplicationNameOptions.getAppName()
, the local system user name (if available), and the current time. The normalization makes sure that the job name matches the required pattern of [a-z]([-a-z0-9]*[a-z0-9])? and length limit of 40 characters.This job name factory is only able to generate one unique name per second per application and user combination.
-
-
Constructor Summary
Constructors Constructor and Description JobNameFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description String
create(PipelineOptions options)
Creates a default value for a getter marked withDefault.InstanceFactory
.
-
-
-
Method Detail
-
create
public String create(PipelineOptions options)
Description copied from interface:DefaultValueFactory
Creates a default value for a getter marked withDefault.InstanceFactory
.- Specified by:
create
in interfaceDefaultValueFactory<String>
- Parameters:
options
- The current pipeline options.- Returns:
- The default value to be used for the annotated getter.
-
-