mirror of
https://github.com/Alfresco/SearchServices.git
synced 2025-09-10 14:11:25 +00:00
[SEARCH-1643]
Code style fixes
This commit is contained in:
@@ -28,25 +28,30 @@ import org.slf4j.LoggerFactory;
|
||||
*
|
||||
* @author Elia
|
||||
*/
|
||||
public class LastRegisteredShardRouter implements DocRouter {
|
||||
public class LastRegisteredShardRouter implements DocRouter
|
||||
{
|
||||
|
||||
protected final static Logger log = LoggerFactory.getLogger(ExplicitRouter.class);
|
||||
|
||||
public LastRegisteredShardRouter() {
|
||||
public LastRegisteredShardRouter()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean routeAcl(int shardCount, int shardInstance, Acl acl) {
|
||||
public boolean routeAcl(int shardCount, int shardInstance, Acl acl)
|
||||
{
|
||||
//all acls go to all shards.
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean routeNode(int shardCount, int shardInstance, Node node) {
|
||||
public boolean routeNode(int shardCount, int shardInstance, Node node)
|
||||
{
|
||||
|
||||
Integer explicitShardId = node.getExplicitShardId();
|
||||
|
||||
if (explicitShardId == null) {
|
||||
if (explicitShardId == null)
|
||||
{
|
||||
log.error("explicitShardId is not set for node " + node.getNodeRef());
|
||||
return false;
|
||||
}
|
||||
|
@@ -158,11 +158,13 @@ public class GetNodesParameters
|
||||
this.shardProperty = shardProperty;
|
||||
}
|
||||
|
||||
public String getCoreName() {
|
||||
public String getCoreName()
|
||||
{
|
||||
return this.coreName;
|
||||
}
|
||||
|
||||
public void setCoreName(String coreName){
|
||||
public void setCoreName(String coreName)
|
||||
{
|
||||
this.coreName = coreName;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user