beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bchamb...@apache.org
Subject [1/2] incubator-beam git commit: Add the MaxConditionCost option
Date Tue, 05 Apr 2016 17:49:10 GMT
Repository: incubator-beam
Updated Branches:
  refs/heads/master 1c2fa03cc -> f2f5129e2


Add the MaxConditionCost option


Project: http://git-wip-us.apache.org/repos/asf/incubator-beam/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-beam/commit/c468daab
Tree: http://git-wip-us.apache.org/repos/asf/incubator-beam/tree/c468daab
Diff: http://git-wip-us.apache.org/repos/asf/incubator-beam/diff/c468daab

Branch: refs/heads/master
Commit: c468daab6e72d0be0b17076d1f12f10db79dbd77
Parents: 1c2fa03
Author: bchambers <bchambers@google.com>
Authored: Fri Apr 1 11:28:04 2016 -0700
Committer: bchambers <bchambers@google.com>
Committed: Tue Apr 5 10:37:59 2016 -0700

----------------------------------------------------------------------
 .../dataflow/sdk/options/CloudDebuggerOptions.java  | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-beam/blob/c468daab/sdks/java/core/src/main/java/com/google/cloud/dataflow/sdk/options/CloudDebuggerOptions.java
----------------------------------------------------------------------
diff --git a/sdks/java/core/src/main/java/com/google/cloud/dataflow/sdk/options/CloudDebuggerOptions.java
b/sdks/java/core/src/main/java/com/google/cloud/dataflow/sdk/options/CloudDebuggerOptions.java
index 1227998..6f1551d 100644
--- a/sdks/java/core/src/main/java/com/google/cloud/dataflow/sdk/options/CloudDebuggerOptions.java
+++ b/sdks/java/core/src/main/java/com/google/cloud/dataflow/sdk/options/CloudDebuggerOptions.java
@@ -30,15 +30,23 @@ import javax.annotation.Nullable;
 @Hidden
 public interface CloudDebuggerOptions {
 
-  /**
-   * Whether to enable the Cloud Debugger snapshot agent for the current job.
-   */
+  /** Whether to enable the Cloud Debugger snapshot agent for the current job. */
   @Description("Whether to enable the Cloud Debugger snapshot agent for the current job.")
   boolean getEnableCloudDebugger();
   void setEnableCloudDebugger(boolean enabled);
 
-  @Description("The Cloud Debugger debugee to associate with. This should not be set directly.")
+  /** The Cloud Debugger debuggee to associate with. This should not be set directly. */
+  @Description("The Cloud Debugger debuggee to associate with. This should not be set directly.")
   @Hidden
   @Nullable Debuggee getDebuggee();
   void setDebuggee(Debuggee debuggee);
+
+  /** The maximum cost (as a ratio of CPU time) allowed for evaluating conditional snapshots.
*/
+  @Description(
+      "The maximum cost (as a ratio of CPU time) allowed for evaluating conditional snapshots.
"
+      + "Should be a double between 0 and 1. "
+      + "Snapshots will be cancelled if evaluating conditions takes more than this ratio
of time.")
+  @Default.Double(0.01)
+  double getMaxConditionCost();
+  void setMaxConditionCost(double maxConditionCost);
 }


Mime
View raw message