Examples of IsJobInstanceExistsReq


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

    }
    return new JobParameters(map);
  }

  public static IsJobInstanceExistsReq buildIsJobInstanceExistsReq(String jobName, JobParameters jobParameters) {
    IsJobInstanceExistsReq req = new IsJobInstanceExistsReq();

    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();
View Full Code Here

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

  public boolean isJobInstanceExists(String jobName, JobParameters jobParameters) {
    Assert.notNull(jobName, "Job name must not be null.");
    Assert.notNull(jobParameters, "JobParameters must not be null.");

    try {
      IsJobInstanceExistsReq request = JobRepositoryRpcFactory.buildIsJobInstanceExistsReq(jobName, jobParameters);
      IsJobInstanceExistsRes response = (IsJobInstanceExistsRes) getAppmasterScOperations().doMindRequest(request);
      return response.response;
    } catch (Exception e) {
      throw convertException(e);
    }
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.