Package ai.pipestream.registration.grpc
Class PlatformRegistrationService
java.lang.Object
ai.pipestream.platform.registration.v1.MutinyPlatformRegistrationServiceGrpc.PlatformRegistrationServiceImplBase
ai.pipestream.registration.grpc.PlatformRegistrationService
- All Implemented Interfaces:
io.grpc.BindableService
public class PlatformRegistrationService
extends MutinyPlatformRegistrationServiceGrpc.PlatformRegistrationServiceImplBase
Main platform registration service implementation.
Updated to use the unified Register/Unregister API from the new proto definition.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.smallrye.mutiny.Uni<GetModuleResponse> getModule(GetModuleRequest request) Get specific module details by name or Consul service ID.io.smallrye.mutiny.Uni<GetModuleSchemaResponse> getModuleSchema(GetModuleSchemaRequest request) Get module schema from Apicurio Registry.io.smallrye.mutiny.Uni<GetModuleSchemaVersionsResponse> List all available schema versions for a module.io.smallrye.mutiny.Uni<GetServiceResponse> getService(GetServiceRequest request) Get specific service details by name or Consul service ID.io.smallrye.mutiny.Uni<ListModulesResponse> listModules(ListModulesRequest request) List all registered modules with schema and capability information.io.smallrye.mutiny.Uni<ListServicesResponse> listServices(ListServicesRequest request) List all registered services with health status and metadata.io.smallrye.mutiny.Multi<RegisterResponse> register(RegisterRequest request) Unified registration method - routes based on ServiceType.io.smallrye.mutiny.Uni<ResolveServiceResponse> resolveService(ResolveServiceRequest request) Resolve service endpoint for dynamic routing.io.smallrye.mutiny.Uni<UnregisterResponse> unregister(UnregisterRequest request) Unified unregistration method.io.smallrye.mutiny.Multi<WatchModulesResponse> watchModules(WatchModulesRequest request) Watch for real-time updates to the list of all registered modules.io.smallrye.mutiny.Multi<WatchServicesResponse> watchServices(WatchServicesRequest request) Watch for real-time updates to the list of all healthy services.Methods inherited from class ai.pipestream.platform.registration.v1.MutinyPlatformRegistrationServiceGrpc.PlatformRegistrationServiceImplBase
bindService, withCompression
-
Constructor Details
-
PlatformRegistrationService
public PlatformRegistrationService()
-
-
Method Details
-
register
Unified registration method - routes based on ServiceType. Replaces the old separate registerService/registerModule methods.- Overrides:
registerin classMutinyPlatformRegistrationServiceGrpc.PlatformRegistrationServiceImplBase
-
unregister
Unified unregistration method. Replaces the old separate unregisterService/unregisterModule methods. Routes to appropriate handler based on looking up the service in Consul. For simplicity, we try service unregistration first.- Overrides:
unregisterin classMutinyPlatformRegistrationServiceGrpc.PlatformRegistrationServiceImplBase
-
listServices
Description copied from class:MutinyPlatformRegistrationServiceGrpc.PlatformRegistrationServiceImplBaseList all registered services with health status and metadata.
-
listModules
Description copied from class:MutinyPlatformRegistrationServiceGrpc.PlatformRegistrationServiceImplBaseList all registered modules with schema and capability information.
- Overrides:
listModulesin classMutinyPlatformRegistrationServiceGrpc.PlatformRegistrationServiceImplBase
-
getService
Description copied from class:MutinyPlatformRegistrationServiceGrpc.PlatformRegistrationServiceImplBaseGet specific service details by name or Consul service ID.
- Overrides:
getServicein classMutinyPlatformRegistrationServiceGrpc.PlatformRegistrationServiceImplBase
-
getModule
Description copied from class:MutinyPlatformRegistrationServiceGrpc.PlatformRegistrationServiceImplBaseGet specific module details by name or Consul service ID.
- Overrides:
getModulein classMutinyPlatformRegistrationServiceGrpc.PlatformRegistrationServiceImplBase
-
resolveService
Description copied from class:MutinyPlatformRegistrationServiceGrpc.PlatformRegistrationServiceImplBaseResolve service endpoint for dynamic routing. Returns the best available instance of a service based on health and load. Supports preference criteria like local instances or required capabilities.
-
watchServices
Description copied from class:MutinyPlatformRegistrationServiceGrpc.PlatformRegistrationServiceImplBaseWatch for real-time updates to the list of all healthy services. The server will send an initial list, and then send a new full list whenever any service is registered, unregistered, or changes its health status.
-
watchModules
Description copied from class:MutinyPlatformRegistrationServiceGrpc.PlatformRegistrationServiceImplBaseWatch for real-time updates to the list of all registered modules. The server will send an initial list, and then send a new full list whenever any module is registered, unregistered, or changes its health status.
-
getModuleSchema
public io.smallrye.mutiny.Uni<GetModuleSchemaResponse> getModuleSchema(GetModuleSchemaRequest request) Description copied from class:MutinyPlatformRegistrationServiceGrpc.PlatformRegistrationServiceImplBaseGet module schema from Apicurio Registry. Retrieves either a specific version or the latest schema for a module. Returns JSON Schema used for validating module configuration.
-
getModuleSchemaVersions
public io.smallrye.mutiny.Uni<GetModuleSchemaVersionsResponse> getModuleSchemaVersions(GetModuleSchemaVersionsRequest request) Description copied from class:MutinyPlatformRegistrationServiceGrpc.PlatformRegistrationServiceImplBaseList all available schema versions for a module. Provides detailed version metadata from Apicurio Registry including creation timestamps and version-specific descriptions.
-