Return-Path: Delivered-To: apmail-incubator-cassandra-commits-archive@minotaur.apache.org Received: (qmail 22769 invoked from network); 2 Oct 2009 00:08:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Oct 2009 00:08:03 -0000 Received: (qmail 19710 invoked by uid 500); 2 Oct 2009 00:08:03 -0000 Delivered-To: apmail-incubator-cassandra-commits-archive@incubator.apache.org Received: (qmail 19675 invoked by uid 500); 2 Oct 2009 00:08:03 -0000 Mailing-List: contact cassandra-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cassandra-dev@incubator.apache.org Delivered-To: mailing list cassandra-commits@incubator.apache.org Received: (qmail 19665 invoked by uid 99); 2 Oct 2009 00:08:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Oct 2009 00:08:03 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.130] (HELO eos.apache.org) (140.211.11.130) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Oct 2009 00:08:00 +0000 Received: from eos.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id A6194118BC for ; Fri, 2 Oct 2009 00:07:39 +0000 (GMT) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: Apache Wiki To: Apache Wiki Date: Fri, 02 Oct 2009 00:07:39 -0000 Message-ID: <20091002000739.3925.51120@eos.apache.org> Subject: =?utf-8?q?=5BCassandra_Wiki=5D_Update_of_=22ClientExamples=22_by_ErichNac?= =?utf-8?q?hbar?= X-Virus-Checked: Checked by ClamAV on apache.org Dear Wiki user, You have subscribed to a wiki page or wiki category on "Cassandra Wiki" for= change notification. The "ClientExamples" page has been changed by ErichNachbar: http://wiki.apache.org/cassandra/ClientExamples?action=3Ddiff&rev1=3D27&rev= 2=3D28 main() }}} = + =3D=3D Notes =3D=3D + = + The Cassandra.Client object is always sending its request to the same Cas= sandra node in the cluster. The server then determines if and where the req= uest should be routed to (Server-based routing). DNS Round Robin or a Cassa= ndra.Client object pool connected to several servers in the cluster can be = used to get higher throughput and availability. + = + The get_string_property() method can be used to retrieve the active node = list: + {{{ + String jsonServerList =3D client.get_string_property("token map") + }}} +=20