![JAR search and dependency download from the Maven repository](/logo.png)
com.ecwid.consul.v1.catalog.CatalogClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of consul-api Show documentation
Show all versions of consul-api Show documentation
Java client for Consul HTTP API (http://consul.io)
The newest version!
package com.ecwid.consul.v1.catalog;
import com.ecwid.consul.v1.QueryParams;
import com.ecwid.consul.v1.Response;
import com.ecwid.consul.v1.catalog.model.CatalogDeregistration;
import com.ecwid.consul.v1.catalog.model.CatalogNode;
import com.ecwid.consul.v1.catalog.model.CatalogRegistration;
import com.ecwid.consul.v1.catalog.model.Node;
import java.util.List;
import java.util.Map;
/**
* @author Vasily Vasilkov ([email protected])
*/
public interface CatalogClient {
public Response catalogRegister(CatalogRegistration catalogRegistration);
public Response catalogRegister(CatalogRegistration catalogRegistration, String token);
// -------------------------------------------------------------------------------
public Response catalogDeregister(CatalogDeregistration catalogDeregistration);
public Response catalogDeregister(CatalogDeregistration catalogDeregistration, String token);
// -------------------------------------------------------------------------------
public Response> getCatalogDatacenters();
// -------------------------------------------------------------------------------
/**
* @deprecated This method will be removed in consul-api 2.0. Use {@link #getCatalogNodes(CatalogNodesRequest catalogNodesRequest)}
*/
@Deprecated
public Response> getCatalogNodes(QueryParams queryParams);
public Response> getCatalogNodes(CatalogNodesRequest catalogNodesRequest);
// -------------------------------------------------------------------------------
/**
* @deprecated This method will be removed in consul-api 2.0. Use {@link #getCatalogServices(CatalogServicesRequest catalogServicesRequest)}
*/
@Deprecated
public Response
© 2015 - 2025 Weber Informatics LLC | Privacy Policy