Tabnine Logo
CheckpointStatsTracker.createEmptyTaskStateStatsMap
Code IndexAdd Tabnine to your IDE (free)

How to use
createEmptyTaskStateStatsMap
method
in
org.apache.flink.runtime.checkpoint.CheckpointStatsTracker

Best Java code snippets using org.apache.flink.runtime.checkpoint.CheckpointStatsTracker.createEmptyTaskStateStatsMap (Showing top 4 results out of 315)

origin: org.apache.flink/flink-runtime_2.10

/**
 * Creates a new pending checkpoint tracker.
 *
 * @param checkpointId ID of the checkpoint.
 * @param triggerTimestamp Trigger timestamp of the checkpoint.
 * @param props The checkpoint properties.
 * @return Tracker for statistics gathering.
 */
PendingCheckpointStats reportPendingCheckpoint(
    long checkpointId,
    long triggerTimestamp,
    CheckpointProperties props) {
  ConcurrentHashMap<JobVertexID, TaskStateStats> taskStateStats = createEmptyTaskStateStatsMap();
  PendingCheckpointStats pending = new PendingCheckpointStats(
      checkpointId,
      triggerTimestamp,
      props,
      totalSubtaskCount,
      taskStateStats,
      new PendingCheckpointStatsCallback());
  statsReadWriteLock.lock();
  try {
    counts.incrementInProgressCheckpoints();
    history.addInProgressCheckpoint(pending);
    dirty = true;
  } finally {
    statsReadWriteLock.unlock();
  }
  return pending;
}
origin: org.apache.flink/flink-runtime_2.11

/**
 * Creates a new pending checkpoint tracker.
 *
 * @param checkpointId ID of the checkpoint.
 * @param triggerTimestamp Trigger timestamp of the checkpoint.
 * @param props The checkpoint properties.
 * @return Tracker for statistics gathering.
 */
PendingCheckpointStats reportPendingCheckpoint(
    long checkpointId,
    long triggerTimestamp,
    CheckpointProperties props) {
  ConcurrentHashMap<JobVertexID, TaskStateStats> taskStateStats = createEmptyTaskStateStatsMap();
  PendingCheckpointStats pending = new PendingCheckpointStats(
      checkpointId,
      triggerTimestamp,
      props,
      totalSubtaskCount,
      taskStateStats,
      new PendingCheckpointStatsCallback());
  statsReadWriteLock.lock();
  try {
    counts.incrementInProgressCheckpoints();
    history.addInProgressCheckpoint(pending);
    dirty = true;
  } finally {
    statsReadWriteLock.unlock();
  }
  return pending;
}
origin: org.apache.flink/flink-runtime

/**
 * Creates a new pending checkpoint tracker.
 *
 * @param checkpointId ID of the checkpoint.
 * @param triggerTimestamp Trigger timestamp of the checkpoint.
 * @param props The checkpoint properties.
 * @return Tracker for statistics gathering.
 */
PendingCheckpointStats reportPendingCheckpoint(
    long checkpointId,
    long triggerTimestamp,
    CheckpointProperties props) {
  ConcurrentHashMap<JobVertexID, TaskStateStats> taskStateStats = createEmptyTaskStateStatsMap();
  PendingCheckpointStats pending = new PendingCheckpointStats(
      checkpointId,
      triggerTimestamp,
      props,
      totalSubtaskCount,
      taskStateStats,
      new PendingCheckpointStatsCallback());
  statsReadWriteLock.lock();
  try {
    counts.incrementInProgressCheckpoints();
    history.addInProgressCheckpoint(pending);
    dirty = true;
  } finally {
    statsReadWriteLock.unlock();
  }
  return pending;
}
origin: com.alibaba.blink/flink-runtime

/**
 * Creates a new pending checkpoint tracker.
 *
 * @param checkpointId ID of the checkpoint.
 * @param triggerTimestamp Trigger timestamp of the checkpoint.
 * @param props The checkpoint properties.
 * @return Tracker for statistics gathering.
 */
PendingCheckpointStats reportPendingCheckpoint(
    long checkpointId,
    long triggerTimestamp,
    CheckpointProperties props) {
  ConcurrentHashMap<JobVertexID, TaskStateStats> taskStateStats = createEmptyTaskStateStatsMap();
  PendingCheckpointStats pending = new PendingCheckpointStats(
      checkpointId,
      triggerTimestamp,
      props,
      totalSubtaskCount,
      taskStateStats,
      new PendingCheckpointStatsCallback());
  statsReadWriteLock.lock();
  try {
    counts.incrementInProgressCheckpoints();
    history.addInProgressCheckpoint(pending);
    dirty = true;
  } finally {
    statsReadWriteLock.unlock();
  }
  return pending;
}
org.apache.flink.runtime.checkpointCheckpointStatsTrackercreateEmptyTaskStateStatsMap

Javadoc

Creates an empty map with a TaskStateStats instance per task that is involved in the checkpoint.

Popular methods of CheckpointStatsTracker

  • createSnapshot
    Creates a new snapshot of the available stats.
  • registerMetrics
    Register the exposed metrics.
  • reportRestoredCheckpoint
    Callback when a checkpoint is restored.
  • getJobCheckpointingConfiguration
    Returns the job's checkpointing configuration which is derived from the CheckpointConfig.
  • getSnapshottingSettings
    Returns the job's snapshotting settings which are derived from the CheckpointConfig.

Popular in Java

  • Reading from database using SQL prepared statement
  • runOnUiThread (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • setScale (BigDecimal)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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