Package org.hyperledger.fabric.sdk
Class InstallProposalRequest
- java.lang.Object
-
- org.hyperledger.fabric.sdk.TransactionRequest
-
- org.hyperledger.fabric.sdk.InstallProposalRequest
-
public class InstallProposalRequest extends TransactionRequest
InstallProposalRequest.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.hyperledger.fabric.sdk.TransactionRequest
TransactionRequest.Type
-
-
Field Summary
-
Fields inherited from class org.hyperledger.fabric.sdk.TransactionRequest
argBytes, args, chaincodeCollectionConfiguration, chaincodeLanguage, chaincodeName, chaincodePath, chaincodeVersion, fcn, proposalWaitTime, transientMap
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.InputStreamgetChaincodeInputStream()java.io.FilegetChaincodeSourceLocation()voidsetChaincodeInputStream(java.io.InputStream chaincodeInputStream)Chaincode input stream containing the actual chaincode.voidsetChaincodeMetaInfLocation(java.io.File chaincodeMetaInfLocation)Set the META-INF directory to be used for packaging chaincode.voidsetChaincodeSourceLocation(java.io.File chaincodeSourceLocation)The location of the chaincode.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from class org.hyperledger.fabric.sdk.TransactionRequest
doVerify, getArgBytes, getArgs, getChaincodeCollectionConfiguration, getChaincodeEndorsementPolicy, getChaincodeID, getChaincodeLanguage, getChaincodeName, getChaincodePath, getChaincodeVersion, getFcn, getProposalWaitTime, getTransientMap, isSubmitted, noChannelID, setArgBytes, setArgBytes, setArgs, setArgs, setArgs, setChaincodeCollectionConfiguration, setChaincodeEndorsementPolicy, setChaincodeID, setChaincodeLanguage, setChaincodeName, setChaincodePath, setChaincodeVersion, setFcn, setProposalWaitTime, setUserContext
-
-
-
-
Method Detail
-
setChaincodeMetaInfLocation
public void setChaincodeMetaInfLocation(java.io.File chaincodeMetaInfLocation) throws InvalidArgumentExceptionSet the META-INF directory to be used for packaging chaincode. Only applies if source locationchaincodeSourceLocationfor the chaincode is set.- Parameters:
chaincodeMetaInfLocation- The directory where the "META-INF" directory is located..- Throws:
InvalidArgumentException- See Also:
- Fabric Read the docs couchdb as a state database
-
getChaincodeInputStream
public java.io.InputStream getChaincodeInputStream()
-
setChaincodeInputStream
public void setChaincodeInputStream(java.io.InputStream chaincodeInputStream) throws InvalidArgumentExceptionChaincode input stream containing the actual chaincode. Only format supported is a tar zip compressed input of the source. Only input stream or source location maybe used at the same time. The contents of the stream are not validated or inspected by the SDK.- Parameters:
chaincodeInputStream-- Throws:
InvalidArgumentException
-
getChaincodeSourceLocation
public java.io.File getChaincodeSourceLocation()
-
setChaincodeSourceLocation
public void setChaincodeSourceLocation(java.io.File chaincodeSourceLocation) throws InvalidArgumentExceptionThe location of the chaincode. Chaincode input stream and source location can not both be set.- Parameters:
chaincodeSourceLocation-- Throws:
InvalidArgumentException
-
-