Class NettyChaincodeServer

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void start()
      run external chaincode server.
      void stop()
      shutdown now grpc server.
      • Methods inherited from class java.lang.Object

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

      • NettyChaincodeServer

        public NettyChaincodeServer​(ChaincodeBase chaincodeBase,
                                    ChaincodeServerProperties chaincodeServerProperties)
        configure and init server.
        chaincodeBase - - chaincode implementation (invoke, init)
        chaincodeServerProperties - - setting for grpc server
    • Method Detail

      • start

        public void start()
        run external chaincode server.
        Specified by:
        start in interface ChaincodeServer
        Throws: - problem while start grpc server
        java.lang.InterruptedException - thrown when block and awaiting shutdown gprc server
      • stop

        public void stop()
        shutdown now grpc server.
        Specified by:
        stop in interface ChaincodeServer