Package org.apache.cassandra.locator
Class SnitchProperties
java.lang.Object
org.apache.cassandra.locator.SnitchProperties
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSnitchProperties(Properties properties) SnitchProperties(Pair<String, String>... pairs) -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet a snitch property value or return defaultValue if not defined.putIfAbsent(String key, String value) Returns this instance of snitch properties if key is present otherwise create new instance of properties and put key with a give value into ittoString()
-
Field Details
-
RACKDC_PROPERTY_FILENAME
-
-
Constructor Details
-
SnitchProperties
public SnitchProperties() -
SnitchProperties
-
SnitchProperties
-
-
Method Details
-
get
Get a snitch property value or return defaultValue if not defined. -
add
-
putIfAbsent
Returns this instance of snitch properties if key is present otherwise create new instance of properties and put key with a give value into it- Parameters:
key- key to addvalue- value to add- Returns:
- same properties if key is present or new object with added key and value if not
-
contains
-
getDcSuffix
-
toString
-