io.github.zanella.nomad.v1.jobs.JobsApi Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nomad-api Show documentation
Show all versions of nomad-api Show documentation
Java client for Nomad's HTTP API
The newest version!
package io.github.zanella.nomad.v1.jobs;
import io.github.zanella.nomad.v1.jobs.models.JobEvalResult;
import io.github.zanella.nomad.v1.jobs.models.JobSpec;
import io.github.zanella.nomad.v1.jobs.models.JobSummary;
import java.util.List;
import feign.Param;
import feign.RequestLine;
public interface JobsApi {
String jobsUrl = "/v1/jobs";
@RequestLine("GET " + jobsUrl)
List getJobs();
String jobsForRegionUrl = jobsUrl + "?region={region}";
@RequestLine("GET " + jobsForRegionUrl)
List getJobsForRegion(@Param("region") String region);
@RequestLine("POST " + jobsUrl)
JobEvalResult postJob(JobSpec jobSpec);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy