Skip to content

Commit

Permalink
Move 'update' pipeline option to correct interface
Browse files Browse the repository at this point in the history
  • Loading branch information
swegner authored and lukecwik committed Mar 2, 2016
1 parent c9e5525 commit 1f31d4d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,15 @@ public Dataflow create(PipelineOptions options) {

/**
* Whether to update the currently running pipeline with the same name as this one.
*
* @deprecated This property is replaced by @{link DataflowPipelineOptions#getUpdate()}
*/
@JsonIgnore
@Deprecated
@Description("If set, replace the existing pipeline with the name specified by --jobName with "
+ "this pipeline, preserving state.")
boolean getUpdate();
@Deprecated
void setUpdate(boolean value);

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,19 @@ public interface DataflowPipelineOptions extends
String getJobName();
void setJobName(String value);

/**
* Whether to update the currently running pipeline with the same name as this one.
*/
@Override
@SuppressWarnings("deprecation") // base class member deprecated in favor of this one.
@Description(
"If set, replace the existing pipeline with the name specified by --jobName with "
+ "this pipeline, preserving state.")
boolean getUpdate();
@Override
@SuppressWarnings("deprecation") // base class member deprecated in favor of this one.
void setUpdate(boolean value);

/**
* Returns a normalized job name constructed from {@link ApplicationNameOptions#getAppName()}, the
* local system user name (if available), and the current time. The normalization makes sure that
Expand Down

0 comments on commit 1f31d4d

Please sign in to comment.