Package com.couchbase.client.core.config

Examples of com.couchbase.client.core.config.NodeInfo.hostname()


            return new Node[] { };
        }

        NodeInfo nodeInfo = config.partitionHosts().get(nodeId);
        for (Node node : nodes) {
            if (node.hostname().equals(nodeInfo.hostname())) {
                return new Node[] { node };
            }
        }

        throw new IllegalStateException("Node not found for request" + request);
View Full Code Here


        }

        NodeInfo found = config.ketamaNodes().get(hash);
        request.partition((short) 0);
        for (Node node : nodes) {
            if (node.hostname().equals(found.hostname())) {
                return new Node[] { node };
            }
        }

        throw new IllegalStateException("Node not found for request" + request);
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.