mirror of
https://github.com/Alfresco/SearchServices.git
synced 2025-09-17 14:21:20 +00:00
Merged HEAD-BUG-FIX (5.0/Cloud) to HEAD (5.0/Cloud)
77016: Merged PLATFORM1 (5.0/Cloud) to HEAD-BUG-FIX (5.0/Cloud) 71478: ACE-1705: SOLR 4 - Core admin handler and start core tracking - Thinned down Tracker API. Made methods private where possible git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@77855 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -35,22 +35,13 @@ import org.json.JSONException;
|
|||||||
public interface Tracker
|
public interface Tracker
|
||||||
{
|
{
|
||||||
|
|
||||||
|
// move to infoserver
|
||||||
int getMaxLiveSearchers();
|
int getMaxLiveSearchers();
|
||||||
|
|
||||||
|
// Will be track - common for all
|
||||||
void updateIndex();
|
void updateIndex();
|
||||||
|
|
||||||
void indexAclChangeSets() throws AuthenticationException, IOException, JSONException;
|
// MetadataTracker
|
||||||
|
|
||||||
void indexAcls() throws AuthenticationException, IOException, JSONException;
|
|
||||||
|
|
||||||
void reindexAclChangeSets() throws AuthenticationException, IOException, JSONException;
|
|
||||||
|
|
||||||
void reindexAcls() throws AuthenticationException, IOException, JSONException;
|
|
||||||
|
|
||||||
void purgeAclChangeSets() throws AuthenticationException, IOException, JSONException;
|
|
||||||
|
|
||||||
void purgeAcls() throws AuthenticationException, IOException, JSONException;
|
|
||||||
|
|
||||||
void addTransactionToReindex(Long transactionToReindex);
|
void addTransactionToReindex(Long transactionToReindex);
|
||||||
|
|
||||||
void addTransactionToIndex(Long transactionToIndex);
|
void addTransactionToIndex(Long transactionToIndex);
|
||||||
@@ -63,6 +54,8 @@ public interface Tracker
|
|||||||
|
|
||||||
void addNodeToPurge(Long nodeToPurge);
|
void addNodeToPurge(Long nodeToPurge);
|
||||||
|
|
||||||
|
|
||||||
|
// AclTracker
|
||||||
void addAclChangeSetToReindex(Long aclChangeSetToReindex);
|
void addAclChangeSetToReindex(Long aclChangeSetToReindex);
|
||||||
|
|
||||||
void addAclChangeSetToIndex(Long aclChangeSetToIndex);
|
void addAclChangeSetToIndex(Long aclChangeSetToIndex);
|
||||||
@@ -75,39 +68,50 @@ public interface Tracker
|
|||||||
|
|
||||||
void addAclToPurge(Long aclToPurge);
|
void addAclToPurge(Long aclToPurge);
|
||||||
|
|
||||||
void trackRepository() throws IOException, AuthenticationException, JSONException;
|
|
||||||
|
|
||||||
|
// All trackers (check() = what things that it tracks are ok)
|
||||||
IndexHealthReport checkIndex(Long fromTx, Long toTx, Long fromAclTx, Long toAclTx, Long fromTime,
|
IndexHealthReport checkIndex(Long fromTx, Long toTx, Long fromAclTx, Long toAclTx, Long fromTime,
|
||||||
Long toTime) throws AuthenticationException, IOException, JSONException;
|
Long toTime) throws AuthenticationException, IOException, JSONException;
|
||||||
|
|
||||||
|
// MetadataTracker
|
||||||
NodeReport checkNode(Node node);
|
NodeReport checkNode(Node node);
|
||||||
|
|
||||||
NodeReport checkNode(Long dbid);
|
NodeReport checkNode(Long dbid);
|
||||||
|
|
||||||
|
// more thought
|
||||||
List<Node> getFullNodesForDbTransaction(Long txid);
|
List<Node> getFullNodesForDbTransaction(Long txid);
|
||||||
|
|
||||||
List<Long> getAclsForDbAclTransaction(Long acltxid);
|
List<Long> getAclsForDbAclTransaction(Long acltxid);
|
||||||
|
|
||||||
AclReport checkAcl(Long aclid);
|
AclReport checkAcl(Long aclid);
|
||||||
|
|
||||||
|
|
||||||
|
// Changed for solr4.
|
||||||
void close();
|
void close();
|
||||||
|
|
||||||
|
|
||||||
|
// ModelTracker
|
||||||
void trackModels(boolean onlyFirstTime) throws AuthenticationException, IOException, JSONException;
|
void trackModels(boolean onlyFirstTime) throws AuthenticationException, IOException, JSONException;
|
||||||
|
|
||||||
void ensureFirstModelSync();
|
void ensureFirstModelSync();
|
||||||
|
|
||||||
|
// Common
|
||||||
void setShutdown(boolean shutdown);
|
void setShutdown(boolean shutdown);
|
||||||
|
|
||||||
|
// MetadataTracker
|
||||||
List<NodeMetaData> getNodesMetaData(NodeMetaDataParameters params, int maxResults)
|
List<NodeMetaData> getNodesMetaData(NodeMetaDataParameters params, int maxResults)
|
||||||
throws AuthenticationException, IOException, JSONException;
|
throws AuthenticationException, IOException, JSONException;
|
||||||
|
|
||||||
|
// ContentTracker
|
||||||
GetTextContentResponse getTextContent(Long nodeId, QName propertyQName, Long modifiedSince)
|
GetTextContentResponse getTextContent(Long nodeId, QName propertyQName, Long modifiedSince)
|
||||||
throws AuthenticationException, IOException;
|
throws AuthenticationException, IOException;
|
||||||
|
|
||||||
boolean canAddContentPropertyToDoc();
|
boolean canAddContentPropertyToDoc();
|
||||||
|
|
||||||
|
// Move to inforSrv, but needs more thought
|
||||||
TrackerStats getTrackerStats();
|
TrackerStats getTrackerStats();
|
||||||
|
|
||||||
|
// Move to AdminHandler
|
||||||
String getAlfrescoVersion();
|
String getAlfrescoVersion();
|
||||||
|
|
||||||
}
|
}
|
Reference in New Issue
Block a user