public class CollectionProperties extends Object
ZkStateReader.getCollectionProperties(String)| Constructor and Description | 
|---|
| CollectionProperties(SolrZkClient client)Creates a CollectionProperties object using a provided SolrZkClient | 
| Modifier and Type | Method and Description | 
|---|---|
| Map<String,String> | getCollectionProperties(String collection)Return the collection properties | 
| String | getCollectionProperty(String collection,
                     String key,
                     String defaultValue)Read the value of a collection property, returning a default if it is not set | 
| void | setCollectionProperty(String collection,
                     String propertyName,
                     String propertyValue)This method sets a collection property. | 
public CollectionProperties(SolrZkClient client)
public String getCollectionProperty(String collection, String key, String defaultValue) throws IOException
key - the property namedefaultValue - the default valueIOException - if there is an error reading the value from zookeeperpublic Map<String,String> getCollectionProperties(String collection) throws IOException
IOException - if there is an error reading properties from zookeeperpublic void setCollectionProperty(String collection, String propertyName, String propertyValue) throws IOException
collection - The property name to be set.propertyName - The property name to be set.propertyValue - The value of the property.IOException - if there is an error writing data to zookeeperCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.