Class ServiceRegistryClient
java.lang.Object
com.netflix.conductor.client.http.ServiceRegistryClient
Client for the Service Registry API
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a default service registry clientServiceRegistryClient(ConductorClient client) ServiceRegistryClient(ConductorClient client, ConductorClientConfiguration config) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOrUpdateService(ServiceRegistry serviceRegistry) Add or update a service registry entryvoidaddOrUpdateServiceMethod(String registryName, ServiceMethod method) Add or update a service methodcloseCircuitBreaker(String name) Close the circuit breaker for a servicevoiddeleteProto(String registryName, String filename) Delete a proto fileDiscover methods for a servicegetAllProtos(String registryName) Get all protos for a registryGet the circuit breaker status for a servicebyte[]getProtoData(String registryName, String filename) Get proto data for a serviceGet all registered servicesgetService(String name) Get a specific service by nameopenCircuitBreaker(String name) Open the circuit breaker for a servicevoidremoveMethod(String registryName, String serviceName, String method, String methodType) Remove a method from a servicevoidremoveService(String name) Remove a service from the registryvoidsetProtoData(String registryName, String filename, byte[] data) Set proto data for a servicevoidsetRootURI(String rootUri) Deprecated.
-
Constructor Details
-
ServiceRegistryClient
public ServiceRegistryClient()Creates a default service registry client -
ServiceRegistryClient
-
ServiceRegistryClient
-
-
Method Details
-
setRootURI
Deprecated.Kept only for backwards compatibility- Parameters:
rootUri- basePath for the ApiClient
-
getRegisteredServices
Get all registered services- Returns:
- List of registered services
-
getService
Get a specific service by name- Parameters:
name- The name of the service to retrieve- Returns:
- ServiceRegistry object for the specified service
-
addOrUpdateService
Add or update a service registry entry- Parameters:
serviceRegistry- The service registry to add or update
-
removeService
Remove a service from the registry- Parameters:
name- The name of the service to remove
-
openCircuitBreaker
Open the circuit breaker for a service- Parameters:
name- The name of the service- Returns:
- Circuit breaker transition response
-
closeCircuitBreaker
Close the circuit breaker for a service- Parameters:
name- The name of the service- Returns:
- Circuit breaker transition response
-
getCircuitBreakerStatus
Get the circuit breaker status for a service- Parameters:
name- The name of the service- Returns:
- Circuit breaker transition response with status
-
addOrUpdateServiceMethod
Add or update a service method- Parameters:
registryName- The name of the registrymethod- The service method to add or update
-
removeMethod
Remove a method from a service- Parameters:
registryName- The name of the registryserviceName- The name of the servicemethod- The method namemethodType- The method type
-
getProtoData
Get proto data for a service- Parameters:
registryName- The name of the registryfilename- The proto filename- Returns:
- The proto data as byte array
-
setProtoData
Set proto data for a service- Parameters:
registryName- The name of the registryfilename- The proto filenamedata- The proto data as byte array
-
deleteProto
Delete a proto file- Parameters:
registryName- The name of the registryfilename- The proto filename to delete
-
getAllProtos
Get all protos for a registry- Parameters:
registryName- The name of the registry- Returns:
- List of proto registry entries
-
discover
Discover methods for a service- Parameters:
name- The name of the servicecreate- Whether to create discovered methods- Returns:
- List of discovered service methods
-