Permalink
Browse files

Updated placement strategies.

  • Loading branch information...
1 parent 0536b1b commit 70e94caa4dc38c11f6769f182c7df24e60b6ffce @kallaspriit committed May 5, 2012
Showing with 11 additions and 8 deletions.
  1. +10 −7 Cassandra.php
  2. +1 −1 README.md
View
17 Cassandra.php
@@ -746,24 +746,27 @@ class Cassandra {
const OP_GTE = IndexOperator::GTE;
/**
- * Default simple placement strategy not taking network topology into
+ * Returns the nodes that are next to each other on the ring.
+ */
+ const PLACEMENT_LOCAL = 'org.apache.cassandra.locator.LocalStrategy';
+
+ /**
+ * Simple placement strategy not taking network topology into
* account.
*/
const PLACEMENT_SIMPLE = 'org.apache.cassandra.locator.SimpleStrategy';
/**
* Network topology aware placement strategy.
+ *
+ * Allows you to configure the number of replicas per data center as
+ * specified in the strategy_options. Replicas are placed on different racks
+ * within each data center, if possible.
*/
const PLACEMENT_NETWORK
= 'org.apache.cassandra.locator.NetworkTopologyStrategy';
/**
- * Old network topology aware placement strategy.
- */
- const PLACEMENT_OLD_NETWORK
- = 'org.apache.cassandra.locator.OldNetworkTopologyStrategy';
-
- /**
* Keys index type, currently only one supported.
*/
const INDEX_KEYS = 0;
View
2 README.md
@@ -21,7 +21,7 @@ Features
Class diagram
-------------
-![CPCL class diagram](https://a248.e.akamai.net/assets.github.com/img/3c1398ba50a8d85e6dc6a6e9e55d92cdec66319e/687474703a2f2f646c2e64726f70626f782e636f6d2f752f383835353735392f6370636c2f636c6173732d6469616772616d2e706e67 "Cassandra PHP Client Library class diagram")
+![CPCL class diagram](https://github.com/kallaspriit/Cassandra-PHP-Client-Library/blob/master/doc/class-diagram.png?raw=true "Cassandra PHP Client Library class diagram")
The library uses the very permissive [MIT licence](http://en.wikipedia.org/wiki/MIT_License) which means you can **do pretty much anything you like with it**.

0 comments on commit 70e94ca

Please sign in to comment.