Examples of SmartClientConfig


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
Copyright © 2018 www.massapi.com. 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.