Class SolrScrapeConfiguration
- java.lang.Object
-
- org.apache.solr.prometheus.exporter.SolrScrapeConfiguration
-
public class SolrScrapeConfiguration extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SolrScrapeConfiguration.ConnectionType
static class
SolrScrapeConfiguration.SslConfiguration
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getBasicAuthPwd()
String
getBasicAuthUser()
Optional<String>
getSolrHost()
SolrScrapeConfiguration.SslConfiguration
getSslConfiguration()
SolrScrapeConfiguration.ConnectionType
getType()
Optional<String>
getZookeeperConnectionString()
boolean
isSSLEnabled()
static SolrScrapeConfiguration
solrCloud(String zookeeperConnectionString)
static SolrScrapeConfiguration
standalone(String solrHost)
String
toString()
SolrScrapeConfiguration
withBasicAuthCredentials(String user, String password)
SolrScrapeConfiguration
withSslConfiguration(Path keystorePath, String keystorePassword, Path trustStorePath, String trustStorePassword)
-
-
-
Method Detail
-
getType
public SolrScrapeConfiguration.ConnectionType getType()
-
solrCloud
public static SolrScrapeConfiguration solrCloud(String zookeeperConnectionString)
-
standalone
public static SolrScrapeConfiguration standalone(String solrHost)
-
withBasicAuthCredentials
public SolrScrapeConfiguration withBasicAuthCredentials(String user, String password)
-
getBasicAuthUser
public String getBasicAuthUser()
-
getBasicAuthPwd
public String getBasicAuthPwd()
-
withSslConfiguration
public SolrScrapeConfiguration withSslConfiguration(Path keystorePath, String keystorePassword, Path trustStorePath, String trustStorePassword)
-
isSSLEnabled
public boolean isSSLEnabled()
-
getSslConfiguration
public SolrScrapeConfiguration.SslConfiguration getSslConfiguration()
-
-