|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.terracotta.cluster.TerracottaProperties
public class TerracottaProperties
| Constructor Summary | |
|---|---|
TerracottaProperties()
|
|
| Method Summary | |
|---|---|
Boolean |
getBoolean(String key)
Returns a boolean for the given property in this properties object. |
Boolean |
getBoolean(String key,
Boolean defaultValue)
Returns a boolean for the given property in this properties object. |
Integer |
getInteger(String key)
Returns an integer for the given property in this properties object. |
Integer |
getInteger(String key,
Integer defaultValue)
Returns an integer for the given property in this properties object. |
Long |
getLong(String key)
Returns a long for the given property in this properties object. |
Long |
getLong(String key,
Long defaultValue)
Returns a long for the given property in this properties object. |
String |
getProperty(String key)
Searches for the property with the specified key in this properties object. |
String |
getProperty(String key,
String defaultValue)
Searches for the property with the specified key in this properties object. |
void |
setProperty(String key,
String value)
Sets the given property. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TerracottaProperties()
| Method Detail |
|---|
public Boolean getBoolean(String key,
Boolean defaultValue)
ClusterPropertiesIf the property is not found then the default value is returned;
Otherwise if the property is equal (ignoring case) to true then
Boolean.TRUE is returned, if not then Boolean.FALSE is
returned.
getBoolean in interface ClusterPropertieskey - the property key.
public Boolean getBoolean(String key)
ClusterProperties
If the property is found and is equal (ignoring case) to true then
Boolean.TRUE is returned. Otherwise Boolean.FALSE is returned.
getBoolean in interface ClusterPropertieskey - the property key.
public Integer getInteger(String key,
Integer defaultValue)
ClusterProperties
If the property is found and is successfully parsed as an Integer
value then the parsed integer value is returned. Otherwise the default
value is returned.
getInteger in interface ClusterPropertieskey - the property key.
Integer valuepublic Integer getInteger(String key)
ClusterProperties
If the property is found and is successfully parsed as an Integer
value then the parsed integer value is returned. Otherwise null is
returned.
getInteger in interface ClusterPropertieskey - the property key.
Integer value
public Long getLong(String key,
Long defaultValue)
ClusterProperties
If the property is found and is successfully parsed as a Long
value then the parsed long value is returned. Otherwise the default
value is returned.
getLong in interface ClusterPropertieskey - the property key.
Long valuepublic Long getLong(String key)
ClusterProperties
If the property is found and is successfully parsed as a Long
value then the parsed long value is returned. Otherwise null is
returned.
getLong in interface ClusterPropertieskey - the property key.
Long value
public String getProperty(String key,
String defaultValue)
ClusterPropertiesIf the property is not found then the default value is returned
getProperty in interface ClusterPropertieskey - the property key.
public String getProperty(String key)
ClusterProperties
If the property is not found then null is returned.
getProperty in interface ClusterPropertieskey - the property key.
public void setProperty(String key,
String value)
ClusterPropertiesThe given system property is set to the supplied string value.
setProperty in interface ClusterPropertieskey - the property keyvalue - the string to set the property to
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||