Class SolrSchemaAndConfigUpgrader
java.lang.Object
edu.ucsb.nceas.metacat.admin.upgrade.solr.SolrSchemaAndConfigUpgrader
- All Implemented Interfaces:
UpgradeUtilityInterface
A class to upgrade solr configuration files in the upgrade process to Metacat 3.0.0
- Author:
- tao
-
Method Summary
Modifier and TypeMethodDescriptionstatic SolrSchemaAndConfigUpgrader
Get the singleton instancevoid
setSolrConfigUpgrader
(SolrConfigUpgrader configUpgrader) Set the SolrConfigUpgrader instance.void
setSolrSchemaUpgrader
(SolrSchemaUpgrader schemaUpgrader) Set the SolrSchemaUpgrader instance.boolean
upgrade()
-
Method Details
-
getInstance
public static SolrSchemaAndConfigUpgrader getInstance() throws edu.ucsb.nceas.utilities.PropertyNotFoundException, ServiceExceptionGet the singleton instance- Returns:
- the singleton instance of the SolrSchemaAndConfigUpgrader class
- Throws:
edu.ucsb.nceas.utilities.PropertyNotFoundException
ServiceException
-
upgrade
- Specified by:
upgrade
in interfaceUpgradeUtilityInterface
- Throws:
AdminException
-
setSolrSchemaUpgrader
Set the SolrSchemaUpgrader instance. This method is for the test class only.- Parameters:
schemaUpgrader
- the SolrSchemaUpgrader instance will be set
-
setSolrConfigUpgrader
Set the SolrConfigUpgrader instance. This method is for the test class only.- Parameters:
configUpgrader
- the SolrConfigUpgrader instance will be set.
-