Package org.alfresco.solr.tracker
Class ExplicitShardIdWithStaticPropertyRouter
java.lang.Object
org.alfresco.solr.tracker.ComposableDocRouter
org.alfresco.solr.tracker.ExplicitShardIdWithStaticPropertyRouter
- All Implemented Interfaces:
DocRouter
Routes the incoming nodes (not ACLs!) on the shard explicitly indicated in
Node.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 -
Method Summary
Modifier and TypeMethodDescriptionrouteAcl(int shardCount, int shardInstance, org.alfresco.solr.client.Acl acl) Checks if the incoming ACL document must be indexed on this shard.routeNode(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, negativeReturnValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.alfresco.solr.tracker.DocRouter
getProperties
-
Constructor Details
-
ExplicitShardIdWithStaticPropertyRouter
public ExplicitShardIdWithStaticPropertyRouter() -
ExplicitShardIdWithStaticPropertyRouter
public ExplicitShardIdWithStaticPropertyRouter(boolean isInStandaloneMode)
-
-
Method Details
-
routeAcl
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
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.
-