Package org.apache.solr.common.cloud
Class ZkDynamicConfig
- java.lang.Object
- 
- org.apache.solr.common.cloud.ZkDynamicConfig
 
- 
 public class ZkDynamicConfig extends Object Class holding the dynamic config of a Zookeeper ensemble as fetched from znode/zookeeper/config.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classZkDynamicConfig.ServerObject representing one line in Zk dynamic config
 - 
Field SummaryFields Modifier and Type Field Description static PatternlinePattern
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ZkDynamicConfigfromZkConnectString(String zkHost)Creates an instance based on a zookeeper connect string on formathost:port,host:port[/chroot]List<ZkDynamicConfig.Server>getServers()StringgetVersion()static ZkDynamicConfigparseLines(String lines)Parse a raw multi line config string with the full content of znode /zookeeper/config.intsize()
 
- 
- 
- 
Field Detail- 
linePatternpublic static final Pattern linePattern 
 
- 
 - 
Method Detail- 
parseLinespublic static ZkDynamicConfig parseLines(String lines) 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
 
 - 
fromZkConnectStringpublic static ZkDynamicConfig fromZkConnectString(String zkHost) Creates an instance based on a zookeeper connect string on formathost:port,host:port[/chroot]- Parameters:
- zkHost- zk connect string
- Returns:
- instance of ZkDynamicConfig
 
 - 
getServerspublic List<ZkDynamicConfig.Server> getServers() 
 - 
getVersionpublic String getVersion() 
 - 
sizepublic int size() 
 
- 
 
-