code: def send_query(self, query):
          ''' This method is called by the tasks. It is redirected to the submodule.'''
          if self.__switched_on:
              return self.__solr_server_connector.send_query(query)
          else:
              msg = 'Not sending query'
              LOGGER.debug(msg)
              raise esgfpid.exceptions.SolrSwitchedOff(msgf send_query(self, query):
          ''' This method is called by the tasks. It is redirected to the submodule.'''
          if self.__switched_on:
              return self.__solr_server_connector.send_query(query)
          else:
              msg = 'Not sending query'
              LOGGER.debug(msg)
              raise esgfpid.exceptions.SolrSwitchedOff(msg)
docs: This method is called by the tasks. It is redirected to the submodule.