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)
                             throws java.io.IOException
        configure and init server.
        Parameters:
        chaincodeBase - - chaincode implementation (invoke, init)
        chaincodeServerProperties - - setting for grpc server
        Throws:
        java.io.IOException
    • Method Detail

      • start

        public void start()
                   throws java.io.IOException,
                          java.lang.InterruptedException
        run external chaincode server.
        Specified by:
        start in interface ChaincodeServer
        Throws:
        java.io.IOException - 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