edu.ucsb.nceas.metacat.admin.upgrade.solr

## Class SolrConfigUpgrader

- java.lang.Object
- - edu.ucsb.nceas.metacat.admin.upgrade.solr.SolrConfigUpgrader

-     public class SolrConfigUpgrader
      extends java.lang.Object

  This class represents an object to upgrade the solrconfig.xml on the Metacat upgrade process.
  Author:
    tao

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SolrConfigUpgrader()` Constructor

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `upgrade()` Upgrade the solrconfig.xml on the solr home.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### SolrConfigUpgrader

          public SolrConfigUpgrader()
                             throws edu.ucsb.nceas.utilities.PropertyNotFoundException,
                                    ServiceException

      Constructor
      Throws:
        `edu.ucsb.nceas.utilities.PropertyNotFoundException`
        `ServiceException`

  - ### Method Detail

    - #### upgrade

          public void upgrade()
                       throws AdminException,
                              java.io.IOException,
                              java.security.NoSuchAlgorithmException,
                              SolrSchemaModificationException

      Upgrade the solrconfig.xml on the solr home. If the existing solrconfigure.xml's hash codes doesn't match released ones, we will copy it as solrconfigure.xml and give user an warning.
      Throws:
        `AdminException`
        `java.io.IOException`
        `java.security.NoSuchAlgorithmException`
        `SolrSchemaModificationException`

Copyright © 2020 Regents of the University of California. All Rights Reserved.