Package com.lambdaworks.redis.cluster.models.partitions

Examples of com.lambdaworks.redis.cluster.models.partitions.Partitions


     */
    public void reloadPartitions() {
        if (partitions == null) {
            initializePartitions();
        } else {
            Partitions loadedPartitions = loadPartitions();
            this.partitions.getPartitions().clear();
            this.partitions.getPartitions().addAll(loadedPartitions.getPartitions());
        }
    }
View Full Code Here


        }
    }

    protected void initializePartitions() {

        Partitions partitions = loadPartitions();
        this.partitions = partitions;
    }
View Full Code Here

            throw new RedisException("Cannot retrieve initial cluster partitions from initial URIs " + initialUris,
                    lastException);
        }

        Partitions partitions = ClusterPartitionParser.parse(clusterNodes);

        for (RedisClusterNode partition : partitions) {
            if (partition.getFlags().contains(RedisClusterNode.NodeFlag.MYSELF)) {
                partition.setUri(nodeUri);
            }
View Full Code Here

TOP

Related Classes of com.lambdaworks.redis.cluster.models.partitions.Partitions

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.