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

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


    return response;
  }

  private BaseResponseObject handleUpdateExecutionContext(UpdateExecutionContextReq request) {
    UpdateExecutionContextRes response = null;
    try {
      if(request.stepExecution != null) {
        StepExecution stepExecution = JobRepositoryRpcFactory.convertStepExecutionType(request.stepExecution);
        jobRepository.updateExecutionContext(stepExecution);
      } else if(request.jobExecution != null) {
        JobExecution jobExecution = JobRepositoryRpcFactory.convertJobExecutionType(request.jobExecution);
        jobRepository.updateExecutionContext(jobExecution);
      }
      response = new UpdateExecutionContextRes();
    } catch (Exception e) {
      log.error("error handling command", e);
    }
    return response;
  }
View Full Code Here

TOP

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

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.