Interface InformationServer

All Superinterfaces:
org.alfresco.solr.InformationServerCollectionProvider
All Known Implementing Classes:
SolrInformationServer

public interface InformationServer extends org.alfresco.solr.InformationServerCollectionProvider
This is the interface to the information server, whether it be Solr or some other search server.
Author:
Ahmed Owian
  • Field Details

  • Method Details

    • rollback

      void rollback() throws IOException
      Throws:
      IOException
    • dirtyTransaction

      void dirtyTransaction(long txnId)
    • commit

      void commit() throws IOException
      Throws:
      IOException
    • hardCommit

      void hardCommit() throws IOException
      Throws:
      IOException
    • commit

      boolean commit(boolean openSearcher) throws IOException
      Throws:
      IOException
    • indexAclTransaction

      void indexAclTransaction(org.alfresco.solr.client.AclChangeSet changeSet, boolean overwrite) throws IOException
      Throws:
      IOException
    • indexTransaction

      void indexTransaction(org.alfresco.solr.client.Transaction info, boolean overwrite) throws IOException
      Throws:
      IOException
    • deleteByTransactionId

      void deleteByTransactionId(Long transactionId) throws IOException
      Throws:
      IOException
    • deleteByAclChangeSetId

      void deleteByAclChangeSetId(Long aclChangeSetId) throws IOException
      Throws:
      IOException
    • deleteByAclId

      void deleteByAclId(Long aclId) throws IOException
      Throws:
      IOException
    • deleteByNodeId

      void deleteByNodeId(Long nodeId) throws IOException
      Throws:
      IOException
    • capIndex

      void capIndex(long nodeId) throws IOException
      Throws:
      IOException
    • getIndexCap

      long getIndexCap() throws IOException
      Throws:
      IOException
    • nodeCount

      long nodeCount() throws IOException
      Throws:
      IOException
    • maxNodeId

      long maxNodeId() throws IOException
      Throws:
      IOException
    • minNodeId

      long minNodeId() throws IOException
      Throws:
      IOException
    • maintainCap

      void maintainCap(long nodeId) throws Exception
      Throws:
      Exception
    • indexNode

      void indexNode(org.alfresco.solr.client.Node node, boolean overwrite) throws IOException, org.alfresco.httpclient.AuthenticationException, org.json.JSONException
      Throws:
      IOException
      org.alfresco.httpclient.AuthenticationException
      org.json.JSONException
    • indexNodes

      void indexNodes(List<org.alfresco.solr.client.Node> nodes, boolean overwrite) throws IOException, org.alfresco.httpclient.AuthenticationException, org.json.JSONException
      Throws:
      IOException
      org.alfresco.httpclient.AuthenticationException
      org.json.JSONException
    • cascadeNodes

      void cascadeNodes(List<org.alfresco.solr.client.NodeMetaData> nodes, boolean overwrite) throws IOException, org.alfresco.httpclient.AuthenticationException, org.json.JSONException
      Throws:
      IOException
      org.alfresco.httpclient.AuthenticationException
      org.json.JSONException
    • getCascadeNodes

      List<org.alfresco.solr.client.NodeMetaData> getCascadeNodes(List<Long> txnIds) throws org.alfresco.httpclient.AuthenticationException, IOException, org.json.JSONException
      Throws:
      org.alfresco.httpclient.AuthenticationException
      IOException
      org.json.JSONException
    • indexAcl

      long indexAcl(List<org.alfresco.solr.client.AclReaders> aclReaderList, boolean overwrite) throws IOException
      Throws:
      IOException
    • getTrackerInitialState

      org.alfresco.solr.TrackerState getTrackerInitialState()
    • continueState

      void continueState(org.alfresco.solr.TrackerState state)
    • getTxDocsSize

      int getTxDocsSize(String targetTxId, String targetTxCommitTime) throws IOException
      Throws:
      IOException
    • getRegisteredSearcherCount

      int getRegisteredSearcherCount()
    • txnInIndex

      boolean txnInIndex(long txnId, boolean populateCache) throws IOException
      Throws:
      IOException
    • aclChangeSetInIndex

      boolean aclChangeSetInIndex(long changeSetId, boolean populateCache) throws IOException
      Throws:
      IOException
    • getCascades

      List<org.alfresco.solr.client.Transaction> getCascades(int num) throws IOException
      Throws:
      IOException
    • updateTransaction

      void updateTransaction(org.alfresco.solr.client.Transaction txn) throws IOException
      Throws:
      IOException
    • clearProcessedTransactions

      void clearProcessedTransactions()
    • clearProcessedAclChangeSets

      void clearProcessedAclChangeSets()
    • isInIndex

      boolean isInIndex(String id) throws IOException
      Throws:
      IOException
    • setCleanContentTxnFloor

      void setCleanContentTxnFloor(long cleanContentTxnFloor)
    • setCleanCascadeTxnFloor

      void setCleanCascadeTxnFloor(long cleanCascadeTxnFloor)
    • getErrorDocIds

      Set<Long> getErrorDocIds() throws IOException
      Throws:
      IOException
    • getCoreStats

      Iterable<Map.Entry<String,Object>> getCoreStats() throws IOException
      Throws:
      IOException
    • getTrackerStats

      org.alfresco.solr.tracker.TrackerStats getTrackerStats()
    • getModelErrors

      Map<String,Set<String>> getModelErrors()
    • getDictionaryService

      org.alfresco.repo.dictionary.DictionaryComponent getDictionaryService(String alternativeDictionary)
    • getNamespaceDAO

      org.alfresco.repo.dictionary.NamespaceDAO getNamespaceDAO()
    • getAlfrescoModels

      List<org.alfresco.solr.client.AlfrescoModel> getAlfrescoModels()
    • afterInitModels

      void afterInitModels()
    • putModel

      boolean putModel(org.alfresco.repo.dictionary.M2Model model)
    • getM2Model

      org.alfresco.repo.dictionary.M2Model getM2Model(org.alfresco.service.namespace.QName modelQName)
    • getHoleRetention

      long getHoleRetention()
    • checkAclInIndex

      org.alfresco.solr.AclReport checkAclInIndex(Long aclid, org.alfresco.solr.AclReport aclReport)
    • reportIndexTransactions

      org.alfresco.solr.tracker.IndexHealthReport reportIndexTransactions(Long minTxId, org.alfresco.solr.adapters.IOpenBitSet txIdsInDb, long maxTxId) throws IOException
      Throws:
      IOException
    • getDocsWithUncleanContent

      List<AlfrescoSolrDataModel.TenantDbId> getDocsWithUncleanContent() throws IOException
      Throws:
      IOException
    • updateContent

      void updateContent(AlfrescoSolrDataModel.TenantDbId docRef) throws Exception
      Throws:
      Exception
    • addCommonNodeReportInfo

      void addCommonNodeReportInfo(org.alfresco.solr.NodeReport nodeReport)
    • addContentOutdatedAndUpdatedCounts

      void addContentOutdatedAndUpdatedCounts(org.apache.solr.common.util.NamedList<Object> ihr)
      Adds to the input report container (a NamedList) the counts of nodes/documents whose content is outdated and updated (i.e. in synch with the CMS).
    • reportAclTransactionsInIndex

      org.alfresco.solr.tracker.IndexHealthReport reportAclTransactionsInIndex(Long minAclTxId, org.alfresco.solr.adapters.IOpenBitSet aclTxIdsInDb, long maxAclTxId)
    • getAclTxDocsSize

      int getAclTxDocsSize(String aclTxId, String aclTxCommitTime) throws IOException
      Throws:
      IOException
    • getMaxAclChangeSetIdAndCommitTimeInIndex

      org.alfresco.solr.client.AclChangeSet getMaxAclChangeSetIdAndCommitTimeInIndex()
    • getMaxTransactionIdAndCommitTimeInIndex

      org.alfresco.solr.client.Transaction getMaxTransactionIdAndCommitTimeInIndex()
    • getAdminHandler

      AlfrescoCoreAdminHandler getAdminHandler()
    • initSkippingDescendantDocs

      void initSkippingDescendantDocs()
    • registerTrackerThread

      void registerTrackerThread()
    • unregisterTrackerThread

      void unregisterTrackerThread()
    • reindexNodeByQuery

      void reindexNodeByQuery(String query) throws IOException, org.alfresco.httpclient.AuthenticationException, org.json.JSONException
      Throws:
      IOException
      org.alfresco.httpclient.AuthenticationException
      org.json.JSONException
    • getPort

      int getPort()
    • getHostName

      String getHostName()
    • getBaseUrl

      String getBaseUrl()
    • cascadeTrackingEnabled

      boolean cascadeTrackingEnabled()
      Check if cascade tracking is enabled.
      Returns:
      true if cascade tracking is enabled (note that this is the default behaviour if not specified in the properties file).