Class SolrJvmVersionFinder
java.lang.Object
edu.ucsb.nceas.metacat.admin.upgrade.solr.SolrJvmVersionFinder
A class to find the version of a JVM against which the solr is running
- Author:
- tao
-
Constructor Details
-
SolrJvmVersionFinder
public SolrJvmVersionFinder(String solrBaseUrl) throws IllegalArgumentException, ParserConfigurationException Constructor- Parameters:
solrBaseUrl
- the base url of this solr server- Throws:
IllegalArgumentException
ParserConfigurationException
-
-
Method Details
-
find
Parse the solr admin information and find the jvm version- Returns:
- the jvm version. An empty string will return if it can't find it.
- Throws:
URISyntaxException
IOException
SAXException
TransformerException
-
getSolrAdminInfo
Get the solr admin information from the solr information url. The return xml segment may look like :Oracle Corporation 1.8.0_351 - Returns:
- the solr admin information by the xml format
- Throws:
URISyntaxException
IOException
-