All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ecwid.consul.v1.catalog.CatalogClient Maven / Gradle / Ivy

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>> getCatalogServices(QueryParams queryParams);

	/**
	 * @deprecated This method will be removed in consul-api 2.0. Use {@link #getCatalogServices(CatalogServicesRequest catalogServicesRequest)}
	 */
	@Deprecated
	public Response>> getCatalogServices(QueryParams queryParams, String token);

	public Response>> getCatalogServices(CatalogServicesRequest catalogServicesRequest);

	// -------------------------------------------------------------------------------

	/**
	 * @deprecated This method will be removed in consul-api 2.0. Use {@link #getCatalogService(String serviceName, CatalogServiceRequest catalogServiceRequest)}
	 */
	@Deprecated
	public Response> getCatalogService(String serviceName, QueryParams queryParams);

	/**
	 * @deprecated This method will be removed in consul-api 2.0. Use {@link #getCatalogService(String serviceName, CatalogServiceRequest catalogServiceRequest)}
	 */
	@Deprecated
	public Response> getCatalogService(String serviceName, String tag, QueryParams queryParams);

	/**
	 * @deprecated This method will be removed in consul-api 2.0. Use {@link #getCatalogService(String serviceName, CatalogServiceRequest catalogServiceRequest)}
	 */
	@Deprecated
	public Response> getCatalogService(String serviceName, QueryParams queryParams, String token);

	/**
	 * @deprecated This method will be removed in consul-api 2.0. Use {@link #getCatalogService(String serviceName, CatalogServiceRequest catalogServiceRequest)}
	 */
	@Deprecated
	public Response> getCatalogService(String serviceName, String tag, QueryParams queryParams, String token);

	/**
	 * @deprecated This method will be removed in consul-api 2.0. Use {@link #getCatalogService(String serviceName, CatalogServiceRequest catalogServiceRequest)}
	 */
	@Deprecated
	public Response> getCatalogService(String serviceName, String[] tags, QueryParams queryParams, String token);

	public Response> getCatalogService(String serviceName, CatalogServiceRequest catalogServiceRequest);

	// -------------------------------------------------------------------------------

	public Response getCatalogNode(String nodeName, QueryParams queryParams);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy