Class ServiceRegistryClient

java.lang.Object
com.netflix.conductor.client.http.ServiceRegistryClient

public final class ServiceRegistryClient extends Object
Client for the Service Registry API
  • Constructor Details

  • Method Details

    • setRootURI

      @Deprecated public void setRootURI(String rootUri)
      Deprecated.
      Kept only for backwards compatibility
      Parameters:
      rootUri - basePath for the ApiClient
    • getRegisteredServices

      public List<ServiceRegistry> getRegisteredServices()
      Get all registered services
      Returns:
      List of registered services
    • getService

      public ServiceRegistry getService(String name)
      Get a specific service by name
      Parameters:
      name - The name of the service to retrieve
      Returns:
      ServiceRegistry object for the specified service
    • addOrUpdateService

      public void addOrUpdateService(ServiceRegistry serviceRegistry)
      Add or update a service registry entry
      Parameters:
      serviceRegistry - The service registry to add or update
    • removeService

      public void removeService(String name)
      Remove a service from the registry
      Parameters:
      name - The name of the service to remove
    • openCircuitBreaker

      public CircuitBreakerTransitionResponse openCircuitBreaker(String name)
      Open the circuit breaker for a service
      Parameters:
      name - The name of the service
      Returns:
      Circuit breaker transition response
    • closeCircuitBreaker

      public CircuitBreakerTransitionResponse closeCircuitBreaker(String name)
      Close the circuit breaker for a service
      Parameters:
      name - The name of the service
      Returns:
      Circuit breaker transition response
    • getCircuitBreakerStatus

      public CircuitBreakerTransitionResponse getCircuitBreakerStatus(String name)
      Get the circuit breaker status for a service
      Parameters:
      name - The name of the service
      Returns:
      Circuit breaker transition response with status
    • addOrUpdateServiceMethod

      public void addOrUpdateServiceMethod(String registryName, ServiceMethod method)
      Add or update a service method
      Parameters:
      registryName - The name of the registry
      method - The service method to add or update
    • removeMethod

      public void removeMethod(String registryName, String serviceName, String method, String methodType)
      Remove a method from a service
      Parameters:
      registryName - The name of the registry
      serviceName - The name of the service
      method - The method name
      methodType - The method type
    • getProtoData

      public byte[] getProtoData(String registryName, String filename)
      Get proto data for a service
      Parameters:
      registryName - The name of the registry
      filename - The proto filename
      Returns:
      The proto data as byte array
    • setProtoData

      public void setProtoData(String registryName, String filename, byte[] data)
      Set proto data for a service
      Parameters:
      registryName - The name of the registry
      filename - The proto filename
      data - The proto data as byte array
    • deleteProto

      public void deleteProto(String registryName, String filename)
      Delete a proto file
      Parameters:
      registryName - The name of the registry
      filename - The proto filename to delete
    • getAllProtos

      public List<ProtoRegistryEntry> getAllProtos(String registryName)
      Get all protos for a registry
      Parameters:
      registryName - The name of the registry
      Returns:
      List of proto registry entries
    • discover

      public List<ServiceMethod> discover(String name, boolean create)
      Discover methods for a service
      Parameters:
      name - The name of the service
      create - Whether to create discovered methods
      Returns:
      List of discovered service methods