Examples of GetLastJobExecutionReq


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

    req.stepExecution = JobRepositoryRpcFactory.convertStepExecutionType(stepExecution);
    return req;
  }

  public static GetLastJobExecutionReq buildGetLastJobExecutionReq(String jobName, JobParameters jobParameters) {
    GetLastJobExecutionReq req = new GetLastJobExecutionReq();
    Map<String, JobParameterType> map = new HashMap<String, JobParameterType>();
    for(Entry<String, JobParameter> parameter : jobParameters.getParameters().entrySet()) {
      JobParameterType type = new JobParameterType();
      type.parameter = parameter.getValue().getValue();
      type.parameterType = parameter.getValue().getType();
View Full Code Here

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

    return response.count;
  }

  @Override
  public JobExecution getLastJobExecution(String jobName, JobParameters jobParameters) {
    GetLastJobExecutionReq request = JobRepositoryRpcFactory.buildGetLastJobExecutionReq(jobName, jobParameters);
    GetLastJobExecutionRes response = (GetLastJobExecutionRes) getAppmasterScOperations().doMindRequest(request);
    return JobRepositoryRpcFactory.convertJobExecutionType(response.jobExecution);
  }
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.