@Override
  public String getPlanAsJson() throws Exception {
    return jsonGenerator.toJson(this);
  }
The JobGraph is only constructed by the {@link ExecutionPlanner}.

@param config configuration for the application
@param appDesc {@link ApplicationDescriptorImpl} describing the application
samza-core/src/main/java/org/apache/samza/execution/JobGraph.java