Class SolrSchemaAndConfigUpgrader

java.lang.Object
edu.ucsb.nceas.metacat.admin.upgrade.solr.SolrSchemaAndConfigUpgrader
All Implemented Interfaces:
UpgradeUtilityInterface

public class SolrSchemaAndConfigUpgrader extends Object implements UpgradeUtilityInterface
A class to upgrade solr configuration files in the upgrade process to Metacat 3.0.0
Author:
tao
  • Method Details

    • getInstance

      public static SolrSchemaAndConfigUpgrader getInstance() throws edu.ucsb.nceas.utilities.PropertyNotFoundException, ServiceException
      Get the singleton instance
      Returns:
      the singleton instance of the SolrSchemaAndConfigUpgrader class
      Throws:
      edu.ucsb.nceas.utilities.PropertyNotFoundException
      ServiceException
    • upgrade

      public boolean upgrade() throws AdminException
      Specified by:
      upgrade in interface UpgradeUtilityInterface
      Throws:
      AdminException
    • setSolrSchemaUpgrader

      public void setSolrSchemaUpgrader(SolrSchemaUpgrader schemaUpgrader)
      Set the SolrSchemaUpgrader instance. This method is for the test class only.
      Parameters:
      schemaUpgrader - the SolrSchemaUpgrader instance will be set
    • setSolrConfigUpgrader

      public void setSolrConfigUpgrader(SolrConfigUpgrader configUpgrader)
      Set the SolrConfigUpgrader instance. This method is for the test class only.
      Parameters:
      configUpgrader - the SolrConfigUpgrader instance will be set.