@Test public void testGetCouchbaseBucketURIs() throws URISyntaxException { assertEquals(createFor("http: Arrays.asList(new URI("http: assertEquals(createFor("http: Arrays.asList(new URI("http: }
public List<URI> getCouchbaseBucketURIs() { if(!isCouchbaseBucketConfig()) throw new IllegalStateException("This is not a couchbase bucket configuration."); final List<URI> result = new ArrayList<URI>(_address2Ids.size()); final Matcher matcher = COUCHBASE_BUCKET_NODE_PATTERN.matcher(_memcachedNodes); while (matcher.find()) { try { result.add(new URI(matcher.group())); } catch (final URISyntaxException e) { throw new RuntimeException(e); } } return result; }
MemcachedNodesManager { public List<URI> getCouchbaseBucketURIs() { if(!isCouchbaseBucketConfig()) throw new IllegalStateException("This is not a couchbase bucket configuration."); final List<URI> result = new ArrayList<URI>(_address2Ids.size()); final Matcher matcher = COUCHBASE_BUCKET_NODE_PATTERN.matcher(_memcachedNodes); while (matcher.find()) { try { result.add(new URI(matcher.group())); } catch (final URISyntaxException e) { throw new RuntimeException(e); } } return result; } }
MemcachedNodesManager { public List<URI> getCouchbaseBucketURIs() { if(!isCouchbaseBucketConfig()) throw new IllegalStateException("This is not a couchbase bucket configuration."); final List<URI> result = new ArrayList<URI>(_address2Ids.size()); final Matcher matcher = COUCHBASE_BUCKET_NODE_PATTERN.matcher(_memcachedNodes); while (matcher.find()) { try { result.add(new URI(matcher.group())); } catch (final URISyntaxException e) { throw new RuntimeException(e); } } return result; } MemcachedNodesManager(final String memcachedNodes, @Nonnull final NodeIdList primaryNodeIds, @Nonnull final List<String> failoverNodeIds,
			@Nonnull final LinkedHashMap<InetSocketAddress, String> address2Ids,
			@Nullable final StorageKeyFormat storageKeyFormat, @Nullable final StorageClientCallback storageClientCallback); }
MemcachedNodesManager { public List<URI> getCouchbaseBucketURIs() { if(!isCouchbaseBucketConfig()) throw new IllegalStateException("This is not a couchbase bucket configuration."); final List<URI> result = new ArrayList<URI>(_address2Ids.size()); final Matcher matcher = COUCHBASE_BUCKET_NODE_PATTERN.matcher(_memcachedNodes); while (matcher.find()) { try { result.add(new URI(matcher.group())); } catch (final URISyntaxException e) { throw new RuntimeException(e); } } return result; } MemcachedNodesManager(final String memcachedNodes, @Nonnull final NodeIdList primaryNodeIds, @Nonnull final List<String> failoverNodeIds,
			@Nonnull final LinkedHashMap<InetSocketAddress, String> address2Ids,
			@Nullable final StorageKeyFormat storageKeyFormat, @Nullable final StorageClientCallback storageClientCallback); @Nonnull static MemcachedNodesManager createFor(final String memcachedNodes, final String failoverNodes, final StorageKeyFormat storageKeyFormat,
            final StorageClientCallback storageClientCallback); String getMemcachedNodes(); int getCountNodes(); @Nonnull NodeIdList getPrimaryNodeIds(); @Nonnull List<String> getFailoverNodeIds(); boolean isEncodeNodeIdInSessionId(); @Nonnull String getNodeId(final InetSocketAddress socketAddress); @CheckForNull String getNextPrimaryNodeId(final String nodeId); String getNextAvailableNodeId(final String nodeId); @Nonnull SessionIdFormat getSessionIdFormat(); @Nonnull StorageKeyFormat getStorageKeyFormat(); @Nonnull List<InetSocketAddress> getAllMemcachedAddresses(); @Nonnull String createSessionId( @Nonnull final String sessionId ); void setNodeAvailable(@Nullable final String nodeId, final boolean available); boolean isNodeAvailable(final String nodeId); boolean isValidForMemcached(final String sessionId); boolean canHitMemcached(final String sessionId); void onLoadFromMemcachedSuccess(final String sessionId); void onLoadFromMemcachedFailure(final String sessionId); String setNodeAvailableForSessionId(final String sessionId, final boolean available); String getNewSessionIdIfNodeFromSessionIdUnavailable( @Nonnull final String sessionId ); String changeSessionIdForTomcatFailover( @Nonnull final String sessionId, final String jvmRoute ); boolean isCouchbaseBucketConfig(); boolean isRedisConfig(); List<URI> getCouchbaseBucketURIs(); }
MemcachedNodesManager { public List<URI> getCouchbaseBucketURIs() { if(!isCouchbaseBucketConfig()) throw new IllegalStateException("This is not a couchbase bucket configuration."); final List<URI> result = new ArrayList<URI>(_address2Ids.size()); final Matcher matcher = COUCHBASE_BUCKET_NODE_PATTERN.matcher(_memcachedNodes); while (matcher.find()) { try { result.add(new URI(matcher.group())); } catch (final URISyntaxException e) { throw new RuntimeException(e); } } return result; } MemcachedNodesManager(final String memcachedNodes, @Nonnull final NodeIdList primaryNodeIds, @Nonnull final List<String> failoverNodeIds,
			@Nonnull final LinkedHashMap<InetSocketAddress, String> address2Ids,
			@Nullable final StorageKeyFormat storageKeyFormat, @Nullable final StorageClientCallback storageClientCallback); @Nonnull static MemcachedNodesManager createFor(final String memcachedNodes, final String failoverNodes, final StorageKeyFormat storageKeyFormat,
            final StorageClientCallback storageClientCallback); String getMemcachedNodes(); int getCountNodes(); @Nonnull NodeIdList getPrimaryNodeIds(); @Nonnull List<String> getFailoverNodeIds(); boolean isEncodeNodeIdInSessionId(); @Nonnull String getNodeId(final InetSocketAddress socketAddress); @CheckForNull String getNextPrimaryNodeId(final String nodeId); String getNextAvailableNodeId(final String nodeId); @Nonnull SessionIdFormat getSessionIdFormat(); @Nonnull StorageKeyFormat getStorageKeyFormat(); @Nonnull List<InetSocketAddress> getAllMemcachedAddresses(); @Nonnull String createSessionId( @Nonnull final String sessionId ); void setNodeAvailable(@Nullable final String nodeId, final boolean available); boolean isNodeAvailable(final String nodeId); boolean isValidForMemcached(final String sessionId); boolean canHitMemcached(final String sessionId); void onLoadFromMemcachedSuccess(final String sessionId); void onLoadFromMemcachedFailure(final String sessionId); String setNodeAvailableForSessionId(final String sessionId, final boolean available); String getNewSessionIdIfNodeFromSessionIdUnavailable( @Nonnull final String sessionId ); String changeSessionIdForTomcatFailover( @Nonnull final String sessionId, final String jvmRoute ); boolean isCouchbaseBucketConfig(); boolean isRedisConfig(); List<URI> getCouchbaseBucketURIs();  }