Class BasicGrpcControllerV1

java.lang.Object
org.pipservices4.grpc.controllers.GrpcController
com.service.basic.controllers.version1.BasicGrpcControllerV1
All Implemented Interfaces:
org.pipservices4.components.config.IConfigurable, org.pipservices4.components.refer.IReferenceable, org.pipservices4.components.refer.IUnreferenceable, org.pipservices4.components.run.IClosable, org.pipservices4.components.run.IOpenable, org.pipservices4.grpc.controllers.IRegisterable

public class BasicGrpcControllerV1 extends org.pipservices4.grpc.controllers.GrpcController
Controller that receives remove calls via GRPC protocol.
  • Field Summary

    Fields inherited from class org.pipservices4.grpc.controllers.GrpcController

    _counters, _dependencyResolver, _endpoint, _logger, _tracer
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of this service.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    doSomething(Query request, io.grpc.stub.StreamObserver<ResponseV1> responseObserver)
    Service command method that define the operation.
    void
    Registers all service routes in Google Function.
    void
    setReferences(org.pipservices4.components.refer.IReferences references)
    Sets references to dependent components.

    Methods inherited from class org.pipservices4.grpc.controllers.GrpcController

    close, configure, instrument, isOpen, open, registerInterceptor, registerMethod, unsetReferences

    Methods inherited from class java.lang.Object

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

    • BasicGrpcControllerV1

      public BasicGrpcControllerV1()
      Creates an instance of this service.
  • Method Details

    • setReferences

      public void setReferences(org.pipservices4.components.refer.IReferences references) throws org.pipservices4.components.refer.ReferenceException, org.pipservices4.commons.errors.ConfigException
      Sets references to dependent components.
      Specified by:
      setReferences in interface org.pipservices4.components.refer.IReferenceable
      Overrides:
      setReferences in class org.pipservices4.grpc.controllers.GrpcController
      Parameters:
      references - references to locate the component dependencies.
      Throws:
      org.pipservices4.components.refer.ReferenceException
      org.pipservices4.commons.errors.ConfigException
    • doSomething

      public void doSomething(Query request, io.grpc.stub.StreamObserver<ResponseV1> responseObserver)
      Service command method that define the operation.
      Parameters:
      request - gRPC request call object.
      responseObserver - gRPC response object.
    • register

      public void register()
      Registers all service routes in Google Function.
      Specified by:
      register in interface org.pipservices4.grpc.controllers.IRegisterable
      Specified by:
      register in class org.pipservices4.grpc.controllers.GrpcController