Tabnine Logo
TaskInfo.getTaskNameWithSubtasks
Code IndexAdd Tabnine to your IDE (free)

How to use
getTaskNameWithSubtasks
method
in
org.apache.flink.api.common.TaskInfo

Best Java code snippets using org.apache.flink.api.common.TaskInfo.getTaskNameWithSubtasks (Showing top 20 results out of 315)

origin: apache/flink

@Override
public String getTaskNameWithSubtasks() {
  return taskInfo.getTaskNameWithSubtasks();
}
origin: apache/flink

/**
 * Gets the name of the task, in the form "taskname (2/5)".
 * @return The name of the task.
 */
public String getName() {
  return getEnvironment().getTaskInfo().getTaskNameWithSubtasks();
}
origin: apache/flink

when(mockTaskInfo.getTaskNameWithSubtasks()).thenReturn("foobar");
when(mockTaskInfo.getIndexOfThisSubtask()).thenReturn(0);
Environment mockEnvironment = new MockEnvironmentBuilder().build();
origin: com.alibaba.blink/flink-core

@Override
public String getTaskNameWithSubtasks() {
  return taskInfo.getTaskNameWithSubtasks();
}
origin: org.apache.flink/flink-core

@Override
public String getTaskNameWithSubtasks() {
  return taskInfo.getTaskNameWithSubtasks();
}
origin: org.apache.flink/flink-streaming-java_2.10

/**
 * Gets the name of the task, in the form "taskname (2/5)".
 * @return The name of the task.
 */
public String getName() {
  return getEnvironment().getTaskInfo().getTaskNameWithSubtasks();
}
origin: org.apache.flink/flink-streaming-java_2.11

/**
 * Gets the name of the task, in the form "taskname (2/5)".
 * @return The name of the task.
 */
public String getName() {
  return getEnvironment().getTaskInfo().getTaskNameWithSubtasks();
}
origin: org.apache.flink/flink-streaming-java

/**
 * Gets the name of the task, in the form "taskname (2/5)".
 * @return The name of the task.
 */
public String getName() {
  return getEnvironment().getTaskInfo().getTaskNameWithSubtasks();
}
origin: org.apache.flink/flink-runtime_2.11

private boolean decrementReferenceInternal(BatchTask<?, ?> referenceHolder, boolean errorIfNoReference) {
  synchronized (references) {
    if (disposed || references.isEmpty()) {
      if (errorIfNoReference) {
        throw new IllegalStateException("Decrementing reference to broadcast variable that is no longer alive.");
      } else {
        return false;
      }
    }
    if (!references.remove(referenceHolder)) {
      if (errorIfNoReference) {
        throw new IllegalStateException(
            String.format("The task %s did not hold a reference to the broadcast variable %s.",
                referenceHolder.getEnvironment().getTaskInfo().getTaskNameWithSubtasks(),
                key.toString()));
      } else {
        return false;
      }
    }
    if (references.isEmpty()) {
      disposed = true;
      data = null;
      transformed = null;
      return true;
    } else {
      return false;
    }
  }
}
origin: org.apache.flink/flink-runtime_2.10

  throw new IllegalStateException(
      String.format("The task %s did not hold a reference to the broadcast variable %s.",
          referenceHolder.getEnvironment().getTaskInfo().getTaskNameWithSubtasks(),
          key.toString()));
} else {
origin: org.apache.flink/flink-runtime

private boolean decrementReferenceInternal(BatchTask<?, ?> referenceHolder, boolean errorIfNoReference) {
  synchronized (references) {
    if (disposed || references.isEmpty()) {
      if (errorIfNoReference) {
        throw new IllegalStateException("Decrementing reference to broadcast variable that is no longer alive.");
      } else {
        return false;
      }
    }
    if (!references.remove(referenceHolder)) {
      if (errorIfNoReference) {
        throw new IllegalStateException(
            String.format("The task %s did not hold a reference to the broadcast variable %s.",
                referenceHolder.getEnvironment().getTaskInfo().getTaskNameWithSubtasks(),
                key.toString()));
      } else {
        return false;
      }
    }
    if (references.isEmpty()) {
      disposed = true;
      data = null;
      transformed = null;
      return true;
    } else {
      return false;
    }
  }
}
origin: com.alibaba.blink/flink-runtime

private boolean decrementReferenceInternal(BatchTask<?, ?> referenceHolder, boolean errorIfNoReference) {
  synchronized (references) {
    if (disposed || references.isEmpty()) {
      if (errorIfNoReference) {
        throw new IllegalStateException("Decrementing reference to broadcast variable that is no longer alive.");
      } else {
        return false;
      }
    }
    if (!references.remove(referenceHolder)) {
      if (errorIfNoReference) {
        throw new IllegalStateException(
            String.format("The task %s did not hold a reference to the broadcast variable %s.",
                referenceHolder.getEnvironment().getTaskInfo().getTaskNameWithSubtasks(),
                key.toString()));
      } else {
        return false;
      }
    }
    if (references.isEmpty()) {
      disposed = true;
      data = null;
      transformed = null;
      return true;
    } else {
      return false;
    }
  }
}
origin: org.apache.flink/flink-runtime_2.10

throw new IllegalStateException(
    String.format("The task %s already holds a reference to the broadcast variable %s.",
        referenceHolder.getEnvironment().getTaskInfo().getTaskNameWithSubtasks(),
        key.toString()));
origin: org.apache.flink/flink-runtime_2.11

throw new IllegalStateException(
    String.format("The task %s already holds a reference to the broadcast variable %s.",
        referenceHolder.getEnvironment().getTaskInfo().getTaskNameWithSubtasks(),
        key.toString()));
origin: com.alibaba.blink/flink-runtime

throw new IllegalStateException(
    String.format("The task %s already holds a reference to the broadcast variable %s.",
        referenceHolder.getEnvironment().getTaskInfo().getTaskNameWithSubtasks(),
        key.toString()));
origin: org.apache.flink/flink-runtime

throw new IllegalStateException(
    String.format("The task %s already holds a reference to the broadcast variable %s.",
        referenceHolder.getEnvironment().getTaskInfo().getTaskNameWithSubtasks(),
        key.toString()));
origin: com.alibaba.blink/flink-runtime

public void unregisterTask(Task task) {
  LOG.debug("Unregister task {} from network environment (state: {}).",
      task.getTaskInfo().getTaskNameWithSubtasks(), task.getExecutionState());
origin: org.apache.flink/flink-runtime_2.11

public void unregisterTask(Task task) {
  LOG.debug("Unregister task {} from network environment (state: {}).",
      task.getTaskInfo().getTaskNameWithSubtasks(), task.getExecutionState());
origin: org.apache.flink/flink-runtime

public void unregisterTask(Task task) {
  LOG.debug("Unregister task {} from network environment (state: {}).",
      task.getTaskInfo().getTaskNameWithSubtasks(), task.getExecutionState());
origin: org.apache.flink/flink-runtime_2.10

public void unregisterTask(Task task) {
  LOG.debug("Unregister task {} from network environment (state: {}).",
      task.getTaskInfo().getTaskNameWithSubtasks(), task.getExecutionState());
org.apache.flink.api.commonTaskInfogetTaskNameWithSubtasks

Javadoc

Returns the name of the task, appended with the subtask indicator, such as "MyTask (3/6)", where 3 would be ( #getIndexOfThisSubtask() + 1), and 6 would be #getNumberOfParallelSubtasks().

Popular methods of TaskInfo

  • getIndexOfThisSubtask
    Gets the number of this parallel subtask. The numbering starts from 0 and goes up to parallelism-1 (
  • getNumberOfParallelSubtasks
    Gets the parallelism with which the parallel task runs.
  • getTaskName
    Returns the name of the task
  • getMaxNumberOfParallelSubtasks
    Gets the max parallelism aka the max number of subtasks.
  • <init>
  • getAttemptNumber
    Gets the attempt number of this parallel subtask. First attempt is numbered 0. The attempt number co
  • getAllocationIDAsString
    Returns the allocation id for where this task is executed.

Popular in Java

  • Running tasks concurrently on multiple threads
  • getApplicationContext (Context)
  • requestLocationUpdates (LocationManager)
  • compareTo (BigDecimal)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Best IntelliJ plugins
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