Package org.apache.solr.common.cloud
Class ZkNodeProps
java.lang.Object
org.apache.solr.common.cloud.ZkNodeProps
- All Implemented Interfaces:
MapSerializable,MapWriter,NavigableObject,org.noggit.JSONWriter.Writable
- Direct Known Subclasses:
DocCollection,Replica,RoutingRule,Slice
ZkNodeProps contains generic immutable properties.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.solr.common.MapWriter
MapWriter.EntryWriter -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionZkNodeProps(String... keyVals) Constructor that populates from an array of Strings in form key1, value1, key2, value2, ..., keyN, valueNZkNodeProps(Map<String, Object> propMap) Construct ZKNodeProps from map.ZkNodeProps(MapWriter mw) -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsKey(String key) Check if property key exists.booleanbooleanGet a string property value.Get all properties as map.Get a string property value.Get a string property value.inthashCode()keySet()Get property keys.static ZkNodePropsload(byte[] bytes) Create Replica from json string that is typically stored in zookeeper.Returns a shallow writable copy of the propertiestoString()voidWrites this object's entries out toew.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.solr.common.NavigableObject
_forEachEntry, _forEachEntry, _forEachEntry, _get, _get, _getStr, _getStr, _size
-
Field Details
-
propMap
-
-
Constructor Details
-
ZkNodeProps
Construct ZKNodeProps from map. -
ZkNodeProps
-
ZkNodeProps
Constructor that populates from an array of Strings in form key1, value1, key2, value2, ..., keyN, valueN
-
-
Method Details
-
plus
-
plus
-
keySet
Get property keys. -
getProperties
Get all properties as map. -
shallowCopy
Returns a shallow writable copy of the properties -
load
Create Replica from json string that is typically stored in zookeeper. -
getStr
Get a string property value. -
getInt
Get a string property value. -
getStr
Get a string property value. -
get
-
toString
-
containsKey
Check if property key exists. -
getBool
-
writeMap
Description copied from interface:MapWriterWrites this object's entries out toew.- Specified by:
writeMapin interfaceMapWriter- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-