<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>DataStax Support Forums &#187; Topic: HFactory.getOrCreateCluster succeeds with a wrong cluster name</title>
		<link>http://www.datastax.com/support-forums/topic/hfactorygetorcreatecluster-succeeds-with-a-wrong-cluster-name</link>
		<description>Software, Support, and Training for Apache Cassandra</description>
		<language>en-US</language>
		<pubDate>Sat, 18 May 2013 09:59:18 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.3</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.datastax.com/support-forums/search.php</link>
		</textInput>
		<atom:link href="http://www.datastax.com/support-forums/rss/topic/hfactorygetorcreatecluster-succeeds-with-a-wrong-cluster-name" rel="self" type="application/rss+xml" />

		<item>
			<title>Anonymous on "HFactory.getOrCreateCluster succeeds with a wrong cluster name"</title>
			<link>http://www.datastax.com/support-forums/topic/hfactorygetorcreatecluster-succeeds-with-a-wrong-cluster-name#post-1950</link>
			<pubDate>Mon, 21 May 2012 08:13:22 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">1950@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Your website have very interesting article.&#60;a href=&#34;http://www.wereplicas.com/top-replica-breitling-watches-cb21.html&#34;&#62;please visit this&#60;/a&#62; I got knowledge from here. Besides that, your blog is so popular among the searchers from search engines.A good watch may let you cause more brilliant!  It means yours &#60;a href=&#34;http://www.watchessoul.com/breitling-bentley-replica-cb507.html&#34;&#62;breitling for bentley replica best&#60;/a&#62;website is very good.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>nickmbailey on "HFactory.getOrCreateCluster succeeds with a wrong cluster name"</title>
			<link>http://www.datastax.com/support-forums/topic/hfactorygetorcreatecluster-succeeds-with-a-wrong-cluster-name#post-1864</link>
			<pubDate>Mon, 07 May 2012 15:46:51 +0000</pubDate>
			<dc:creator>nickmbailey</dc:creator>
			<guid isPermaLink="false">1864@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;In this instance, the name you pass to getOrCreateCluster is just used internally by hector to keep track of clusters that have been created. It doesn't actually relate to the name of your cassandra cluster.&#60;/p&#62;
&#60;p&#62;The purpose of the name in this case is so that you can call 'HFactory.getOrCreateCluster(&#34;My Cluster&#34;, &#34;localhost:9160&#34;);' in multiple places in your code and it will return the same cluster object.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "HFactory.getOrCreateCluster succeeds with a wrong cluster name"</title>
			<link>http://www.datastax.com/support-forums/topic/hfactorygetorcreatecluster-succeeds-with-a-wrong-cluster-name#post-1850</link>
			<pubDate>Fri, 04 May 2012 22:42:42 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">1850@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Hi all,&#60;/p&#62;
&#60;p&#62;  I'm new to Cassandra and Hector, and I have a doubt about managing clusters.&#60;/p&#62;
&#60;p&#62;I have installed a test environment in windows and executed the Datastax installer.&#60;br /&#62;
Cassandra starts and works perfectly, I also run opsCenter, and I can see that the Cluster is named &#34;Test Cluster&#34;.&#60;br /&#62;
Now I do the following (in a java class):&#60;br /&#62;
        cluster = HFactory.getOrCreateCluster(&#34;My Cluster&#34;, &#34;localhost:9160&#34;);&#60;br /&#62;
        logger.log(Level.INFO, &#34;Found Cluster named: {0}&#34;, cluster.getName());&#60;/p&#62;
&#60;p&#62;I thought that Hector would thrown an error, as I'm trying to open a cluster with the wrong name. But, unexpectedly (at least for me), everything works fine, and the name reported in the log is &#34;My Cluster&#34;.&#60;/p&#62;
&#60;p&#62;This behavior is not clear to me, in particular, if it works like that, why should we pass the cluster name to the getOrCreateCluter function?&#60;/p&#62;
&#60;p&#62;I'm rather confused, any help is appreciated.&#60;/p&#62;
&#60;p&#62;Thanks in advance,&#60;br /&#62;
  Giorgio
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
