public static class PipelineOptions.JobNameFactory extends java.lang.Object implements DefaultValueFactory<java.lang.String>
ApplicationNameOptions.getAppName()
, the
local system user name (if available), the current time, and a random integer.
The normalization makes sure that the name matches the pattern of [a-z]([-a-z0-9]*[a-z0-9])?.
Constructor and Description |
---|
JobNameFactory() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
create(PipelineOptions options)
Creates a default value for a getter marked with
Default.InstanceFactory . |
public java.lang.String create(PipelineOptions options)
DefaultValueFactory
Default.InstanceFactory
.create
in interface DefaultValueFactory<java.lang.String>
options
- The current pipeline options.