public class DefaultClusterMetaData extends Object implements ClusterMetaData
null values. null keys are not allowed.| Constructor and Description |
|---|
DefaultClusterMetaData() |
| Modifier and Type | Method and Description |
|---|---|
Object |
getProperty(String key)
Returns the property stored using the given
key. |
boolean |
isPropertySet(String key)
Indicates whether a value is stored under the given
key. |
void |
removeProperty(String key)
Removes the value store under the given
key. |
void |
setProperty(String key,
Object value)
Stores a property
value under the given key. |
public Object getProperty(String key)
ClusterMetaDatakey. If no property has been stored using that key, it
returns null.getProperty in interface ClusterMetaDatakey - The key under which the property was storedkeypublic void setProperty(String key, Object value)
ClusterMetaDatavalue under the given key.setProperty in interface ClusterMetaDatakey - the key under which to store a valuevalue - the value to storepublic void removeProperty(String key)
ClusterMetaDatakey. If no such value is available, nothing happens.removeProperty in interface ClusterMetaDatakey - the key to removepublic boolean isPropertySet(String key)
ClusterMetaDatakey. Will also return true if a null
value is stored under the given key.isPropertySet in interface ClusterMetaDatakey - The key to findtrue if a value was stored under the given key, otherwise false.Copyright © 2010-2014. All Rights Reserved.