@Override
  public ApplicationStatus status() {
    // since currently we only support single actual remote job, we can get its status without
    // building the execution plan
    try {
      JobConfig jc = new JobConfig(JobPlanner.generateSingleJobConfig(config));
      return getApplicationStatus(jc);
    } catch (Throwable t) {
      throw new SamzaException("Failed to get status for application", t);
    }
  }
Constructors a {@link RemoteApplicationRunner} to run the {@code app} with the {@code config}.

@param app application to run
@param config configuration for the application
samza-core/src/main/java/org/apache/samza/runtime/RemoteApplicationRunner.java