Package org.hyperledger.fabric.shim
Class NettyChaincodeServer
- java.lang.Object
 - 
- org.hyperledger.fabric.shim.NettyChaincodeServer
 
 
- 
- All Implemented Interfaces:
 ChaincodeServer
public class NettyChaincodeServer extends java.lang.Object implements ChaincodeServer
 
- 
- 
Constructor Summary
Constructors Constructor Description NettyChaincodeServer(ChaincodeBase chaincodeBase, ChaincodeServerProperties chaincodeServerProperties)configure and init server. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidstart()run external chaincode server.voidstop()shutdown now grpc server. 
 - 
 
- 
- 
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.InterruptedExceptionrun external chaincode server.- Specified by:
 startin interfaceChaincodeServer- Throws:
 java.io.IOException- problem while start grpc serverjava.lang.InterruptedException- thrown when block and awaiting shutdown gprc server
 
- 
stop
public void stop()
shutdown now grpc server.- Specified by:
 stopin interfaceChaincodeServer
 
 - 
 
 -