public class ClusterProperties extends Object
ZkStateReader.getClusterProperty(String, Object)| Constructor and Description | 
|---|
| ClusterProperties(SolrZkClient client)Creates a ClusterProperties object using a provided SolrZkClient | 
| Modifier and Type | Method and Description | 
|---|---|
| Map<String,Object> | getClusterProperties()Return the cluster properties | 
| <T> T | getClusterProperty(String key,
                  T defaultValue)Read the value of a cluster property, returning a default if it is not set | 
| void | setClusterProperty(String propertyName,
                  String propertyValue)This method sets a cluster property. | 
public ClusterProperties(SolrZkClient client)
public <T> T getClusterProperty(String key, T defaultValue) throws IOException
T - the type of the propertykey - the property namedefaultValue - the default valueIOException - if there is an error reading the value from the clusterpublic Map<String,Object> getClusterProperties() throws IOException
IOException - if there is an error reading properties from the clusterpublic void setClusterProperty(String propertyName, String propertyValue) throws IOException
propertyName - The property name to be set.propertyValue - The value of the property.IOException - if there is an error writing data to the clusterCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.