Package com.emc.vipr.ribbon

Examples of com.emc.vipr.ribbon.SmartClientConfig


        setTimeout(timeout);
        return this;
    }

    public SmartClientConfig toSmartClientConfig() {
        SmartClientConfig smartConfig = new SmartClientConfig().withInitialNodes(toServers(s3Endpoints)).withVipAddresses(vipHost)
                .withPollProtocol(protocol.toString())
                .withUsername(credentialsProvider.getCredentials().getAWSAccessKeyId())
                .withSecret(credentialsProvider.getCredentials().getAWSSecretKey());
        if (pollInterval > 0) smartConfig.setPollInterval(pollInterval);
        if (timeout > 0) smartConfig.setTimeout(timeout);
        return smartConfig;
    }
View Full Code Here

TOP

Related Classes of com.emc.vipr.ribbon.SmartClientConfig

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.