mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged HEAD-BUG-FIX (5.0/Cloud) to HEAD (5.0/Cloud)
84822: Merged PLATFORM1 (5.0/Cloud) to HEAD-BUG-FIX (5.0/Cloud) 82523: Fix for ACE-1044 SOLR 4 - Back up and recovery - added baseUrl configuration - improved admin git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@85181 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2005-2011 Alfresco Software Limited.
|
||||
* Copyright (C) 2005-2014 Alfresco Software Limited.
|
||||
*
|
||||
* This file is part of Alfresco
|
||||
*
|
||||
@@ -65,6 +65,7 @@ public class SOLRAdminClient implements ApplicationEventPublisherAware, Disposab
|
||||
private String solrUser;
|
||||
private String solrPassword;
|
||||
private String solrPingCronExpression;
|
||||
private String baseUrl;
|
||||
private CommonsHttpSolrServer server;
|
||||
private int solrConnectTimeout = 30000; // ms
|
||||
|
||||
@@ -123,8 +124,13 @@ public class SOLRAdminClient implements ApplicationEventPublisherAware, Disposab
|
||||
{
|
||||
this.httpClientFactory = httpClientFactory;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
public void setBaseUrl(String baseUrl)
|
||||
{
|
||||
this.baseUrl = baseUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param scheduler the scheduler to set
|
||||
*/
|
||||
public void setScheduler(Scheduler scheduler)
|
||||
@@ -148,7 +154,7 @@ public class SOLRAdminClient implements ApplicationEventPublisherAware, Disposab
|
||||
sb.append(solrHost);
|
||||
sb.append(":");
|
||||
sb.append(httpClientFactory.isSSL() ? solrSSLPort: solrPort);
|
||||
sb.append("/solr");
|
||||
sb.append(baseUrl);
|
||||
this.solrUrl = sb.toString();
|
||||
HttpClient httpClient = httpClientFactory.getHttpClient();
|
||||
|
||||
|
Reference in New Issue
Block a user