Package org.apache.solr.common.cloud
Class ZkDynamicConfig
java.lang.Object
org.apache.solr.common.cloud.ZkDynamicConfig
Class holding the dynamic config of a Zookeeper ensemble as fetched from znode
/zookeeper/config.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classObject representing one line in Zk dynamic config -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ZkDynamicConfigfromZkConnectString(String zkHost) Creates an instance based on a zookeeper connect string on formathost:port,host:port[/chroot]static ZkDynamicConfigparseLines(String lines) Parse a raw multi line config string with the full content of znode /zookeeper/config.intsize()
-
Field Details
-
linePattern
-
-
Method Details
-
parseLines
Parse a raw multi line config string with the full content of znode /zookeeper/config.- Parameters:
lines- the multi line config string. If empty or null, this will return an empty list- Returns:
- an instance of ZkDynamicConfig
-
fromZkConnectString
Creates an instance based on a zookeeper connect string on formathost:port,host:port[/chroot]- Parameters:
zkHost- zk connect string- Returns:
- instance of ZkDynamicConfig
-
getServers
-
getVersion
-
size
public int size()
-