|
Brooklyn | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbrooklyn.location.basic.LocationPropertiesFromBrooklynProperties
public class LocationPropertiesFromBrooklynProperties
The properties to use for locations, loaded from brooklyn.properties file.
Field Summary | |
---|---|
protected static java.util.Map |
DEPRECATED_KEYS_MAPPING
|
Method Summary | |
---|---|
protected java.util.Map
|
getDeprecatedKeysMapping()
|
protected java.util.Map
|
getGenericLocationSingleWordProperties(java.util.Map properties)
Returns those properties in the form "brooklyn.location.xyz", where "xyz" is any key that does not contain dots. |
java.util.Map
|
getLocationProperties(java.lang.String provider, java.lang.String namedLocation, java.util.Map properties)
Finds the properties that apply to location, stripping off the prefixes. |
protected java.util.Map
|
getMatchingProperties(java.lang.String fullPrefix, java.util.Map properties)
Gets all properties that start with the given fullPrefix, stripping off the prefix in the returned map. |
protected java.util.Map
|
getMatchingProperties(java.lang.String fullPreferredPrefix, java.lang.String fullDeprecatedPrefix, java.util.Map properties)
Gets all properties that start with either of the given prefixes. |
protected java.util.Map
|
getMatchingSingleWordProperties(java.lang.String fullPrefix, java.util.Map properties)
Gets all properties that start with the given fullPrefix, stripping off the prefix in the returned map. |
protected java.util.Map
|
getMatchingSingleWordProperties(java.lang.String fullPreferredPrefix, java.lang.String fullDeprecatedPrefix, java.util.Map properties)
Gets all single-word properties that start with either of the given prefixes. |
protected java.util.Map
|
getNamedLocationProperties(java.lang.String locationName, java.util.Map properties)
|
protected java.lang.String
|
getNamedProvider(java.lang.String namedLocation, java.util.Map properties)
Gets the named provider (e.g. if using a property like brooklyn.location.named.myfavourite=localhost, then getNamedProvider("myfavourite", properties) will return "localhost"). |
protected java.util.Map
|
getScopedLocationProperties(java.lang.String scopeSuffix, java.util.Map properties)
Gets all properties that start with {@code "brooklyn.location." |
protected java.util.Map
|
transformDeprecated(java.util.Map properties)
|
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Field Detail |
---|
@SuppressWarnings("deprecation") protected static final java.util.Map DEPRECATED_KEYS_MAPPING
Method Detail |
---|
protected java.util.Map getDeprecatedKeysMapping()
protected java.util.Map getGenericLocationSingleWordProperties(java.util.Map properties)
public java.util.Map getLocationProperties(java.lang.String provider, java.lang.String namedLocation, java.util.Map properties)
Converts deprecated hyphenated properties to the non-deprecated camelCase format.
protected java.util.Map getMatchingProperties(java.lang.String fullPrefix, java.util.Map properties)
protected java.util.Map getMatchingProperties(java.lang.String fullPreferredPrefix, java.lang.String fullDeprecatedPrefix, java.util.Map properties)
protected java.util.Map getMatchingSingleWordProperties(java.lang.String fullPrefix, java.util.Map properties)
protected java.util.Map getMatchingSingleWordProperties(java.lang.String fullPreferredPrefix, java.lang.String fullDeprecatedPrefix, java.util.Map properties)
protected java.util.Map getNamedLocationProperties(java.lang.String locationName, java.util.Map properties)
protected java.lang.String getNamedProvider(java.lang.String namedLocation, java.util.Map properties)
protected java.util.Map getScopedLocationProperties(java.lang.String scopeSuffix, java.util.Map properties)
protected java.util.Map transformDeprecated(java.util.Map properties)
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.