private void getTaskDataAll(URL vertexListUrl, String dagId, List<TezTaskData> mapperList,
                                List<TezTaskData> reducerList, List<TezTaskData> scopeTaskList) throws IOException, AuthenticationException {

      JsonNode rootVertexNode = ThreadContextMR2.readJsonNode(vertexListUrl);
      JsonNode vertices = rootVertexNode.path("entities");
      boolean isMapVertex = false;
      String vertexType = null;
      for (JsonNode vertex : vertices) {
        String vertexId = vertex.get("entity").getTextValue();
        String vertexClass = vertex.path("otherinfo").path("processorClassName").getTextValue();
        URL tasksByVertexURL = getTaskListByVertexURL(dagId, vertexId);
        if (vertexClass.equals("org.apache.hadoop.hive.ql.exec.tez.MapTezProcessor")) {
          isMapVertex = true;
          getTaskDataByVertexId(tasksByVertexURL, dagId, vertexId, mapperList,isMapVertex);
        }
        else if (vertexClass.equals("org.apache.hadoop.hive.ql.exec.tez.ReduceTezProcessor")) {
          isMapVertex = false;
          getTaskDataByVertexId(tasksByVertexURL, dagId, vertexId, reducerList, isMapVertex);
        }
        else if (vertexClass.equals("org.apache.pig.backend.hadoop.executionengine.tez.runtime.PigProcessor")) {
          isMapVertex = false;
          getTaskDataByVertexId(tasksByVertexURL, dagId, vertexId, scopeTaskList, isMapVertex);
        }

      }
    }
JSONFactory class provides functionality to parse mined job data from timeline server.
app/com/linkedin/drelephant/tez/fetchers/TezFetcher.java