Package org.hyperledger.fabric.sdk
Class LifecycleInstallChaincodeRequest
java.lang.Object
org.hyperledger.fabric.sdk.LifecycleInstallChaincodeRequest
LifecycleInstallChaincodeRequest parameters for installing chaincode with lifecycle
see also
HFClient.sendLifecycleInstallChaincodeRequest(LifecycleInstallChaincodeRequest, Collection)-
Method Summary
Modifier and TypeMethodDescriptionvoidsetLifecycleChaincodePackage(LifecycleChaincodePackage lifecycleChaincodePackage) Set the chaincode package that needs to be installed.voidsetProposalWaitTime(long proposalWaitTime) Sets the timeout for a single proposal request to endorser in milliseconds.voidsetUserContext(User userContext) Set the user context for this request.
-
Method Details
-
setLifecycleChaincodePackage
public void setLifecycleChaincodePackage(LifecycleChaincodePackage lifecycleChaincodePackage) throws InvalidArgumentException Set the chaincode package that needs to be installed.- Parameters:
lifecycleChaincodePackage- The chaincode to install seeLifecycleChaincodePackage- Throws:
InvalidArgumentException
-
setUserContext
Set the user context for this request. This context will override the user context set onHFClient.setUserContext(User)- Parameters:
userContext- The user context for this request used for signing.
-
setProposalWaitTime
public void setProposalWaitTime(long proposalWaitTime) Sets the timeout for a single proposal request to endorser in milliseconds.- Parameters:
proposalWaitTime- the timeout for a single proposal request to endorser in milliseconds
-