public Set<InetSocketAddress> getUniqueBinaryTransportHostsAsInetSocketAddresses() {
    """
	Retrieves a set of unique Cassandra hosts with Binary Transport protocol
	enabled from configuration file as a set of {@link java.net.InetSocketAddress}
	objects.
	
	@return set of InetSocketAddress objects containing unique Cassandra hosts
	with binary transport protocol enabled
    """
        Set<String> hosts = getUniqueBinaryTransportHosts();

        Set<InetSocketAddress> inetAddresses = new HashSet<InetSocketAddress>();
        for (String host: hosts) {
            String[] parts = host.split(":");
            InetSocketAddress inetSocketAddress;
            if ( parts.length == 1 ) {
                inetSocketAddress = new InetSocketAddress(parts[0], config.getIntegerProperty(CoreConfig.CASSANDRA_BINXPORT_PORT));
            } else {
                inetSocketAddress = new InetSocketAddress(parts[0], Integer.parseInt(parts[1]));
            }
            inetAddresses.add(inetSocketAddress);
        }
        return inetAddresses;
    }
public Set<InetSocketAddress> getUniqueBinaryTransportHostsAsInetSocketAddresses() {
        Set<String> hosts = getUniqueBinaryTransportHosts();

        Set<InetSocketAddress> inetAddresses = new HashSet<InetSocketAddress>();
        for (String host: hosts) {
            String[] parts = host.split(":");
            InetSocketAddress inetSocketAddress;
            if ( parts.length == 1 ) {
                inetSocketAddress = new InetSocketAddress(parts[0], config.getIntegerProperty(CoreConfig.CASSANDRA_BINXPORT_PORT));
            } else {
                inetSocketAddress = new InetSocketAddress(parts[0], Integer.parseInt(parts[1]));
            }
            inetAddresses.add(inetSocketAddress);
        }
        return inetAddresses;
    }
public Set < InetSocketAddress > getUniqueBinaryTransportHostsAsInetSocketAddresses ( ) { Set < String > hosts = getUniqueBinaryTransportHosts ( ) ; Set < InetSocketAddress > inetAddresses = new HashSet < InetSocketAddress > ( ) ; for ( String host : hosts ) { String [ ] parts = host . split ( ":" ) ; InetSocketAddress inetSocketAddress ; if ( parts . length == 1 ) { inetSocketAddress = new InetSocketAddress ( parts [ 0 ] , config . getIntegerProperty ( CoreConfig . CASSANDRA_BINXPORT_PORT ) ) ; } else { inetSocketAddress = new InetSocketAddress ( parts [ 0 ] , Integer . parseInt ( parts [ 1 ] ) ) ; } inetAddresses . add ( inetSocketAddress ) ; } return inetAddresses ; }
Retrieves a set of unique Cassandra hosts with Binary Transport protocol
enabled from configuration file as a set of {@link java.net.InetSocketAddress}
objects.

@return set of InetSocketAddress objects containing unique Cassandra hosts
with binary transport protocol enabled
Retrieves a set of unique Cassandra hosts with Binary Transport protocol enabled from configuration file as a set of { @link java . net . InetSocketAddress } objects .