public class SolrEnvironment extends Object
Constructor and Description |
---|
SolrEnvironment() |
Modifier and Type | Method and Description |
---|---|
String |
getCode() |
String |
getColor() |
static SolrEnvironment |
getFromSyspropOrClusterprop(ZkStateReader zkStateReader)
Gets and parses the solr environment configuration string from either
System properties "solr.environment" or from Clusterprop "environment"
|
String |
getLabel() |
boolean |
isDefined() |
static SolrEnvironment |
parse(String environmentString)
Parse an environment string of format <prod|stage|test|dev>
with an optional label and color as arguments
|
public String getCode()
public String getLabel()
public String getColor()
public boolean isDefined()
public static SolrEnvironment parse(String environmentString)
environmentString
- the raw string to parsepublic static SolrEnvironment getFromSyspropOrClusterprop(ZkStateReader zkStateReader)
zkStateReader
- pass in the zkStateReader if in cloud modeCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.