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

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


  @Override
  public void add(StepExecution stepExecution) {

    try {
      AddWithStepExecutionReq request = JobRepositoryRpcFactory.buildAddWithStepExecutionReq(stepExecution);
      AddWithStepExecutionRes response = (AddWithStepExecutionRes) getAppmasterScOperations().doMindRequest(request);
      stepExecution.setId(response.getId());
      stepExecution.setVersion(response.getVersion());
    } catch (Exception e) {
      throw convertException(e);
    }
  }
View Full Code Here


    response.version = jobExecution.getVersion();
    return response;
  }

  private BaseResponseObject handleAddWithStepExecutionReq(AddWithStepExecutionReq request) {
    AddWithStepExecutionRes response = null;
    StepExecution stepExecution = JobRepositoryRpcFactory.convertStepExecutionType(request.stepExecution);
    jobRepository.add(stepExecution);
    response = new AddWithStepExecutionRes();
    response.id = stepExecution.getId();
    response.version = stepExecution.getVersion();
    return response;
  }
View Full Code Here

TOP

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

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.