Package org.springframework.yarn.batch.repository.bindings.repo

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


    req.jobParameters = map;
    return req;
  }

  public static CreateJobExecutionWithJobInstanceReq buildCreateJobExecutionWithJobInstanceReq(JobInstance jobInstance, JobParameters jobParameters, String jobConfigurationLocation) {
    CreateJobExecutionWithJobInstanceReq req = new CreateJobExecutionWithJobInstanceReq();

    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


    Assert.notNull(jobInstance, "Job instance must not be null.");
    Assert.notNull(jobParameters, "JobParameters must not be null.");

    JobExecution jobExecution = null;
    try {
      CreateJobExecutionWithJobInstanceReq request = JobRepositoryRpcFactory.buildCreateJobExecutionWithJobInstanceReq(jobInstance, jobParameters, jobConfigurationLocation);
      CreateJobExecutionWithJobInstanceRes response = (CreateJobExecutionWithJobInstanceRes) getAppmasterScOperations().doMindRequest(request);
      jobExecution = JobRepositoryRpcFactory.convertJobExecutionType(response.jobExecution);
    } catch (Exception e) {
      throw convertException(e);
    }
View Full Code Here

TOP

Related Classes of org.springframework.yarn.batch.repository.bindings.repo.CreateJobExecutionWithJobInstanceReq

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.