Package | Description |
---|---|
org.hyperledger.fabric.sdk |
Modifier and Type | Method and Description |
---|---|
Peer |
Channel.SDPeerAddition.addPeer(Channel.SDPeerAdditionInfo sdPeerAddition) |
Peer |
Channel.SDOPeerDefaultAddition.addPeer(Channel.SDPeerAdditionInfo sdPeerAddition) |
Peer |
ProposalResponse.getPeer()
The peer this proposal was created on.
|
Peer |
BlockEvent.getPeer()
The Peer that received this event.
|
Peer |
BlockEvent.TransactionEvent.getPeer()
The peer that received this event.
|
Peer |
HFClient.newPeer(String name,
String grpcURL)
newPeer create a new peer
|
Peer |
HFClient.newPeer(String name,
String grpcURL,
Properties properties)
newPeer create a new peer
|
Modifier and Type | Method and Description |
---|---|
Map<String,Peer> |
Channel.SDPeerAdditionInfo.getEndpointMap() |
Collection<Peer> |
Channel.getPeers()
Get the peers for this channel.
|
Collection<Peer> |
Channel.getPeers(EnumSet<Peer.PeerRole> roles)
Get the peers for this channel.
|
Collection<Peer> |
Channel.getPeersForOrganization(String mspid)
Get peers that belong to an organization from the organization's MSPID
These values may not be available till after the channel is initialized.
|
Modifier and Type | Method and Description |
---|---|
Channel |
Channel.addPeer(Peer peer)
Add a peer to the channel
|
Channel |
Channel.addPeer(Peer peer,
Channel.PeerOptions peerOptions)
Add a peer to the channel
|
Channel.NOfEvents |
Channel.NOfEvents.addPeers(Peer... peers)
Peers that need to see the transaction event to complete.
|
byte[] |
Channel.getChannelConfigurationBytes(User userContext,
Peer peer)
Get channel configuration from a specific peer
|
Channel.AnchorPeersConfigUpdateResult |
Channel.getConfigUpdateAnchorPeers(Peer peer,
User userContext,
Collection<String> peersToAdd,
Collection<String> peersToRemove)
Get a channel configuration update to add or remove peers.
|
Channel.PeerOptions |
Channel.getPeersOptions(Peer peer) |
Channel |
Channel.joinPeer(Orderer orderer,
Peer peer,
Channel.PeerOptions peerOptions)
Join peer to channel
|
Channel |
Channel.joinPeer(Peer peer)
Join the peer to the channel.
|
Channel |
Channel.joinPeer(Peer peer,
Channel.PeerOptions peerOptions) |
BlockInfo |
Channel.queryBlockByHash(Peer peer,
byte[] blockHash)
Query a peer in this channel for a Block by the block hash.
|
BlockInfo |
Channel.queryBlockByNumber(Peer peer,
long blockNumber)
Query a peer in this channel for a Block by the blockNumber
This method may not be thread safe if client context is changed!
|
BlockInfo |
Channel.queryBlockByNumber(Peer peer,
long blockNumber,
User userContext)
query a peer in this channel for a Block by the blockNumber
|
BlockInfo |
Channel.queryBlockByTransactionID(Peer peer,
String txID)
query a peer in this channel for a Block by a TransactionID contained in the block
This method may not be thread safe if client context is changed!
|
BlockInfo |
Channel.queryBlockByTransactionID(Peer peer,
String txID,
User userContext)
query a peer in this channel for a Block by a TransactionID contained in the block
|
BlockchainInfo |
Channel.queryBlockchainInfo(Peer peer)
query for chain information
This method may not be thread safe if client context is changed!
|
BlockchainInfo |
Channel.queryBlockchainInfo(Peer peer,
User userContext)
query for chain information
|
Set<String> |
HFClient.queryChannels(Peer peer)
Query the joined channels for peers
|
CollectionConfigPackage |
Channel.queryCollectionsConfig(String chaincodeName,
Peer peer,
User userContext)
Get information on the collections used by the chaincode.
|
List<org.hyperledger.fabric.protos.peer.Query.ChaincodeInfo> |
HFClient.queryInstalledChaincodes(Peer peer)
Deprecated.
|
List<org.hyperledger.fabric.protos.peer.Query.ChaincodeInfo> |
Channel.queryInstantiatedChaincodes(Peer peer)
Query peer for chaincode that has been instantiated
This method may not be thread safe if client context is changed!
|
List<org.hyperledger.fabric.protos.peer.Query.ChaincodeInfo> |
Channel.queryInstantiatedChaincodes(Peer peer,
User userContext)
Query peer for chaincode that has been instantiated
|
TransactionInfo |
Channel.queryTransactionByID(Peer peer,
String txID)
Query for a Fabric Transaction given its transactionID
This method may not be thread safe if client context is changed!
|
TransactionInfo |
Channel.queryTransactionByID(Peer peer,
String txID,
User userContext)
Query for a Fabric Transaction given its transactionID
|
void |
Channel.removePeer(Peer peer)
Removes the peer connection from the channel.
|
LifecycleApproveChaincodeDefinitionForMyOrgProposalResponse |
Channel.sendLifecycleApproveChaincodeDefinitionForMyOrgProposal(LifecycleApproveChaincodeDefinitionForMyOrgRequest lifecycleApproveChaincodeDefinitionForMyOrgRequest,
Peer peer)
Approve chaincode to be run on this peer's organization.
|
Modifier and Type | Method and Description |
---|---|
Channel.NOfEvents |
Channel.NOfEvents.addPeers(Collection<Peer> peers)
Peers that need to see the transaction event to complete.
|
Collection<LifecycleQueryChaincodeDefinitionProposalResponse> |
Channel.lifecycleQueryChaincodeDefinition(QueryLifecycleQueryChaincodeDefinitionRequest queryLifecycleQueryChaincodeDefinitionRequest,
Collection<Peer> peers)
lifecycleQueryChaincodeDefinition get definition of chaincode.
|
Collection<LifecycleQueryChaincodeDefinitionsProposalResponse> |
Channel.lifecycleQueryChaincodeDefinitions(LifecycleQueryChaincodeDefinitionsRequest proposalRequest,
Collection<Peer> peers)
Query namespaces.
|
BlockInfo |
Channel.queryBlockByHash(Collection<Peer> peers,
byte[] blockHash)
Query a peer in this channel for a Block by the block hash.
|
BlockInfo |
Channel.queryBlockByHash(Collection<Peer> peers,
byte[] blockHash,
User userContext)
Query a peer in this channel for a Block by the block hash.
|
BlockInfo |
Channel.queryBlockByNumber(Collection<Peer> peers,
long blockNumber)
query a peer in this channel for a Block by the blockNumber
This method may not be thread safe if client context is changed!
|
BlockInfo |
Channel.queryBlockByNumber(Collection<Peer> peers,
long blockNumber,
User userContext)
query a peer in this channel for a Block by the blockNumber
|
BlockInfo |
Channel.queryBlockByTransactionID(Collection<Peer> peers,
String txID)
query a peer in this channel for a Block by a TransactionID contained in the block
This method may not be thread safe if client context is changed!
|
BlockInfo |
Channel.queryBlockByTransactionID(Collection<Peer> peers,
String txID,
User userContext)
query a peer in this channel for a Block by a TransactionID contained in the block
|
BlockchainInfo |
Channel.queryBlockchainInfo(Collection<Peer> peers,
User userContext)
query for chain information
|
Collection<ProposalResponse> |
Channel.queryByChaincode(QueryByChaincodeRequest queryByChaincodeRequest,
Collection<Peer> peers)
Send Query proposal
|
TransactionInfo |
Channel.queryTransactionByID(Collection<Peer> peers,
String txID,
User userContext)
Query for a Fabric Transaction given its transactionID
|
Collection<ProposalResponse> |
HFClient.sendInstallProposal(InstallProposalRequest installProposalRequest,
Collection<Peer> peers)
Deprecated.
|
Collection<ProposalResponse> |
Channel.sendInstantiationProposal(InstantiateProposalRequest instantiateProposalRequest,
Collection<Peer> peers)
Deprecated.
See new lifecycle chaincode management.
LifecycleInstallChaincodeRequest |
Collection<LifecycleApproveChaincodeDefinitionForMyOrgProposalResponse> |
Channel.sendLifecycleApproveChaincodeDefinitionForMyOrgProposal(LifecycleApproveChaincodeDefinitionForMyOrgRequest lifecycleApproveChaincodeDefinitionForMyOrgRequest,
Collection<Peer> peers)
Approve chaincode to be run on this peer's organization.
|
Collection<LifecycleCheckCommitReadinessProposalResponse> |
Channel.sendLifecycleCheckCommitReadinessRequest(LifecycleCheckCommitReadinessRequest lifecycleCheckCommitReadinessRequest,
Collection<Peer> peers)
Query approval status for all organizations.
|
Collection<LifecycleCommitChaincodeDefinitionProposalResponse> |
Channel.sendLifecycleCommitChaincodeDefinitionProposal(LifecycleCommitChaincodeDefinitionRequest lifecycleCommitChaincodeDefinitionRequest,
Collection<Peer> peers)
Commit chaincode final approval to run on all organizations that have approved.
|
Collection<LifecycleInstallChaincodeProposalResponse> |
HFClient.sendLifecycleInstallChaincodeRequest(LifecycleInstallChaincodeRequest lifecycleInstallChaincodeRequest,
Collection<Peer> peers)
Send install chaincode request proposal to peers.
|
Collection<LifecycleQueryInstalledChaincodeProposalResponse> |
HFClient.sendLifecycleQueryInstalledChaincode(LifecycleQueryInstalledChaincodeRequest lifecycleQueryInstalledChaincodeRequest,
Collection<Peer> peers)
Query installed chaincode on a peer.
|
Collection<LifecycleQueryInstalledChaincodesProposalResponse> |
HFClient.sendLifecycleQueryInstalledChaincodes(LifecycleQueryInstalledChaincodesRequest lifecycleQueryInstalledChaincodesRequest,
Collection<Peer> peers)
Query the peer for installed chaincodes information
|
Collection<ProposalResponse> |
Channel.sendTransactionProposal(TransactionProposalRequest transactionProposalRequest,
Collection<Peer> peers)
Send a transaction proposal to specific peers.
|
Collection<ProposalResponse> |
Channel.sendUpgradeProposal(UpgradeProposalRequest upgradeProposalRequest,
Collection<Peer> peers)
Deprecated.
See new Lifecycle chaincode management.
Channel.sendLifecycleApproveChaincodeDefinitionForMyOrgProposal(LifecycleApproveChaincodeDefinitionForMyOrgRequest, Peer) |
Copyright © 2022. All rights reserved.