|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.solr.common.cloud.ZkNodeProps
public class ZkNodeProps
ZkNodeProps contains immutable properties for a shard/solr core.
Constructor Summary | |
---|---|
ZkNodeProps(Map<String,String> propMap)
Construct ZKNodeProps from map. |
|
ZkNodeProps(String... keyVals)
Constructor that populates the from array of Strings in form key1, value1, key2, value2, ..., keyN, valueN |
|
ZkNodeProps(ZkNodeProps zkNodeProps)
Construct ZKNodeProps from information of an existingZKNodeProps. |
Method Summary | |
---|---|
boolean |
containsKey(String key)
Check if property key exists. |
String |
get(String key)
Get property value. |
Map<String,String> |
getProperties()
Get all properties as map. |
Set<String> |
keySet()
Get property keys. |
static ZkNodeProps |
load(byte[] bytes)
Create ZkNodeProps from json string that is typically stored in zookeeper. |
String |
toString()
|
void |
write(JSONWriter jsonWriter)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ZkNodeProps(Map<String,String> propMap)
public ZkNodeProps(ZkNodeProps zkNodeProps)
public ZkNodeProps(String... keyVals)
Method Detail |
---|
public Set<String> keySet()
public Map<String,String> getProperties()
public static ZkNodeProps load(byte[] bytes)
public void write(JSONWriter jsonWriter)
write
in interface JSONWriter.Writable
public String get(String key)
public String toString()
toString
in class Object
public boolean containsKey(String key)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |