Package com.couchbase.client.core.config

Examples of com.couchbase.client.core.config.ConfigurationException


    @Override
    protected Observable<String> discoverConfig(final String bucket, final String password, final InetAddress hostname) {
        if (!env().bootstrapCarrierEnabled()) {
            LOGGER.info("Carrier Bootstrap manually disabled.");
            return Observable.error(new ConfigurationException("Carrier Bootstrap disabled through configuration."));
        }
        return cluster()
            .<GetBucketConfigResponse>send(new GetBucketConfigRequest(bucket, hostname))
            .map(new Func1<GetBucketConfigResponse, String>() {
                @Override
View Full Code Here


    @Override
    protected Observable<String> discoverConfig(final String bucket, final String password, final InetAddress hostname) {
        if (!env().bootstrapHttpEnabled()) {
            LOGGER.info("HTTP Bootstrap manually disabled.");
            return Observable.error(new ConfigurationException("HTTP Bootstrap disabled through configuration."));
        }

        return cluster()
            .<BucketConfigResponse>send(new BucketConfigRequest(TERSE_PATH, hostname, bucket, password))
            .flatMap(new Func1<BucketConfigResponse, Observable<BucketConfigResponse>>() {
View Full Code Here

     */
    public SeedNodesRequest(final List<String> nodes) {
        super(null, null);

        if (nodes == null || nodes.isEmpty()) {
            throw new ConfigurationException("Empty or null bootstrap list provided.");
        }
        Set<InetAddress> parsedNodes = new HashSet<InetAddress>();
        for (String node : nodes) {
            if (node == null || node.isEmpty()) {
                throw new ConfigurationException("Empty or null host in bootstrap list.");
            }
            try {
                parsedNodes.add(InetAddress.getByName(node));
            } catch (UnknownHostException e) {
                throw new ConfigurationException("Unknown host " + node + " in bootstrap list.", e);
            }
        }
        this.nodes = parsedNodes;
    }
View Full Code Here

TOP

Related Classes of com.couchbase.client.core.config.ConfigurationException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.