public class AlfrescoCoreAdminHandler
extends org.apache.solr.handler.admin.CoreAdminHandler
org.apache.solr.handler.admin.CoreAdminHandler.InvocableCOMPLETED, coreContainer, FAILED, MAX_TRACKED_REQUESTS, parallelExecutor, paramToProp, requestStatusMap, RESPONSE, RESPONSE_MESSAGE, RESPONSE_STATUS, RUNNING| Constructor and Description |
|---|
AlfrescoCoreAdminHandler() |
AlfrescoCoreAdminHandler(org.apache.solr.core.CoreContainer coreContainer) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.solr.common.util.NamedList<Object> |
actionFIX(org.apache.solr.common.params.SolrParams params)
Find transactions and acls missing or duplicated in the cores and
add them to be reindexed on the next maintenance operation
performed by MetadataTracker and AclTracker.
|
ConcurrentHashMap<String,InformationServer> |
getInformationServers() |
SolrTrackerScheduler |
getScheduler() |
TrackerRegistry |
getTrackerRegistry() |
protected void |
handleCustomAction(org.apache.solr.request.SolrQueryRequest req,
org.apache.solr.response.SolrQueryResponse rsp) |
boolean |
hasAlfrescoCore(Collection<org.apache.solr.core.SolrCore> cores)
Tests to see if one of the cores is an Alfresco special core!
|
protected boolean |
newCore(String coreName,
int numShards,
org.alfresco.service.cmr.repository.StoreRef storeRef,
String templateName,
int replicationFactor,
int nodeInstance,
int numNodes,
String shardIds,
Properties extraProperties,
org.apache.solr.response.SolrQueryResponse rsp) |
protected boolean |
newDefaultCore(String coreName,
org.alfresco.service.cmr.repository.StoreRef storeRef,
String templateName,
Properties extraProperties,
org.apache.solr.response.SolrQueryResponse rsp) |
protected void |
setTrackerRegistry(TrackerRegistry trackerRegistry) |
protected void |
setupNewDefaultCores(String createDefaultCores)
Creates new default cores based on the "createDefaultCores" String passed in
|
void |
shutdown()
Shutsdown services that exist outside of the core.
|
void |
startup(org.apache.solr.core.CoreContainer coreContainer)
Startup services that exist outside of the core.
|
buildCoreParams, getApis, getCategory, getCoreContainer, getDescription, getPermissionName, handleRequestBody, init, initializeMetrics, normalizePath, params, registerV2getDocs, getInitArgs, getName, getPluginInfo, getRequestHandler, getSolrParamsFromNamedList, getSource, getStatistics, getSubHandler, getVersion, handleRequest, setPluginInfoprotected static final org.slf4j.Logger LOGGER
public static final String DATA_DIR_ROOT
public static final String ALFRESCO_DEFAULTS
public static final String DEFAULT_TEMPLATE
protected static final String ACTION_STATUS_SCHEDULED
protected static final String DRY_RUN_PARAMETER_NAME
protected static final String FROM_TX_COMMIT_TIME_PARAMETER_NAME
protected static final String TO_TX_COMMIT_TIME_PARAMETER_NAME
protected static final String MAX_TRANSACTIONS_TO_SCHEDULE_PARAMETER_NAME
protected static final String MAX_TRANSACTIONS_TO_SCHEDULE_CONF_PROPERTY_NAME
protected static final String TX_IN_INDEX_NOT_IN_DB
protected static final String DUPLICATED_TX_IN_INDEX
protected static final String MISSING_TX_IN_INDEX
protected static final String ACL_TX_IN_INDEX_NOT_IN_DB
protected static final String DUPLICATED_ACL_TX_IN_INDEX
protected static final String MISSING_ACL_TX_IN_INDEX
protected static final String ACTION_STATUS_LABEL
protected static final String ACTION_ERROR_MESSAGE_LABEL
protected static final String ACTION_TX_TO_REINDEX
protected static final String ACTION_ACL_CHANGE_SET_TO_REINDEX
public AlfrescoCoreAdminHandler()
public AlfrescoCoreAdminHandler(org.apache.solr.core.CoreContainer coreContainer)
public void startup(org.apache.solr.core.CoreContainer coreContainer)
protected void setupNewDefaultCores(String createDefaultCores)
createDefaultCores - comma delimited list of corenames.public void shutdown()
shutdown in class org.apache.solr.handler.admin.CoreAdminHandlerprotected void handleCustomAction(org.apache.solr.request.SolrQueryRequest req,
org.apache.solr.response.SolrQueryResponse rsp)
handleCustomAction in class org.apache.solr.handler.admin.CoreAdminHandlerprotected boolean newDefaultCore(String coreName, org.alfresco.service.cmr.repository.StoreRef storeRef, String templateName, Properties extraProperties, org.apache.solr.response.SolrQueryResponse rsp)
protected boolean newCore(String coreName, int numShards, org.alfresco.service.cmr.repository.StoreRef storeRef, String templateName, int replicationFactor, int nodeInstance, int numNodes, String shardIds, Properties extraProperties, org.apache.solr.response.SolrQueryResponse rsp)
public boolean hasAlfrescoCore(Collection<org.apache.solr.core.SolrCore> cores)
cores - protected org.apache.solr.common.util.NamedList<Object> actionFIX(org.apache.solr.common.params.SolrParams params) throws org.json.JSONException
params - - core, optional: The name of the SOLR Coreorg.json.JSONExceptionpublic ConcurrentHashMap<String,InformationServer> getInformationServers()
public TrackerRegistry getTrackerRegistry()
protected void setTrackerRegistry(TrackerRegistry trackerRegistry)
public SolrTrackerScheduler getScheduler()
Copyright © 2005–2020 Alfresco Software. All rights reserved.