public XARecoveryConfig(final boolean ha, final TransportConfiguration[] transportConfiguration, final String username, final String password, final Map<String, String> properties, final ClientProtocolManagerFactory clientProtocolManager) { TransportConfiguration[] newTransportConfiguration = new TransportConfiguration[transportConfiguration.length]; for (int i = 0; i < transportConfiguration.length; i++) { if (clientProtocolManager != null) { newTransportConfiguration[i] = clientProtocolManager.adaptTransportConfiguration(transportConfiguration[i].newTransportConfig("")); } else { newTransportConfiguration[i] = transportConfiguration[i].newTransportConfig(""); } } this.transportConfiguration = newTransportConfiguration; this.discoveryConfiguration = null; this.username = username; this.password = password; this.ha = ha; this.properties = properties == null ? Collections.unmodifiableMap(new HashMap<String, String>()) : Collections.unmodifiableMap(properties); this.clientProtocolManager = clientProtocolManager; }
public XARecoveryConfig(final boolean ha, final TransportConfiguration[] transportConfiguration, final String username, final String password, final Map<String, String> properties, final ClientProtocolManagerFactory clientProtocolManager) { TransportConfiguration[] newTransportConfiguration = new TransportConfiguration[transportConfiguration.length]; for (int i = 0; i < transportConfiguration.length; i++) { if (clientProtocolManager != null) { newTransportConfiguration[i] = clientProtocolManager.adaptTransportConfiguration(transportConfiguration[i].newTransportConfig("")); } else { newTransportConfiguration[i] = transportConfiguration[i].newTransportConfig(""); } } this.transportConfiguration = newTransportConfiguration; this.discoveryConfiguration = null; this.username = username; this.password = password; this.ha = ha; this.properties = properties == null ? Collections.unmodifiableMap(new HashMap<String, String>()) : Collections.unmodifiableMap(properties); this.clientProtocolManager = clientProtocolManager; }
if (allowDirectConnectionsOnly && !allowableConnections.contains(topologyMember.getLive().newTransportConfig(TRANSPORT_CONFIG_NAME))) { return;
allowableConnections.add(configuration.newTransportConfig(TRANSPORT_CONFIG_NAME));