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

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


    req.jobParameters = map;
    return req;
  }

  public static CreateJobInstanceReq buildCreateJobInstanceReq(String jobName, JobParameters jobParameters) {
    CreateJobInstanceReq req = new CreateJobInstanceReq();

    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(jobName, "Job name must not be null.");
    Assert.notNull(jobParameters, "JobParameters must not be null.");

    JobInstance jobInstance = null;
    try {
      CreateJobInstanceReq request = JobRepositoryRpcFactory.buildCreateJobInstanceReq(jobName, jobParameters);
      CreateJobInstanceRes response = (CreateJobInstanceRes) getAppmasterScOperations().doMindRequest(request);
      jobInstance = JobRepositoryRpcFactory.convertJobInstanceType(response.jobInstance);
    } catch (Exception e) {
      throw convertException(e);
    }
View Full Code Here

TOP

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

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.