io.github.zanella.nomad.v1.status.StatusApi 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.status;
import java.util.List;
import feign.Param;
import feign.RequestLine;
public interface StatusApi {
String leaderUrl = "/v1/status/leader";
@RequestLine("GET " + leaderUrl)
String getLeader();
String leaderForRegionUrl = leaderUrl + "?region={region}";
@RequestLine("GET " + leaderForRegionUrl)
String getLeaderForRegion(@Param("region") String region);
String peersUrl = "/v1/status/peers";
@RequestLine("GET " + peersUrl)
List getPeers();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy