private int getVertexCompletedTaskCount(String vname) {
    int completedTaskCount;
    try {
      completedTaskCount =
          taskCommunicatorContext.getVertexCompletedTaskCount(vname);
      return completedTaskCount;
    } catch (Exception e) {
      LOG.error("Failed to get vertex completed task count for sourceName={}",
          vname);
      if (e instanceof RuntimeException) {
        throw (RuntimeException) e;
      } else {
        throw new RuntimeException(e);
      }
    }
  }
Constructs FragmentRuntimeInfo for scheduling within LLAP daemons.
Also caches state based on state updates.
@param vertexName
@param fragmentNumber
@param priority
@return
llap-tez/src/java/org/apache/hadoop/hive/llap/tezplugins/helpers/SourceStateTracker.java