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

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


    return req;
  }

  public static UpdateWithJobExecutionReq buildSaveJobExecutionReq(JobExecution jobExecution) {
    UpdateWithJobExecutionReq req = new UpdateWithJobExecutionReq();
    req.jobExecution = JobRepositoryRpcFactory.convertJobExecutionType(jobExecution);
    return req;
  }
View Full Code Here


  @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

TOP

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

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.