public static interface NetworkConfig.NetworkConfigAddPeerHandler
Modifier and Type | Method and Description |
---|---|
void |
addPeer(NetworkConfig networkConfig,
HFClient client,
Channel channel,
String peerName,
String peerURL,
Properties peerProperties,
Channel.PeerOptions peerOptions,
javax.json.JsonObject jsonPeer) |
void addPeer(NetworkConfig networkConfig, HFClient client, Channel channel, String peerName, String peerURL, Properties peerProperties, Channel.PeerOptions peerOptions, javax.json.JsonObject jsonPeer) throws NetworkConfigurationException
networkConfig
- The network configuration.client
- The client to be used to create the peer.channel
- The channel the peer is to be added.peerName
- The peer's name.peerURL
- The peers's urlpeerProperties
- properties that were found in the networkconfigpeerOptions
- options when adding peer to the channel.jsonPeer
- json peer was createdNetworkConfigurationException
- if the configuration cannot be parsedCopyright © 2022. All rights reserved.