|
Brooklyn | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
public interface ConfigMap
Method Summary | |
---|---|
java.util.Map
|
asMapWithStringKeys()
returns a read-only map view which has string keys (corresponding to the config key names); callers encouraged to use the typed keys (and so not use this method), but in some compatibility areas having a Properties-like view is useful |
java.util.Map
|
getAllConfig()
returns a map of all config keys to their raw (unresolved+uncoerced) contents |
java.lang.Object
|
getConfig(ConfigKey key)
@see #getConfig(ConfigKey, Object), with default value as per the key, or null |
java.lang.Object
|
getConfig(HasConfigKey key)
@see #getConfig(ConfigKey, Object), with default value as per the key, or null |
java.lang.Object
|
getConfig(HasConfigKey key, java.lang.Object defaultValue)
@see #getConfig(ConfigKey, Object), with provided default value if not set |
java.lang.Object
|
getConfig(ConfigKey key, java.lang.Object defaultValue)
returns value stored against the given key, resolved (if it is a Task, possibly blocking), and coerced to the appropriate type, or given default value if not set |
java.lang.Object
|
getRawConfig(ConfigKey key)
returns the value stored against the given key, not any default, not resolved (and guaranteed non-blocking) and not type-coerced |
ConfigMap
|
submap(Predicate filter)
returns submap matching the given filter predicate; see ConfigPredicates for common predicates |
Method Detail |
---|
public java.util.Map asMapWithStringKeys()
public java.util.Map getAllConfig()
public java.lang.Object getConfig(ConfigKey key)
public java.lang.Object getConfig(HasConfigKey key)
public java.lang.Object getConfig(HasConfigKey key, java.lang.Object defaultValue)
public java.lang.Object getConfig(ConfigKey key, java.lang.Object defaultValue)
public java.lang.Object getRawConfig(ConfigKey key)
public ConfigMap submap(Predicate filter)
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.