OrgInfo org = new OrgInfo(orgName, mspId);
private EventHub getEventHub(HFClient client, String name) throws InvalidArgumentException { EventHub ehub = null; Node e = eventHubs.get(name); if (e != null) { ehub = client.newEventHub(e.getName(), e.getUrl(), e.getProperties()); } return ehub; }
/** * Returns the admin user associated with the specified organization * * @param orgName The name of the organization * @return The admin user details * @throws NetworkConfigurationException */ public UserInfo getPeerAdmin(String orgName) throws NetworkConfigurationException { OrgInfo org = getOrganizationInfo(orgName); if (org == null) { throw new NetworkConfigurationException(format("Organization %s is not defined", orgName)); } return org.getPeerAdmin(); }
OrgInfo org = new OrgInfo(orgName, mspId);
OrgInfo org = new OrgInfo(orgName, mspId);
/** * Returns the admin user associated with the specified organization * * @param orgName The name of the organization * @return The admin user details * @throws NetworkConfigurationException */ public UserInfo getPeerAdmin(String orgName) throws NetworkConfigurationException { OrgInfo org = getOrganizationInfo(orgName); if (org == null) { throw new NetworkConfigurationException(format("Organization %s is not defined", orgName)); } return org.getPeerAdmin(); }
/** * Returns the admin user associated with the specified organization * * @param orgName The name of the organization * @return The admin user details * @throws NetworkConfigurationException */ public UserInfo getPeerAdmin(String orgName) throws NetworkConfigurationException { OrgInfo org = getOrganizationInfo(orgName); if (org == null) { throw new NetworkConfigurationException(format("Organization %s is not defined", orgName)); } return org.getPeerAdmin(); }
private EventHub getEventHub(HFClient client, String name) throws InvalidArgumentException { EventHub ehub = null; Node e = eventHubs.get(name); if (e != null) { ehub = client.newEventHub(e.getName(), e.getUrl(), e.getProperties()); } return ehub; }
private Orderer getOrderer(HFClient client, String ordererName) throws InvalidArgumentException { Orderer orderer = null; Node o = orderers.get(ordererName); if (o != null) { orderer = client.newOrderer(o.getName(), o.getUrl(), o.getProperties()); } return orderer; }
private EventHub getEventHub(HFClient client, String name) throws InvalidArgumentException { EventHub ehub = null; Node e = eventHubs.get(name); if (e != null) { ehub = client.newEventHub(e.getName(), e.getUrl(), e.getProperties()); } return ehub; }
private Peer getPeer(HFClient client, String peerName) throws InvalidArgumentException { Peer peer = null; Node p = peers.get(peerName); if (p != null) { peer = client.newPeer(p.getName(), p.getUrl(), p.getProperties()); } return peer; }
private Orderer getOrderer(HFClient client, String ordererName) throws InvalidArgumentException { Orderer orderer = null; Node o = orderers.get(ordererName); if (o != null) { orderer = client.newOrderer(o.getName(), o.getUrl(), o.getProperties()); } return orderer; }
/** * Returns the admin user associated with the client organization * * @return The admin user details * @throws NetworkConfigurationException */ public UserInfo getPeerAdmin() throws NetworkConfigurationException { // Get the details from the client organization return getPeerAdmin(clientOrganization.getName()); }
private Peer getPeer(HFClient client, String peerName) throws InvalidArgumentException { Peer peer = null; Node p = peers.get(peerName); if (p != null) { peer = client.newPeer(p.getName(), p.getUrl(), p.getProperties()); } return peer; }
/** * Returns the admin user associated with the client organization * * @return The admin user details * @throws NetworkConfigurationException */ public UserInfo getPeerAdmin() throws NetworkConfigurationException { // Get the details from the client organization return getPeerAdmin(clientOrganization.getName()); }
/** * Returns the admin user associated with the client organization * * @return The admin user details * @throws NetworkConfigurationException */ public UserInfo getPeerAdmin() throws NetworkConfigurationException { // Get the details from the client organization return getPeerAdmin(clientOrganization.getName()); }
private Peer getPeer(HFClient client, String peerName) throws InvalidArgumentException { Peer peer = null; Node p = peers.get(peerName); if (p != null) { peer = client.newPeer(p.getName(), p.getUrl(), p.getProperties()); } return peer; }
private Orderer getOrderer(HFClient client, String ordererName) throws InvalidArgumentException { Orderer orderer = null; Node o = orderers.get(ordererName); if (o != null) { orderer = client.newOrderer(o.getName(), o.getUrl(), o.getProperties()); } return orderer; }