Examples of CreateJobExecutionReq


Examples of org.springframework.yarn.batch.repository.bindings.repo.CreateJobExecutionReq

    req.jobParameters = map;
    return req;
  }

  public static CreateJobExecutionReq buildCreateJobExecutionReq(String jobName, JobParameters jobParameters) {
    CreateJobExecutionReq req = new CreateJobExecutionReq();

    Map<String, JobParameterType> map = new HashMap<String, JobParameterType>();
    for(Entry<String, JobParameter> parameter : jobParameters.getParameters().entrySet()) {
      JobParameterType type = new JobParameterType();
      type.parameter = parameter.getValue().getValue();
View Full Code Here

Examples of org.springframework.yarn.batch.repository.bindings.repo.CreateJobExecutionReq

    Assert.notNull(jobName, "Job name must not be null.");
    Assert.notNull(jobParameters, "JobParameters must not be null.");

    JobExecution jobExecution = null;
    try {
      CreateJobExecutionReq request = JobRepositoryRpcFactory.buildCreateJobExecutionReq(jobName, jobParameters);
      CreateJobExecutionRes response = (CreateJobExecutionRes) getAppmasterScOperations().doMindRequest(request);
      jobExecution = JobRepositoryRpcFactory.convertJobExecutionType(response.jobExecution);
    } catch (Exception e) {
      throw convertException(e);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.