Package org.apache.sqoop.json

Examples of org.apache.sqoop.json.SubmissionBean


      response = super.get(serverUrl + HISTORY + jid);
    }

    JSONObject jsonObject = (JSONObject) JSONValue.parse(response);

    SubmissionBean submissionBean = new SubmissionBean();
    submissionBean.restore(jsonObject);

    return submissionBean;
  }
View Full Code Here


  public SubmissionBean read(String serverUrl, Long jid) {
    String response = super.get(serverUrl + ACTION + jid);

    JSONObject jsonObject = (JSONObject) JSONValue.parse(response);

    SubmissionBean submissionBean = new SubmissionBean();
    submissionBean.restore(jsonObject);

    return submissionBean;
  }
View Full Code Here

  }

  public SubmissionBean create(String serverUrl, Long jid) {
    String response = super.post(serverUrl + ACTION + jid, null);

    SubmissionBean submissionBean = new SubmissionBean();
    submissionBean.restore((JSONObject) JSONValue.parse(response));

    return submissionBean;
  }
View Full Code Here

  }

  public SubmissionBean delete(String serverUrl, Long id) {
     String response = super.delete(serverUrl + ACTION + id);

    SubmissionBean submissionBean = new SubmissionBean();
    submissionBean.restore((JSONObject) JSONValue.parse(response));

    return submissionBean;
  }
View Full Code Here

    }
  }

  private JsonBean submissionStop(long jid, HttpEventContext ctx) {
    MSubmission submission = JobManager.getInstance().stop(jid, ctx);
    return new SubmissionBean(submission);
  }
View Full Code Here

    return new SubmissionBean(submission);
  }

  private JsonBean submissionSubmit(long jid, HttpEventContext ctx) {
    MSubmission submission = JobManager.getInstance().submit(jid, ctx);
    return new SubmissionBean(submission);
  }
View Full Code Here

    return new SubmissionBean(submission);
  }

  private JsonBean submissionStatus(long jid) {
    MSubmission submission = JobManager.getInstance().status(jid);
    return new SubmissionBean(submission);
  }
View Full Code Here

    return new SubmissionBean(submission);
  }

  private JsonBean getSubmissions() {
    List<MSubmission> submissions = RepositoryManager.getInstance().getRepository().findSubmissions();
    return new SubmissionBean(submissions);
  }
View Full Code Here

    return new SubmissionBean(submissions);
  }

  private JsonBean getSubmissionsForJob(long jid) {
    List<MSubmission> submissions = RepositoryManager.getInstance().getRepository().findSubmissionsForJob(jid);
    return new SubmissionBean(submissions);
  }
View Full Code Here

    return null;
  }

  private JsonBean submissionStop(long jid) {
    MSubmission submission = FrameworkManager.stop(jid);
    return new SubmissionBean(submission);
  }
View Full Code Here

TOP

Related Classes of org.apache.sqoop.json.SubmissionBean

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.