You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@usergrid.apache.org by sn...@apache.org on 2015/06/29 19:40:45 UTC

[33/50] [abbrv] incubator-usergrid git commit: add comments for location strategy

add comments for location strategy


Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/4a27f3f2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/4a27f3f2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/4a27f3f2

Branch: refs/heads/USERGRID-703
Commit: 4a27f3f2a02753113db2bec655d4bd87271dd4bf
Parents: 2423840
Author: Shawn Feldman <sf...@apache.org>
Authored: Mon Jun 22 15:15:32 2015 -0600
Committer: Shawn Feldman <sf...@apache.org>
Committed: Mon Jun 22 15:15:32 2015 -0600

----------------------------------------------------------------------
 .../usergrid/persistence/index/IndexLocationStrategy.java | 10 ++++++++++
 1 file changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/4a27f3f2/stack/corepersistence/queryindex/src/main/java/org/apache/usergrid/persistence/index/IndexLocationStrategy.java
----------------------------------------------------------------------
diff --git a/stack/corepersistence/queryindex/src/main/java/org/apache/usergrid/persistence/index/IndexLocationStrategy.java b/stack/corepersistence/queryindex/src/main/java/org/apache/usergrid/persistence/index/IndexLocationStrategy.java
index 97add7c..6b07b9e 100644
--- a/stack/corepersistence/queryindex/src/main/java/org/apache/usergrid/persistence/index/IndexLocationStrategy.java
+++ b/stack/corepersistence/queryindex/src/main/java/org/apache/usergrid/persistence/index/IndexLocationStrategy.java
@@ -22,6 +22,16 @@ package org.apache.usergrid.persistence.index;
 import org.apache.usergrid.persistence.core.scope.ApplicationScope;
 /**
  * location strategy for index
+  Naming Configuration
+ ---
+ clusterName = config{usergrid.cluster_name}
+ keyspaceName = config{cassandra.keyspace.application}
+ managementName = config{elasticsearch.managment_index}
+ indexRoot = {clusterName}_{keyspaceName}
+ managementIndexName = {indexRoot}_{managementName}
+ managementAliasName = {indexRoot}_{managementName}_read_alias || {indexRoot}_{managementName}_read_alias
+ applicationIndexName = {indexRoot}_applications_{bucketId}
+ applicationAliasName = {indexRoot}_{appId}_read_alias || {indexRoot}_{appId}_write_alias
  */
 public interface IndexLocationStrategy {
     /**