@Test void shouldLoadConfigWithIPv6FromHost() { CouchbaseBucketConfig config = readConfig("single_node_wildcard.json", "[fd63:6f75:6368:20d4:423d:37c3:e6f7:3fac]"); assertEquals("fd63:6f75:6368:20d4:423d:37c3:e6f7:3fac", config.nodeAtIndex(0).hostname()); config = readConfig("single_node_wildcard.json", "fd63:6f75:6368:20d4:423d:37c3:e6f7:3fac"); assertEquals("fd63:6f75:6368:20d4:423d:37c3:e6f7:3fac", config.nodeAtIndex(0).hostname()); }
public NodeInfo nodeAtIndex(int nodeIndex) { return partitionHosts.get(nodeIndex); }
CouchbaseBucketConfig extends AbstractBucketConfig { public NodeInfo nodeAtIndex(int nodeIndex) { return partitionHosts.get(nodeIndex); } }
CouchbaseBucketConfig extends AbstractBucketConfig { public NodeInfo nodeAtIndex(int nodeIndex) { return partitionHosts.get(nodeIndex); } @JsonCreator  CouchbaseBucketConfig(
      @JsonProperty("rev") long rev,
      @JsonProperty("uuid") String uuid,
      @JsonProperty("name") String name,
      @JsonProperty("uri") String uri,
      @JsonProperty("streamingUri") String streamingUri,
      @JsonProperty("vBucketServerMap") PartitionInfo partitionInfo,
      @JsonProperty("nodes") List<NodeInfo> nodeInfos,
      @JsonProperty("nodesExt") List<PortInfo> portInfos,
      @JsonProperty("bucketCapabilities") List<BucketCapabilities> bucketCapabilities,
      @JsonProperty("clusterCapabilities") Map<String, Set<ClusterCapabilities>> clusterCapabilities,
      @JacksonInject("origin") String origin); }
CouchbaseBucketConfig extends AbstractBucketConfig { public NodeInfo nodeAtIndex(int nodeIndex) { return partitionHosts.get(nodeIndex); } @JsonCreator  CouchbaseBucketConfig(
      @JsonProperty("rev") long rev,
      @JsonProperty("uuid") String uuid,
      @JsonProperty("name") String name,
      @JsonProperty("uri") String uri,
      @JsonProperty("streamingUri") String streamingUri,
      @JsonProperty("vBucketServerMap") PartitionInfo partitionInfo,
      @JsonProperty("nodes") List<NodeInfo> nodeInfos,
      @JsonProperty("nodesExt") List<PortInfo> portInfos,
      @JsonProperty("bucketCapabilities") List<BucketCapabilities> bucketCapabilities,
      @JsonProperty("clusterCapabilities") Map<String, Set<ClusterCapabilities>> clusterCapabilities,
      @JacksonInject("origin") String origin); int numberOfReplicas(); @Override boolean tainted(); boolean hasPrimaryPartitionsOnNode(final String hostname); short nodeIndexForActive(int partition, boolean useFastForward); short nodeIndexForReplica(int partition, int replica, boolean useFastForward); int numberOfPartitions(); NodeInfo nodeAtIndex(int nodeIndex); @Override long rev(); @Override BucketType type(); @Override boolean hasFastForwardMap(); boolean ephemeral(); @Override String toString(); }
CouchbaseBucketConfig extends AbstractBucketConfig { public NodeInfo nodeAtIndex(int nodeIndex) { return partitionHosts.get(nodeIndex); } @JsonCreator  CouchbaseBucketConfig(
      @JsonProperty("rev") long rev,
      @JsonProperty("uuid") String uuid,
      @JsonProperty("name") String name,
      @JsonProperty("uri") String uri,
      @JsonProperty("streamingUri") String streamingUri,
      @JsonProperty("vBucketServerMap") PartitionInfo partitionInfo,
      @JsonProperty("nodes") List<NodeInfo> nodeInfos,
      @JsonProperty("nodesExt") List<PortInfo> portInfos,
      @JsonProperty("bucketCapabilities") List<BucketCapabilities> bucketCapabilities,
      @JsonProperty("clusterCapabilities") Map<String, Set<ClusterCapabilities>> clusterCapabilities,
      @JacksonInject("origin") String origin); int numberOfReplicas(); @Override boolean tainted(); boolean hasPrimaryPartitionsOnNode(final String hostname); short nodeIndexForActive(int partition, boolean useFastForward); short nodeIndexForReplica(int partition, int replica, boolean useFastForward); int numberOfPartitions(); NodeInfo nodeAtIndex(int nodeIndex); @Override long rev(); @Override BucketType type(); @Override boolean hasFastForwardMap(); boolean ephemeral(); @Override String toString(); static final int PARTITION_NOT_EXISTENT; }