public class LegacySolrInformationServer extends Object implements org.apache.solr.core.CloseHook, InformationServer
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
log |
PROP_PREFIX_PARENT_ASPECT, PROP_PREFIX_PARENT_TYPE| Constructor and Description |
|---|
LegacySolrInformationServer(AlfrescoCoreAdminHandler adminHandler,
org.apache.solr.core.SolrCore core) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterInitModels() |
org.alfresco.solr.AclReport |
checkAclInIndex(Long aclid,
org.alfresco.solr.AclReport aclReport) |
void |
checkCache() |
org.alfresco.solr.tracker.IndexHealthReport |
checkIndexTransactions(org.alfresco.solr.tracker.IndexHealthReport indexHealthReport,
Long minTxId,
Long minAclTxId,
org.alfresco.solr.adapters.IOpenBitSet txIdsInDb,
long maxTxId,
org.alfresco.solr.adapters.IOpenBitSet aclTxIdsInDb,
long maxAclTxId) |
org.alfresco.solr.NodeReport |
checkNodeCommon(org.alfresco.solr.NodeReport nodeReport) |
void |
close(org.apache.solr.core.SolrCore core) |
void |
commit() |
void |
deleteByAclChangeSetId(Long aclChangeSetId) |
void |
deleteByAclId(Long aclId) |
void |
deleteByNodeId(Long nodeId) |
void |
deleteByTransactionId(Long transactionId) |
List<org.alfresco.solr.client.AlfrescoModel> |
getAlfrescoModels() |
Iterable<Map.Entry<String,Object>> |
getCoreStats() |
org.alfresco.repo.dictionary.DictionaryComponent |
getDictionaryService(String alternativeDictionary) |
int |
getDocSetSize(String targetTxId,
String targetTxCommitTime) |
Set<Long> |
getErrorDocIds() |
long |
getHoleRetention() |
org.alfresco.repo.dictionary.M2Model |
getM2Model(org.alfresco.service.namespace.QName modelQName) |
Map<String,Set<String>> |
getModelErrors() |
org.alfresco.repo.dictionary.NamespaceDAO |
getNamespaceDAO() |
org.alfresco.solr.adapters.IOpenBitSet |
getOpenBitSetInstance() |
int |
getRegisteredSearcherCount() |
protected List<org.apache.solr.search.SolrIndexSearcher> |
getRegisteredSearchers() |
<T> org.alfresco.solr.adapters.ISimpleOrderedMap<T> |
getSimpleOrderedMapInstance() |
Tracker |
getTracker() |
org.alfresco.solr.TrackerState |
getTrackerInitialState() |
org.alfresco.solr.TrackerState |
getTrackerState() |
org.alfresco.solr.tracker.TrackerStats |
getTrackerStats() |
long |
indexAcl(List<org.alfresco.solr.client.AclReaders> aclReaderList,
boolean overwrite) |
void |
indexAclTransaction(org.alfresco.solr.client.AclChangeSet changeSet,
boolean overwrite) |
void |
indexNode(org.alfresco.solr.client.Node node,
boolean overwrite) |
void |
indexTransaction(org.alfresco.solr.client.Transaction info,
boolean overwrite) |
boolean |
isInIndex(String fieldType,
long id) |
boolean |
putModel(org.alfresco.repo.dictionary.M2Model model) |
void |
rollback() |
static org.apache.lucene.document.Document |
toDocument(org.apache.solr.common.SolrInputDocument doc,
org.apache.solr.schema.IndexSchema schema,
AlfrescoSolrDataModel model) |
public LegacySolrInformationServer(AlfrescoCoreAdminHandler adminHandler, org.apache.solr.core.SolrCore core)
public void close(org.apache.solr.core.SolrCore core)
close in interface org.apache.solr.core.CloseHookpublic void rollback()
throws IOException
rollback in interface InformationServerIOExceptionpublic void commit()
throws IOException
commit in interface InformationServerIOExceptionpublic static org.apache.lucene.document.Document toDocument(org.apache.solr.common.SolrInputDocument doc,
org.apache.solr.schema.IndexSchema schema,
AlfrescoSolrDataModel model)
protected List<org.apache.solr.search.SolrIndexSearcher> getRegisteredSearchers()
public Iterable<Map.Entry<String,Object>> getCoreStats() throws IOException
getCoreStats in interface InformationServerIOExceptionpublic org.alfresco.solr.NodeReport checkNodeCommon(org.alfresco.solr.NodeReport nodeReport)
checkNodeCommon in interface InformationServerpublic void indexTransaction(org.alfresco.solr.client.Transaction info,
boolean overwrite)
throws IOException
indexTransaction in interface InformationServerIOExceptionpublic void indexAclTransaction(org.alfresco.solr.client.AclChangeSet changeSet,
boolean overwrite)
throws IOException
indexAclTransaction in interface InformationServerIOExceptionpublic void deleteByTransactionId(Long transactionId) throws IOException
deleteByTransactionId in interface InformationServerIOExceptionpublic void deleteByNodeId(Long nodeId) throws IOException
deleteByNodeId in interface InformationServerIOExceptionpublic void indexNode(org.alfresco.solr.client.Node node,
boolean overwrite)
throws IOException,
org.alfresco.httpclient.AuthenticationException,
org.json.JSONException
indexNode in interface InformationServerIOExceptionorg.alfresco.httpclient.AuthenticationExceptionorg.json.JSONExceptionpublic Set<Long> getErrorDocIds() throws IOException
getErrorDocIds in interface InformationServerIOExceptionpublic void deleteByAclChangeSetId(Long aclChangeSetId) throws IOException
deleteByAclChangeSetId in interface InformationServerIOExceptionpublic void deleteByAclId(Long aclId) throws IOException
deleteByAclId in interface InformationServerIOExceptionpublic long indexAcl(List<org.alfresco.solr.client.AclReaders> aclReaderList, boolean overwrite) throws IOException
indexAcl in interface InformationServerIOExceptionpublic org.alfresco.solr.TrackerState getTrackerInitialState()
throws IOException
getTrackerInitialState in interface InformationServerIOExceptionpublic org.alfresco.solr.TrackerState getTrackerState()
getTrackerState in interface InformationServerpublic int getDocSetSize(String targetTxId, String targetTxCommitTime) throws IOException
getDocSetSize in interface InformationServerIOExceptionpublic int getRegisteredSearcherCount()
getRegisteredSearcherCount in interface InformationServerpublic void checkCache()
throws IOException
checkCache in interface InformationServerIOExceptionpublic boolean isInIndex(String fieldType, long id) throws IOException
isInIndex in interface InformationServerIOExceptionpublic org.alfresco.solr.AclReport checkAclInIndex(Long aclid, org.alfresco.solr.AclReport aclReport)
checkAclInIndex in interface InformationServerpublic org.alfresco.solr.tracker.IndexHealthReport checkIndexTransactions(org.alfresco.solr.tracker.IndexHealthReport indexHealthReport,
Long minTxId,
Long minAclTxId,
org.alfresco.solr.adapters.IOpenBitSet txIdsInDb,
long maxTxId,
org.alfresco.solr.adapters.IOpenBitSet aclTxIdsInDb,
long maxAclTxId)
throws IOException
checkIndexTransactions in interface InformationServerIOExceptionpublic Tracker getTracker()
public Map<String,Set<String>> getModelErrors()
getModelErrors in interface InformationServerpublic org.alfresco.solr.adapters.IOpenBitSet getOpenBitSetInstance()
getOpenBitSetInstance in interface org.alfresco.solr.InformationServerCollectionProviderpublic <T> org.alfresco.solr.adapters.ISimpleOrderedMap<T> getSimpleOrderedMapInstance()
getSimpleOrderedMapInstance in interface org.alfresco.solr.InformationServerCollectionProviderpublic org.alfresco.repo.dictionary.DictionaryComponent getDictionaryService(String alternativeDictionary)
getDictionaryService in interface InformationServerpublic org.alfresco.repo.dictionary.NamespaceDAO getNamespaceDAO()
getNamespaceDAO in interface InformationServerpublic List<org.alfresco.solr.client.AlfrescoModel> getAlfrescoModels()
getAlfrescoModels in interface InformationServerpublic void afterInitModels()
afterInitModels in interface InformationServerpublic boolean putModel(org.alfresco.repo.dictionary.M2Model model)
putModel in interface InformationServerpublic org.alfresco.repo.dictionary.M2Model getM2Model(org.alfresco.service.namespace.QName modelQName)
getM2Model in interface InformationServerpublic long getHoleRetention()
getHoleRetention in interface InformationServerpublic org.alfresco.solr.tracker.TrackerStats getTrackerStats()
getTrackerStats in interface InformationServerCopyright © 2005–2017 Alfresco Software. All rights reserved.