com.ecwid.consul.v1.catalog
Class CatalogConsulClient

java.lang.Object
  extended by com.ecwid.consul.v1.catalog.CatalogConsulClient
All Implemented Interfaces:
CatalogClient

public final class CatalogConsulClient
extends java.lang.Object
implements CatalogClient


Constructor Summary
CatalogConsulClient()
           
CatalogConsulClient(ConsulRawClient rawClient)
           
CatalogConsulClient(java.lang.String agentHost)
           
CatalogConsulClient(java.lang.String agentHost, int agentPort)
           
CatalogConsulClient(java.lang.String agentHost, int agentPort, TLSConfig tlsConfig)
           
CatalogConsulClient(java.lang.String agentHost, TLSConfig tlsConfig)
           
CatalogConsulClient(TLSConfig tlsConfig)
           
 
Method Summary
 Response<java.lang.Void> catalogDeregister(CatalogDeregistration catalogDeregistration)
           
 Response<java.lang.Void> catalogRegister(CatalogRegistration catalogRegistration)
           
 Response<java.util.List<java.lang.String>> getCatalogDatacenters()
           
 Response<CatalogNode> getCatalogNode(java.lang.String nodeName, QueryParams queryParams)
           
 Response<java.util.List<Node>> getCatalogNodes(QueryParams queryParams)
           
 Response<java.util.List<CatalogService>> getCatalogService(java.lang.String serviceName, QueryParams queryParams)
           
 Response<java.util.List<CatalogService>> getCatalogService(java.lang.String serviceName, QueryParams queryParams, java.lang.String token)
           
 Response<java.util.List<CatalogService>> getCatalogService(java.lang.String serviceName, java.lang.String tag, QueryParams queryParams)
           
 Response<java.util.List<CatalogService>> getCatalogService(java.lang.String serviceName, java.lang.String tag, QueryParams queryParams, java.lang.String token)
           
 Response<java.util.Map<java.lang.String,java.util.List<java.lang.String>>> getCatalogServices(QueryParams queryParams)
           
 Response<java.util.Map<java.lang.String,java.util.List<java.lang.String>>> getCatalogServices(QueryParams queryParams, java.lang.String token)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CatalogConsulClient

public CatalogConsulClient(ConsulRawClient rawClient)

CatalogConsulClient

public CatalogConsulClient()

CatalogConsulClient

public CatalogConsulClient(TLSConfig tlsConfig)

CatalogConsulClient

public CatalogConsulClient(java.lang.String agentHost)

CatalogConsulClient

public CatalogConsulClient(java.lang.String agentHost,
                           TLSConfig tlsConfig)

CatalogConsulClient

public CatalogConsulClient(java.lang.String agentHost,
                           int agentPort)

CatalogConsulClient

public CatalogConsulClient(java.lang.String agentHost,
                           int agentPort,
                           TLSConfig tlsConfig)
Method Detail

catalogRegister

public Response<java.lang.Void> catalogRegister(CatalogRegistration catalogRegistration)
Specified by:
catalogRegister in interface CatalogClient

catalogDeregister

public Response<java.lang.Void> catalogDeregister(CatalogDeregistration catalogDeregistration)
Specified by:
catalogDeregister in interface CatalogClient

getCatalogDatacenters

public Response<java.util.List<java.lang.String>> getCatalogDatacenters()
Specified by:
getCatalogDatacenters in interface CatalogClient

getCatalogNodes

public Response<java.util.List<Node>> getCatalogNodes(QueryParams queryParams)
Specified by:
getCatalogNodes in interface CatalogClient

getCatalogServices

public Response<java.util.Map<java.lang.String,java.util.List<java.lang.String>>> getCatalogServices(QueryParams queryParams)
Specified by:
getCatalogServices in interface CatalogClient

getCatalogServices

public Response<java.util.Map<java.lang.String,java.util.List<java.lang.String>>> getCatalogServices(QueryParams queryParams,
                                                                                                     java.lang.String token)
Specified by:
getCatalogServices in interface CatalogClient

getCatalogService

public Response<java.util.List<CatalogService>> getCatalogService(java.lang.String serviceName,
                                                                  QueryParams queryParams)
Specified by:
getCatalogService in interface CatalogClient

getCatalogService

public Response<java.util.List<CatalogService>> getCatalogService(java.lang.String serviceName,
                                                                  QueryParams queryParams,
                                                                  java.lang.String token)
Specified by:
getCatalogService in interface CatalogClient

getCatalogService

public Response<java.util.List<CatalogService>> getCatalogService(java.lang.String serviceName,
                                                                  java.lang.String tag,
                                                                  QueryParams queryParams)
Specified by:
getCatalogService in interface CatalogClient

getCatalogService

public Response<java.util.List<CatalogService>> getCatalogService(java.lang.String serviceName,
                                                                  java.lang.String tag,
                                                                  QueryParams queryParams,
                                                                  java.lang.String token)
Specified by:
getCatalogService in interface CatalogClient

getCatalogNode

public Response<CatalogNode> getCatalogNode(java.lang.String nodeName,
                                            QueryParams queryParams)
Specified by:
getCatalogNode in interface CatalogClient