Examples of GetStepExecutionCountRes


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

  }

  @Override
  public int getStepExecutionCount(JobInstance jobInstance, String stepName) {
    GetStepExecutionCountReq request = JobRepositoryRpcFactory.buildGetStepExecutionCountReq(jobInstance, stepName);
    GetStepExecutionCountRes response = (GetStepExecutionCountRes) getAppmasterScOperations().doMindRequest(request);
    return response.count;
  }
View Full Code Here

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

    response.version = stepExecution.getVersion();
    return response;
  }

  private BaseResponseObject handleGetStepExecutionCountReq(GetStepExecutionCountReq request) {
    GetStepExecutionCountRes response = null;
    JobInstance jobInstance = JobRepositoryRpcFactory.convertJobInstanceType(request.jobInstance);
    int stepExecutionCount = jobRepository.getStepExecutionCount(jobInstance, request.stepName);
    response = new GetStepExecutionCountRes();
    response.count = stepExecutionCount;
    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.