Package org.hyperledger.fabric.sdk
Interface NetworkConfig.NetworkConfigAddOrdererHandler
- Enclosing class:
- NetworkConfig
public static interface NetworkConfig.NetworkConfigAddOrdererHandler
Interface defining handler for adding orderers.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddOrderer(NetworkConfig networkConfig, HFClient client, Channel channel, String ordererName, String ordererURL, Properties ordererProperties, javax.json.JsonObject jsonOrderer)
-
Method Details
-
addOrderer
void addOrderer(NetworkConfig networkConfig, HFClient client, Channel channel, String ordererName, String ordererURL, Properties ordererProperties, javax.json.JsonObject jsonOrderer) throws NetworkConfigurationException - Parameters:
networkConfig- The network configuration.client- The client to be used to create the orderer.channel- The channel the orderer is to be added.ordererName- The orderer's name.ordererURL- The orderers's urlordererProperties- properties that were found in the networkconfigjsonOrderer- json orderer was created- Throws:
NetworkConfigurationException- if the configuration cannot be parsed
-