Codota Logo
ExecutionConfig.getNumberOfExecutionRetries
Code IndexAdd Codota to your IDE (free)

How to use
getNumberOfExecutionRetries
method
in
org.apache.flink.api.common.ExecutionConfig

Best Java code snippets using org.apache.flink.api.common.ExecutionConfig.getNumberOfExecutionRetries (Showing top 13 results out of 315)

  • Common ways to obtain ExecutionConfig
private void myMethod () {
ExecutionConfig e =
  • Codota Iconnew ExecutionConfig()
  • Codota IconStreamExecutionEnvironment env;env.getConfig().disableSysoutLogging()
  • Codota IconExecutionEnvironment env;env.getConfig().disableSysoutLogging()
  • Smart code suggestions by Codota
}
origin: apache/flink

/**
 * Gets the number of times the system will try to re-execute failed tasks.
 * A value of {@code -1} indicates that the system default value (as defined
 * in the configuration) should be used.
 *
 * @return The number of times the system will try to re-execute failed tasks.
 *
 * @deprecated This method will be replaced by {@link #getRestartStrategy}.
 */
@Deprecated
@PublicEvolving
public int getNumberOfExecutionRetries() {
  return config.getNumberOfExecutionRetries();
}
origin: apache/flink

/**
 * Gets the number of times the system will try to re-execute failed tasks. A value
 * of {@code -1} indicates that the system default value (as defined in the configuration)
 * should be used.
 *
 * @return The number of times the system will try to re-execute failed tasks.
 *
 * @deprecated This method will be replaced by {@link #getRestartStrategy}. The
 * {@link RestartStrategies.FixedDelayRestartStrategyConfiguration} contains the number of
 * execution retries.
 */
@Deprecated
@PublicEvolving
public int getNumberOfExecutionRetries() {
  return config.getNumberOfExecutionRetries();
}
origin: apache/flink

/**
 * Returns the restart strategy which has been set for the current job.
 *
 * @return The specified restart configuration
 */
@PublicEvolving
@SuppressWarnings("deprecation")
public RestartStrategies.RestartStrategyConfiguration getRestartStrategy() {
  if (restartStrategyConfiguration instanceof RestartStrategies.FallbackRestartStrategyConfiguration) {
    // support the old API calls by creating a restart strategy from them
    if (getNumberOfExecutionRetries() > 0 && getExecutionRetryDelay() >= 0) {
      return RestartStrategies.fixedDelayRestart(getNumberOfExecutionRetries(), getExecutionRetryDelay());
    } else if (getNumberOfExecutionRetries() == 0) {
      return RestartStrategies.noRestart();
    } else {
      return restartStrategyConfiguration;
    }
  } else {
    return restartStrategyConfiguration;
  }
}
origin: apache/flink

  @Override
  public String map(String value) throws Exception {
    Assert.assertTrue(1000 == getRuntimeContext().getExecutionConfig().getNumberOfExecutionRetries());
    Assert.assertTrue(50000 == getRuntimeContext().getExecutionConfig().getTaskCancellationInterval());
    return value;
  }
});
origin: org.apache.flink/flink-streaming-java

/**
 * Gets the number of times the system will try to re-execute failed tasks.
 * A value of {@code -1} indicates that the system default value (as defined
 * in the configuration) should be used.
 *
 * @return The number of times the system will try to re-execute failed tasks.
 *
 * @deprecated This method will be replaced by {@link #getRestartStrategy}.
 */
@Deprecated
@PublicEvolving
public int getNumberOfExecutionRetries() {
  return config.getNumberOfExecutionRetries();
}
origin: org.apache.flink/flink-streaming-java_2.11

/**
 * Gets the number of times the system will try to re-execute failed tasks.
 * A value of {@code -1} indicates that the system default value (as defined
 * in the configuration) should be used.
 *
 * @return The number of times the system will try to re-execute failed tasks.
 *
 * @deprecated This method will be replaced by {@link #getRestartStrategy}.
 */
@Deprecated
@PublicEvolving
public int getNumberOfExecutionRetries() {
  return config.getNumberOfExecutionRetries();
}
origin: org.apache.flink/flink-java

/**
 * Gets the number of times the system will try to re-execute failed tasks. A value
 * of {@code -1} indicates that the system default value (as defined in the configuration)
 * should be used.
 *
 * @return The number of times the system will try to re-execute failed tasks.
 *
 * @deprecated This method will be replaced by {@link #getRestartStrategy}. The
 * {@link RestartStrategies.FixedDelayRestartStrategyConfiguration} contains the number of
 * execution retries.
 */
@Deprecated
@PublicEvolving
public int getNumberOfExecutionRetries() {
  return config.getNumberOfExecutionRetries();
}
origin: DTStack/flinkx

/**
 * Gets the number of times the system will try to re-execute failed tasks.
 * A value of {@code -1} indicates that the system default value (as defined
 * in the configuration) should be used.
 *
 * @return The number of times the system will try to re-execute failed tasks.
 *
 * @deprecated This method will be replaced by {@link #getRestartStrategy}.
 */
@Deprecated
@PublicEvolving
public int getNumberOfExecutionRetries() {
  return config.getNumberOfExecutionRetries();
}
origin: org.apache.flink/flink-streaming-java_2.10

/**
 * Gets the number of times the system will try to re-execute failed tasks.
 * A value of {@code -1} indicates that the system default value (as defined
 * in the configuration) should be used.
 *
 * @return The number of times the system will try to re-execute failed tasks.
 *
 * @deprecated This method will be replaced by {@link #getRestartStrategy}.
 */
@Deprecated
@PublicEvolving
public int getNumberOfExecutionRetries() {
  return config.getNumberOfExecutionRetries();
}
origin: com.alibaba.blink/flink-java

/**
 * Gets the number of times the system will try to re-execute failed tasks. A value
 * of {@code -1} indicates that the system default value (as defined in the configuration)
 * should be used.
 *
 * @return The number of times the system will try to re-execute failed tasks.
 *
 * @deprecated This method will be replaced by {@link #getRestartStrategy}. The
 * {@link RestartStrategies.FixedDelayRestartStrategyConfiguration} contains the number of
 * execution retries.
 */
@Deprecated
@PublicEvolving
public int getNumberOfExecutionRetries() {
  return config.getNumberOfExecutionRetries();
}
origin: DTStack/flinkx

/**
 * Gets the number of times the system will try to re-execute failed tasks. A value
 * of {@code -1} indicates that the system default value (as defined in the configuration)
 * should be used.
 *
 * @return The number of times the system will try to re-execute failed tasks.
 *
 * @deprecated This method will be replaced by {@link #getRestartStrategy}. The
 * {@link RestartStrategies.FixedDelayRestartStrategyConfiguration} contains the number of
 * execution retries.
 */
@Deprecated
@PublicEvolving
public int getNumberOfExecutionRetries() {
  return config.getNumberOfExecutionRetries();
}
origin: org.apache.flink/flink-core

/**
 * Returns the restart strategy which has been set for the current job.
 *
 * @return The specified restart configuration
 */
@PublicEvolving
@SuppressWarnings("deprecation")
public RestartStrategies.RestartStrategyConfiguration getRestartStrategy() {
  if (restartStrategyConfiguration instanceof RestartStrategies.FallbackRestartStrategyConfiguration) {
    // support the old API calls by creating a restart strategy from them
    if (getNumberOfExecutionRetries() > 0 && getExecutionRetryDelay() >= 0) {
      return RestartStrategies.fixedDelayRestart(getNumberOfExecutionRetries(), getExecutionRetryDelay());
    } else if (getNumberOfExecutionRetries() == 0) {
      return RestartStrategies.noRestart();
    } else {
      return restartStrategyConfiguration;
    }
  } else {
    return restartStrategyConfiguration;
  }
}
origin: com.alibaba.blink/flink-core

/**
 * Returns the restart strategy which has been set for the current job.
 *
 * @return The specified restart configuration
 */
@PublicEvolving
@SuppressWarnings("deprecation")
public RestartStrategies.RestartStrategyConfiguration getRestartStrategy() {
  if (restartStrategyConfiguration == null) {
    // support the old API calls by creating a restart strategy from them
    if (getNumberOfExecutionRetries() > 0 && getExecutionRetryDelay() >= 0) {
      return RestartStrategies.fixedDelayRestart(getNumberOfExecutionRetries(), getExecutionRetryDelay());
    } else if (getNumberOfExecutionRetries() == 0) {
      return RestartStrategies.noRestart();
    } else {
      return null;
    }
  } else {
    return restartStrategyConfiguration;
  }
}
org.apache.flink.api.commonExecutionConfiggetNumberOfExecutionRetries

Javadoc

Gets the number of times the system will try to re-execute failed tasks. A value of -1 indicates that the system default value (as defined in the configuration) should be used.

Popular methods of ExecutionConfig

  • <init>
  • isObjectReuseEnabled
    Returns whether object reuse has been enabled or disabled. @see #enableObjectReuse()
  • disableSysoutLogging
    Disables the printing of progress update messages to System.out
  • getAutoWatermarkInterval
    Returns the interval of the automatic watermark emission.
  • setGlobalJobParameters
    Register a custom, serializable user configuration object.
  • enableObjectReuse
    Enables reusing objects that Flink internally uses for deserialization and passing data to user-code
  • setAutoWatermarkInterval
    Sets the interval of the automatic watermark emission. Watermarks are used throughout the streaming
  • disableObjectReuse
    Disables reusing objects that Flink internally uses for deserialization and passing data to user-cod
  • getRestartStrategy
    Returns the restart strategy which has been set for the current job.
  • isSysoutLoggingEnabled
    Gets whether progress update messages should be printed to System.out
  • registerKryoType
    Registers the given type with the serialization stack. If the type is eventually serialized as a POJ
  • registerTypeWithKryoSerializer
    Registers the given Serializer via its class as a serializer for the given type at the KryoSerialize
  • registerKryoType,
  • registerTypeWithKryoSerializer,
  • setRestartStrategy,
  • getParallelism,
  • addDefaultKryoSerializer,
  • getGlobalJobParameters,
  • getRegisteredKryoTypes,
  • setParallelism,
  • getDefaultKryoSerializerClasses

Popular in Java

  • Start an intent from android
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • requestLocationUpdates (LocationManager)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • MalformedURLException (java.net)
    Thrown to indicate that a malformed URL has occurred. Either no legal protocol could be found in a s
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • JList (javax.swing)
  • Table (org.hibernate.mapping)
    A relational table
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now