congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ExecutionConfig.setLatencyTrackingInterval
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: apache/flink

/**
 * Verifies that latency metrics can be enabled via the {@link ExecutionConfig}.
 */
@Test
public void testLatencyMarkEmissionEnabledViaExecutionConfig() throws Exception {
  testLatencyMarkEmission((int) (maxProcessingTime / latencyMarkInterval) + 1, (operator, timeProvider) -> {
    ExecutionConfig executionConfig = new ExecutionConfig();
    executionConfig.setLatencyTrackingInterval(latencyMarkInterval);
    setupSourceOperator(operator, executionConfig, MockEnvironment.builder().build(), timeProvider);
  });
}
origin: apache/flink

/**
 * Verifies that latency metrics can be enabled via the {@link ExecutionConfig} even if they are disabled via
 * the configuration.
 */
@Test
public void testLatencyMarkEmissionEnabledOverrideViaExecutionConfig() throws Exception {
  testLatencyMarkEmission((int) (maxProcessingTime / latencyMarkInterval) + 1, (operator, timeProvider) -> {
    ExecutionConfig executionConfig = new ExecutionConfig();
    executionConfig.setLatencyTrackingInterval(latencyMarkInterval);
    Configuration tmConfig = new Configuration();
    tmConfig.setLong(MetricOptions.LATENCY_INTERVAL, 0L);
    Environment env = MockEnvironment.builder()
      .setTaskManagerRuntimeInfo(new TestingTaskManagerRuntimeInfo(tmConfig))
      .build();
    setupSourceOperator(operator, executionConfig, env, timeProvider);
  });
}
origin: apache/flink

/**
 * Verifies that latency metrics can be disabled via the {@link ExecutionConfig} even if they are enabled via
 * the configuration.
 */
@Test
public void testLatencyMarkEmissionDisabledOverrideViaExecutionConfig() throws Exception {
  testLatencyMarkEmission(0, (operator, timeProvider) -> {
    Configuration tmConfig = new Configuration();
    tmConfig.setLong(MetricOptions.LATENCY_INTERVAL, latencyMarkInterval);
    Environment env = MockEnvironment.builder()
      .setTaskManagerRuntimeInfo(new TestingTaskManagerRuntimeInfo(tmConfig))
      .build();
    ExecutionConfig executionConfig = new ExecutionConfig();
    executionConfig.setLatencyTrackingInterval(0);
    setupSourceOperator(operator, executionConfig, env, timeProvider);
  });
}
origin: apache/flink

testHarness.getExecutionConfig().setLatencyTrackingInterval(-1);
origin: org.apache.beam/beam-runners-flink

 private static void applyLatencyTrackingInterval(
   ExecutionConfig config, FlinkPipelineOptions options) {
  long latencyTrackingInterval = options.getLatencyTrackingInterval();
  config.setLatencyTrackingInterval(latencyTrackingInterval);
 }
}
origin: org.apache.beam/beam-runners-flink_2.11

private static void applyLatencyTrackingInterval(
  ExecutionConfig config, FlinkPipelineOptions options) {
 long latencyTrackingInterval = options.getLatencyTrackingInterval();
 config.setLatencyTrackingInterval(latencyTrackingInterval);
}
origin: seznam/euphoria

environment.getExecutionConfig().setLatencyTrackingInterval(latencyTracking.toMillis());
onContextCreationFns.forEach(c -> c.accept(environment));
origin: org.apache.beam/beam-runners-flink_2.11

testHarness.getExecutionConfig().setLatencyTrackingInterval(0);
testHarness.getExecutionConfig().setAutoWatermarkInterval(1);
origin: dataArtisans/oscon

env.setParallelism(1);
env.disableOperatorChaining();
env.getConfig().setLatencyTrackingInterval(1000);
org.apache.flink.api.commonExecutionConfigsetLatencyTrackingInterval

Javadoc

Interval for sending latency tracking marks from the sources to the sinks. Flink will send latency tracking marks from the sources at the specified interval. Setting a tracking interval

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,
  • getNumberOfExecutionRetries,
  • getRegisteredKryoTypes,
  • setParallelism,
  • getDefaultKryoSerializerClasses

Popular in Java

  • Start an intent from android
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setScale (BigDecimal)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • JTextField (javax.swing)
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now