Examples of GetLastStepExecutionRes


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

  @Override
  public StepExecution getLastStepExecution(JobInstance jobInstance, String stepName) {

    GetLastStepExecutionReq request = JobRepositoryRpcFactory.buildGetLastStepExecutionReq(jobInstance, stepName);
    GetLastStepExecutionRes response = (GetLastStepExecutionRes) getAppmasterScOperations().doMindRequest(request);
    return JobRepositoryRpcFactory.convertStepExecutionType(response.stepExecution);
  }
View Full Code Here

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

    response.count = stepExecutionCount;
    return response;
  }

  private BaseResponseObject handleGetLastStepExecutionReq(GetLastStepExecutionReq request) {
    GetLastStepExecutionRes response = null;
    JobInstance jobInstance = JobRepositoryRpcFactory.convertJobInstanceType(request.jobInstance);
    StepExecution lastStepExecution = jobRepository.getLastStepExecution(jobInstance, request.stepName);
    response = new GetLastStepExecutionRes();
    response.stepExecution = JobRepositoryRpcFactory.convertStepExecutionType(lastStepExecution);
    return response;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.