Package org.alfresco.solr
Class AlfrescoCoreAdminHandler
- java.lang.Object
-
- org.apache.solr.handler.RequestHandlerBase
-
- org.apache.solr.handler.admin.CoreAdminHandler
-
- org.alfresco.solr.AlfrescoCoreAdminHandler
-
- All Implemented Interfaces:
org.apache.solr.api.ApiSupport,org.apache.solr.core.SolrInfoMBean,org.apache.solr.handler.NestedRequestHandler,org.apache.solr.metrics.SolrMetricProducer,org.apache.solr.request.SolrRequestHandler,org.apache.solr.security.PermissionNameProvider
public class AlfrescoCoreAdminHandler extends org.apache.solr.handler.admin.CoreAdminHandler
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.solr.handler.admin.CoreAdminHandler
org.apache.solr.handler.admin.CoreAdminHandler.Invocable
-
-
Field Summary
Fields Modifier and Type Field Description static StringALFRESCO_DEFAULTSprotected static StringARG_TXIDstatic StringDATA_DIR_ROOTstatic StringDEFAULT_TEMPLATEprotected static org.slf4j.LoggerLOGGER-
Fields inherited from class org.apache.solr.handler.admin.CoreAdminHandler
COMPLETED, coreContainer, FAILED, MAX_TRACKED_REQUESTS, parallelExecutor, paramToProp, requestStatusMap, RESPONSE, RESPONSE_MESSAGE, RESPONSE_STATUS, RUNNING
-
-
Constructor Summary
Constructors Constructor Description AlfrescoCoreAdminHandler()AlfrescoCoreAdminHandler(org.apache.solr.core.CoreContainer coreContainer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConcurrentHashMap<String,InformationServer>getInformationServers()SolrTrackerSchedulergetScheduler()TrackerRegistrygetTrackerRegistry()protected voidhandleCustomAction(org.apache.solr.request.SolrQueryRequest req, org.apache.solr.response.SolrQueryResponse rsp)booleanhasAlfrescoCore(Collection<org.apache.solr.core.SolrCore> cores)Tests to see if one of the cores is an Alfresco special core!protected booleannewCore(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 booleannewDefaultCore(String coreName, org.alfresco.service.cmr.repository.StoreRef storeRef, String templateName, Properties extraProperties, org.apache.solr.response.SolrQueryResponse rsp)protected voidsetTrackerRegistry(TrackerRegistry trackerRegistry)voidshutdown()Shutsdown services that exist outside of the core.voidstartup(org.apache.solr.core.CoreContainer coreContainer)Startup services that exist outside of the core.-
Methods inherited from class org.apache.solr.handler.admin.CoreAdminHandler
buildCoreParams, getApis, getCategory, getCoreContainer, getDescription, getPermissionName, handleRequestBody, init, initializeMetrics, normalizePath, params, registerV2
-
Methods inherited from class org.apache.solr.handler.RequestHandlerBase
getDocs, getInitArgs, getName, getPluginInfo, getRequestHandler, getSolrParamsFromNamedList, getSource, getStatistics, getSubHandler, getVersion, handleRequest, setPluginInfo
-
-
-
-
Field Detail
-
LOGGER
protected static final org.slf4j.Logger LOGGER
-
ARG_TXID
protected static final String ARG_TXID
- See Also:
- Constant Field Values
-
DATA_DIR_ROOT
public static final String DATA_DIR_ROOT
- See Also:
- Constant Field Values
-
ALFRESCO_DEFAULTS
public static final String ALFRESCO_DEFAULTS
- See Also:
- Constant Field Values
-
DEFAULT_TEMPLATE
public static final String DEFAULT_TEMPLATE
- See Also:
- Constant Field Values
-
-
Method Detail
-
startup
public void startup(org.apache.solr.core.CoreContainer coreContainer)
Startup services that exist outside of the core.
-
shutdown
public void shutdown()
Shutsdown services that exist outside of the core.- Overrides:
shutdownin classorg.apache.solr.handler.admin.CoreAdminHandler
-
handleCustomAction
protected void handleCustomAction(org.apache.solr.request.SolrQueryRequest req, org.apache.solr.response.SolrQueryResponse rsp)- Overrides:
handleCustomActionin classorg.apache.solr.handler.admin.CoreAdminHandler
-
newDefaultCore
protected boolean newDefaultCore(String coreName, org.alfresco.service.cmr.repository.StoreRef storeRef, String templateName, Properties extraProperties, org.apache.solr.response.SolrQueryResponse rsp)
-
newCore
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)
-
hasAlfrescoCore
public boolean hasAlfrescoCore(Collection<org.apache.solr.core.SolrCore> cores)
Tests to see if one of the cores is an Alfresco special core!- Parameters:
cores-- Returns:
-
getInformationServers
public ConcurrentHashMap<String,InformationServer> getInformationServers()
-
getTrackerRegistry
public TrackerRegistry getTrackerRegistry()
-
setTrackerRegistry
protected void setTrackerRegistry(TrackerRegistry trackerRegistry)
-
getScheduler
public SolrTrackerScheduler getScheduler()
-
-