Class 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
      • Nested classes/interfaces inherited from interface org.apache.solr.security.PermissionNameProvider

        org.apache.solr.security.PermissionNameProvider.Name
      • Nested classes/interfaces inherited from interface org.apache.solr.core.SolrInfoMBean

        org.apache.solr.core.SolrInfoMBean.Category, org.apache.solr.core.SolrInfoMBean.Group
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String ALFRESCO_DEFAULTS  
      protected static String ARG_TXID  
      static String DATA_DIR_ROOT  
      static String DEFAULT_TEMPLATE  
      protected static org.slf4j.Logger LOGGER  
      • 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
      • Fields inherited from class org.apache.solr.handler.RequestHandlerBase

        appends, defaults, httpCaching, initArgs, invariants
      • Fields inherited from interface org.apache.solr.security.PermissionNameProvider

        ANY, NULL, values
      • Fields inherited from interface org.apache.solr.request.SolrRequestHandler

        TYPE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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)  
      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.
      • 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
      • Methods inherited from interface org.apache.solr.api.ApiSupport

        registerV1
    • Constructor Detail

      • AlfrescoCoreAdminHandler

        public AlfrescoCoreAdminHandler()
      • AlfrescoCoreAdminHandler

        public AlfrescoCoreAdminHandler​(org.apache.solr.core.CoreContainer coreContainer)
    • 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:
        shutdown in class org.apache.solr.handler.admin.CoreAdminHandler
      • handleCustomAction

        protected void handleCustomAction​(org.apache.solr.request.SolrQueryRequest req,
                                          org.apache.solr.response.SolrQueryResponse rsp)
        Overrides:
        handleCustomAction in class org.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:
      • setTrackerRegistry

        protected void setTrackerRegistry​(TrackerRegistry trackerRegistry)