public class ZkNodeProps extends Object implements JSONWriter.Writable
| Modifier and Type | Field and Description | 
|---|---|
| protected Map<String,Object> | propMap | 
| static boolean | STORE_BASE_URLFeature flag to enable storing the 'base_url' property; base_url will not be stored as of Solr 9.x. | 
| Constructor and Description | 
|---|
| ZkNodeProps(Map<String,Object> propMap)Construct ZKNodeProps from map. | 
| ZkNodeProps(String... keyVals)Constructor that populates the from array of Strings in form key1, value1,
 key2, value2, ..., keyN, valueN | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | containsKey(String key)Check if property key exists. | 
| boolean | equals(Object that) | 
| static ZkNodeProps | fromKeyVals(Object... keyVals) | 
| Object | get(String key) | 
| boolean | getBool(String key,
       boolean b) | 
| Integer | getInt(String key,
      Integer def)Get a string property value. | 
| Map<String,Object> | getProperties()Get all properties as map. | 
| String | getStr(String key)Get a string property value. | 
| String | getStr(String key,
      String def)Get a string property value. | 
| int | hashCode() | 
| Set<String> | keySet()Get property keys. | 
| static ZkNodeProps | load(byte[] bytes)Create Replica from json string that is typically stored in zookeeper. | 
| ZkNodeProps | plus(Map<String,Object> newVals) | 
| ZkNodeProps | plus(String key,
    Object val) | 
| Map<String,Object> | shallowCopy()Returns a shallow writable copy of the properties | 
| String | toString() | 
| void | write(JSONWriter jsonWriter) | 
public static final boolean STORE_BASE_URL
public ZkNodeProps(String... keyVals)
public ZkNodeProps plus(String key, Object val)
public ZkNodeProps plus(Map<String,Object> newVals)
public static ZkNodeProps fromKeyVals(Object... keyVals)
public Map<String,Object> shallowCopy()
public static ZkNodeProps load(byte[] bytes)
public void write(JSONWriter jsonWriter)
write in interface JSONWriter.Writablepublic boolean containsKey(String key)
public boolean getBool(String key, boolean b)
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.