Fix for ACE-3593 Duplicate org.alfresco.solr.tracker.Tracker interface stops Solr working

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@90801 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Andrew Hind
2014-11-20 13:42:20 +00:00
parent 0cac5dac1f
commit a3d54f5f51
@@ -1,117 +0,0 @@
/*
* Copyright (C) 2014 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Alfresco is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
*/
package org.alfresco.solr.tracker;
import java.io.IOException;
import java.util.List;
import org.alfresco.httpclient.AuthenticationException;
import org.alfresco.service.namespace.QName;
import org.alfresco.solr.AclReport;
import org.alfresco.solr.NodeReport;
import org.alfresco.solr.client.Node;
import org.alfresco.solr.client.NodeMetaData;
import org.alfresco.solr.client.NodeMetaDataParameters;
import org.alfresco.solr.client.SOLRAPIClient.GetTextContentResponse;
import org.json.JSONException;
public interface Tracker
{
// move to infoserver
int getMaxLiveSearchers();
// Will be track - common for all
void updateIndex();
// MetadataTracker
void addTransactionToReindex(Long transactionToReindex);
void addTransactionToIndex(Long transactionToIndex);
void addTransactionToPurge(Long transactionToPurge);
void addNodeToReindex(Long nodeToReindex);
void addNodeToIndex(Long nodeToIndex);
void addNodeToPurge(Long nodeToPurge);
// AclTracker
void addAclChangeSetToReindex(Long aclChangeSetToReindex);
void addAclChangeSetToIndex(Long aclChangeSetToIndex);
void addAclChangeSetToPurge(Long aclChangeSetToPurge);
void addAclToReindex(Long aclToReindex);
void addAclToIndex(Long aclToIndex);
void addAclToPurge(Long aclToPurge);
// All trackers (check() = what things that it tracks are ok)
IndexHealthReport checkIndex(Long fromTx, Long toTx, Long fromAclTx, Long toAclTx, Long fromTime,
Long toTime) throws AuthenticationException, IOException, JSONException;
// MetadataTracker
NodeReport checkNode(Node node);
NodeReport checkNode(Long dbid);
// more thought
List<Node> getFullNodesForDbTransaction(Long txid);
List<Long> getAclsForDbAclTransaction(Long acltxid);
AclReport checkAcl(Long aclid);
// Changed for solr4.
void close();
// ModelTracker
void trackModels(boolean onlyFirstTime) throws AuthenticationException, IOException, JSONException;
void ensureFirstModelSync();
// Common
void setShutdown(boolean shutdown);
// MetadataTracker
List<NodeMetaData> getNodesMetaData(NodeMetaDataParameters params, int maxResults)
throws AuthenticationException, IOException, JSONException;
// ContentTracker
GetTextContentResponse getTextContent(Long nodeId, QName propertyQName, Long modifiedSince)
throws AuthenticationException, IOException;
boolean canAddContentPropertyToDoc();
// Move to inforSrv, but needs more thought
TrackerStats getTrackerStats();
// Move to AdminHandler
String getAlfrescoVersion();
}