Package org.saidone.unrest.client
Class DictionaryServiceClient
java.lang.Object
org.saidone.unrest.client.DictionaryServiceClient
Client of the platform's dictionary service for model listings and qualified model lookups.
Each call sends the shared provider's Alfresco ticket and a per-call deadline. Unary calls retry once after UNAUTHENTICATED if the provider supplies a different ticket. The caller owns the channel and should share one TicketProvider across service clients.
-
Constructor Summary
ConstructorsConstructorDescriptionDictionaryServiceClient(io.grpc.Channel channel, TicketProvider tickets, Duration deadline) Creates this service client with shared authentication and a per-call deadline.DictionaryServiceClient(org.saidone.unrest.api.DictionaryServiceGrpc.DictionaryServiceBlockingStub stub, TicketProvider tickets, Duration deadline) Creates this service client with shared authentication and a per-call deadline. -
Method Summary
Modifier and TypeMethodDescriptionorg.saidone.unrest.api.ListModelsResponseLists all deployed models without expanding property definitions.org.saidone.unrest.api.ListModelsResponsegetAllModels(String model, boolean includeProperties) Lists deployed models, optionally filtered by model name or namespace prefix.org.saidone.unrest.api.ModelInfoLooks up one qualified model name, optionally expanding its declared properties.
-
Constructor Details
-
DictionaryServiceClient
Creates this service client with shared authentication and a per-call deadline.The caller retains ownership of the channel; closing an application should close its shared channel once.
- Parameters:
channel- shared gRPC channel; ownership remains with the callertickets- shared ticket provider, normally one AuthenticationServiceClientdeadline- per-call deadline applied to every RPC attempt
-
DictionaryServiceClient
public DictionaryServiceClient(org.saidone.unrest.api.DictionaryServiceGrpc.DictionaryServiceBlockingStub stub, TicketProvider tickets, Duration deadline) Creates this service client with shared authentication and a per-call deadline.The caller retains ownership of the channel; closing an application should close its shared channel once.
- Parameters:
stub- preconfigured stub for this repository servicetickets- shared ticket provider, normally one AuthenticationServiceClientdeadline- per-call deadline applied to every RPC attempt
-
-
Method Details
-
getAllModels
public org.saidone.unrest.api.ListModelsResponse getAllModels(String model, boolean includeProperties) Lists deployed models, optionally filtered by model name or namespace prefix.- Parameters:
model- model name or namespace prefix for listings; qualified model name for a single lookupincludeProperties- whether to expand directly declared properties; listings require a model filter- Returns:
- the matching model descriptions
-
getAllModels
public org.saidone.unrest.api.ListModelsResponse getAllModels()Lists all deployed models without expanding property definitions.- Returns:
- the matching model descriptions
-
getModel
Looks up one qualified model name, optionally expanding its declared properties.- Parameters:
model- model name or namespace prefix for listings; qualified model name for a single lookupincludeProperties- whether to expand directly declared properties; listings require a model filter- Returns:
- the requested model description
-