mirror of https://github.com/apache/lucene.git
Consistently use ZkStateReader.CONSTANT in Replica.java (instead of mix of ZkStateReader.CONSTANT and import ZkStateReader.CONSTANT).
This commit is contained in:
parent
00b5930cc9
commit
e730ced5ef
|
@ -22,9 +22,6 @@ import java.util.Set;
|
|||
|
||||
import org.noggit.JSONUtil;
|
||||
|
||||
import static org.apache.solr.common.cloud.ZkStateReader.BASE_URL_PROP;
|
||||
import static org.apache.solr.common.cloud.ZkStateReader.CORE_NAME_PROP;
|
||||
|
||||
public class Replica extends ZkNodeProps {
|
||||
|
||||
/**
|
||||
|
@ -134,14 +131,14 @@ public class Replica extends ZkNodeProps {
|
|||
}
|
||||
|
||||
public String getCoreUrl() {
|
||||
return ZkCoreNodeProps.getCoreUrl(getStr(BASE_URL_PROP), getStr(CORE_NAME_PROP));
|
||||
return ZkCoreNodeProps.getCoreUrl(getStr(ZkStateReader.BASE_URL_PROP), getStr(ZkStateReader.CORE_NAME_PROP));
|
||||
}
|
||||
public String getBaseUrl(){
|
||||
return getStr(ZkStateReader.BASE_URL_PROP);
|
||||
}
|
||||
|
||||
public String getCoreName() {
|
||||
return getStr(CORE_NAME_PROP);
|
||||
return getStr(ZkStateReader.CORE_NAME_PROP);
|
||||
}
|
||||
|
||||
/** The name of the node this replica resides on */
|
||||
|
|
Loading…
Reference in New Issue