Package org.alfresco.solr.tracker
Class ExplicitShardIdWithStaticPropertyRouter
- java.lang.Object
-
- org.alfresco.solr.tracker.ComposableDocRouter
-
- org.alfresco.solr.tracker.ExplicitShardIdWithStaticPropertyRouter
-
- All Implemented Interfaces:
DocRouter
public class ExplicitShardIdWithStaticPropertyRouter extends ComposableDocRouter
Routes the incoming nodes (not ACLs!) on the shard explicitly indicated inNode.getExplicitShardId()method. The access control information is duplicated in each shard.
WARNING: This is an experimental feature that is subject to change. The current known issues are:- Incompatibility with the "Purge" action on the Alfresco Admin Console
- Incompatibility with the "Purge on Startup" option on the Alfresco Admin Console
- Since:
- 1.4
- Author:
- Elia, agazzarini
-
-
Field Summary
-
Fields inherited from class org.alfresco.solr.tracker.ComposableDocRouter
logger
-
-
Constructor Summary
Constructors Constructor Description ExplicitShardIdWithStaticPropertyRouter()ExplicitShardIdWithStaticPropertyRouter(boolean isInStandaloneMode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.BooleanrouteAcl(int shardCount, int shardInstance, org.alfresco.solr.client.Acl acl)Checks if the incoming ACL document must be indexed on this shard.java.lang.BooleanrouteNode(int shardCount, int shardInstance, org.alfresco.solr.client.Node node)Checks if the incoming Node must be indexed on this shard.-
Methods inherited from class org.alfresco.solr.tracker.ComposableDocRouter
debug, negativeReturnValue
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.alfresco.solr.tracker.DocRouter
getProperties
-
-
-
-
Method Detail
-
routeAcl
public java.lang.Boolean routeAcl(int shardCount, int shardInstance, org.alfresco.solr.client.Acl acl)Description copied from interface:DocRouterChecks if the incoming ACL document must be indexed on this shard.- Parameters:
shardCount- the total shard count.shardInstance- the owning shard instance (i.e. instance number).acl- the ACL.- Returns:
- true if the ACL must be indexed in the shard which owns this
DocRouterinstance, false otherwise.
-
routeNode
public java.lang.Boolean routeNode(int shardCount, int shardInstance, org.alfresco.solr.client.Node node)Description copied from interface:DocRouterChecks if the incoming Node must be indexed on this shard.- Parameters:
shardCount- the total shard count.shardInstance- the owning shard instance (i.e. instance number).node- theNodeinstance.- Returns:
- true if the
Nodeinstance must be indexed in the shard which owns thisDocRouterinstance, false otherwise.
-
-