Class ServiceDiscoveryHandler
java.lang.Object
ai.pipestream.registration.handlers.ServiceDiscoveryHandler
Handles service discovery and lookup operations.
Updated to use the new VerbNoun proto naming convention.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.smallrye.mutiny.Uni<GetModuleResponse> getModuleById(String moduleId) Get module by IDio.smallrye.mutiny.Uni<GetModuleResponse> getModuleByName(String moduleName) Get module by nameio.smallrye.mutiny.Uni<GetServiceResponse> getServiceById(String serviceId) Get service by IDio.smallrye.mutiny.Uni<GetServiceResponse> getServiceByName(String serviceName) Get service by name (returns first healthy instance)io.smallrye.mutiny.Uni<ListModulesResponse> List all modulesio.smallrye.mutiny.Uni<ListServicesResponse> List all services (non-modules)io.smallrye.mutiny.Uni<ResolveServiceResponse> resolveService(ResolveServiceRequest request) Resolve service to find the best available instanceio.smallrye.mutiny.Multi<WatchModulesResponse> Watch for real-time updates to the list of all registered modules.io.smallrye.mutiny.Multi<WatchServicesResponse> Watch for real-time updates to the list of all healthy services.
-
Constructor Details
-
ServiceDiscoveryHandler
public ServiceDiscoveryHandler()
-
-
Method Details
-
listServices
List all services (non-modules) -
listModules
List all modules -
getServiceByName
Get service by name (returns first healthy instance) -
getServiceById
Get service by ID -
getModuleByName
Get module by name -
getModuleById
Get module by ID -
resolveService
Resolve service to find the best available instance -
watchServices
Watch for real-time updates to the list of all healthy services. Sends an initial list immediately, then sends updates whenever services change. -
watchModules
Watch for real-time updates to the list of all registered modules. Sends an initial list immediately, then sends updates whenever modules change.
-