Package org.hyperledger.fabric.sdk
Class ProposalResponse
- java.lang.Object
-
- org.hyperledger.fabric.sdk.ChaincodeResponse
-
- org.hyperledger.fabric.sdk.ProposalResponse
-
public class ProposalResponse extends ChaincodeResponse
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.hyperledger.fabric.sdk.ChaincodeResponse
ChaincodeResponse.Status
-
-
Field Summary
-
Fields inherited from class org.hyperledger.fabric.sdk.ChaincodeResponse
statusReturnCode
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getChaincodeActionResponsePayload()ChaincodeActionResponsePayload is the result of the executing chaincode.TxReadWriteSetInfogetChaincodeActionResponseReadWriteSetInfo()getChaincodeActionResponseReadWriteSetInfo get this proposals read write set.intgetChaincodeActionResponseStatus()getChaincodeActionResponseStatus returns the what chaincode executions set as the return status.ChaincodeIDgetChaincodeID()Chaincode ID that was executed.PeergetPeer()The peer this proposal was created on.org.hyperledger.fabric.protos.peer.FabricProposal.ProposalgetProposal()org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsegetProposalResponse()Get response to the proposal returned by the peer.booleanisVerified()voidsetProposal(org.hyperledger.fabric.protos.peer.FabricProposal.SignedProposal signedProposal)voidsetProposalResponse(org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponse proposalResponse)-
Methods inherited from class org.hyperledger.fabric.sdk.ChaincodeResponse
getMessage, getStatus, getTransactionID, isInvalid
-
-
-
-
Method Detail
-
isVerified
public boolean isVerified()
-
getProposal
public org.hyperledger.fabric.protos.peer.FabricProposal.Proposal getProposal()
-
setProposal
public void setProposal(org.hyperledger.fabric.protos.peer.FabricProposal.SignedProposal signedProposal) throws ProposalException- Throws:
ProposalException
-
getProposalResponse
public org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponse getProposalResponse()
Get response to the proposal returned by the peer.- Returns:
- peer response.
-
setProposalResponse
public void setProposalResponse(org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponse proposalResponse)
-
getChaincodeID
public ChaincodeID getChaincodeID() throws InvalidArgumentException
Chaincode ID that was executed.- Returns:
- See
ChaincodeID - Throws:
InvalidArgumentException
-
getChaincodeActionResponsePayload
public byte[] getChaincodeActionResponsePayload() throws InvalidArgumentExceptionChaincodeActionResponsePayload is the result of the executing chaincode.- Returns:
- the result of the executing chaincode.
- Throws:
InvalidArgumentException
-
getChaincodeActionResponseStatus
public int getChaincodeActionResponseStatus() throws InvalidArgumentExceptiongetChaincodeActionResponseStatus returns the what chaincode executions set as the return status.- Returns:
- status code.
- Throws:
InvalidArgumentException
-
getChaincodeActionResponseReadWriteSetInfo
public TxReadWriteSetInfo getChaincodeActionResponseReadWriteSetInfo() throws InvalidArgumentException
getChaincodeActionResponseReadWriteSetInfo get this proposals read write set.- Returns:
- The read write set. See
TxReadWriteSetInfo - Throws:
InvalidArgumentException
-
-