diff --git a/search-services/alfresco-solrclient-lib/source/java/org/alfresco/solr/tracker/Tracker.java b/search-services/alfresco-solrclient-lib/source/java/org/alfresco/solr/tracker/Tracker.java deleted file mode 100644 index 309334244..000000000 --- a/search-services/alfresco-solrclient-lib/source/java/org/alfresco/solr/tracker/Tracker.java +++ /dev/null @@ -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 . - */ - -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 getFullNodesForDbTransaction(Long txid); - - List 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 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(); - -} \ No newline at end of file