Package de.ubs.xdm3

Class GeneratorSourceService

java.lang.Object
de.ubs.xdm3.generator.source.api.GeneratorSourceServiceGrpc.GeneratorSourceServiceImplBase
de.ubs.xdm3.GeneratorSourceService
All Implemented Interfaces:
de.ubs.xdm3.generator.source.api.GeneratorSourceServiceGrpc.AsyncService, io.grpc.BindableService

@GrpcService public class GeneratorSourceService extends de.ubs.xdm3.generator.source.api.GeneratorSourceServiceGrpc.GeneratorSourceServiceImplBase
gRPC service implementation for the Generator Source Service. This class handles requests for generating data based on entity definitions and scenarios.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs a new GeneratorSourceService with the specified ChatClientService.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    generate(de.ubs.xdm3.generator.source.api.GeneratorSource.Request request, io.grpc.stub.StreamObserver<de.ubs.xdm3.generator.source.api.GeneratorSource.Response> responseObserver)
    Handles the generate request from the client.

    Methods inherited from class de.ubs.xdm3.generator.source.api.GeneratorSourceServiceGrpc.GeneratorSourceServiceImplBase

    bindService

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GeneratorSourceService

      @Autowired public GeneratorSourceService(@Autowired(required=false) ChatClientService chatClientService)
      Constructs a new GeneratorSourceService with the specified ChatClientService.
      Parameters:
      chatClientService - the chat client service to use for generating entity instances
  • Method Details

    • generate

      public void generate(de.ubs.xdm3.generator.source.api.GeneratorSource.Request request, io.grpc.stub.StreamObserver<de.ubs.xdm3.generator.source.api.GeneratorSource.Response> responseObserver)
      Handles the generate request from the client. This method converts the request to the internal model, generates the data, and sends the response back to the client.
      Parameters:
      request - the generate request from the client
      responseObserver - the response observer to send the response back to the client