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

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


  @Override
  public void update(JobExecution jobExecution) {

    try {
      UpdateWithJobExecutionReq request = JobRepositoryRpcFactory.buildSaveJobExecutionReq(jobExecution);
      UpdateWithJobExecutionRes response = (UpdateWithJobExecutionRes) getAppmasterScOperations().doMindRequest(request);
      jobExecution.setId(response.getId());
      jobExecution.setVersion(response.getVersion());
    } catch (Exception e) {
      throw convertException(e);
    }

  }
View Full Code Here


    response.jobExecution = JobRepositoryRpcFactory.convertJobExecutionType(jobExecution);
    return response;
  }

  private BaseResponseObject handleUpdateWithJobExecutionReq(UpdateWithJobExecutionReq request) {
    UpdateWithJobExecutionRes response = null;
    JobExecution jobExecution = JobRepositoryRpcFactory.convertJobExecutionType(request.jobExecution);
    jobRepository.update(jobExecution);
    response = new UpdateWithJobExecutionRes();
    response.id = jobExecution.getId();
    response.version = jobExecution.getVersion();
    return response;
  }
View Full Code Here

TOP

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

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.