|
Brooklyn | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
brooklyn.location.Locationbrooklyn.entity.rebind.Rebindable
brooklyn.entity.trait.Identifiable
public interface Location extends java.io.Serializable, Identifiable, Rebindable
A location that an entity can be in. Examples of locations include a single machine or a pool of machines, or a region within a given cloud. See Startable.start. Locations may not be java.io.Serializable in subsequent releases!
Method Summary | |
---|---|
boolean
|
containsLocation(Location potentialDescendent)
Answers true if this location equals or is an ancestor of the given location. |
java.lang.Object
|
findLocationProperty(java.lang.String key)
Like getLocationProperty, but if the property is not defined on this location, searches recursively up the parent hierarchy until it is found, or the root is reached (when this method will return null). |
java.util.Map
|
getAllConfig()
Returns all config set _at_ this location (not inherited) |
java.util.Map
|
getAllConfig(boolean includeInherited)
Returns all config set, either inherited (argument true) or locally-only (argument false) |
java.util.Collection
|
getChildLocations()
@deprecated since 0.6 |
java.util.Collection
|
getChildren()
Get the 'children' of this location. |
java.lang.Object
|
getConfig(ConfigKey key)
Returns configuration set at this location or inherited or default |
java.lang.String
|
getDisplayName()
Get the name assigned to this location. |
java.lang.Object
|
getExtension(java.lang.Class extensionType)
Returns an extension of the given type. |
java.lang.String
|
getId()
A unique id for this location. |
java.lang.Object
|
getLocationProperty(java.lang.String key)
Returns the value of the property identified by the specified key. |
java.lang.String
|
getName()
@deprecated since 0.6 |
Location
|
getParent()
Get the 'parent' of this location. |
Location
|
getParentLocation()
@deprecated since 0.6 |
RebindSupport
|
getRebindSupport()
|
boolean
|
hasConfig(ConfigKey key)
True iff the indication config key is set _at_ this location (not parents) |
boolean
|
hasConfig(ConfigKey key, boolean includeInherited)
True iff the indication config key is set, either inherited (second argument true) or locally-only (second argument false) |
boolean
|
hasExtension(java.lang.Class extensionType)
Whether this location has support for the given extension type. |
boolean
|
hasLocationProperty(java.lang.String key)
Returns true iff this location contains a property with the specified key. |
void
|
setParent(Location newParent)
Set the 'parent' of this location. |
void
|
setParentLocation(Location newParent)
@deprecated since 0.6 |
java.lang.String
|
toVerboseString()
@return meta-data about the location (usually a long line, or a small number of lines). |
Methods inherited from interface Rebindable | |
---|---|
getRebindSupport |
Methods inherited from interface Identifiable | |
---|---|
getId |
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() |
Method Detail |
---|
public boolean containsLocation(Location potentialDescendent)
@Deprecated public java.lang.Object findLocationProperty(java.lang.String key)
@Deprecated public java.util.Map getAllConfig()
public java.util.Map getAllConfig(boolean includeInherited)
@Deprecated public java.util.Collection getChildLocations()
public java.util.Collection getChildren()
public java.lang.Object getConfig(ConfigKey key)
public java.lang.String getDisplayName()
public java.lang.Object getExtension(java.lang.Class extensionType)
This will not look at extensions of getParent().
@Override public java.lang.String getId()
@Deprecated public java.lang.Object getLocationProperty(java.lang.String key)
@Deprecated public java.lang.String getName()
public Location getParent()
@Deprecated public Location getParentLocation()
@Override public RebindSupport getRebindSupport()
@Deprecated public boolean hasConfig(ConfigKey key)
public boolean hasConfig(ConfigKey key, boolean includeInherited)
public boolean hasExtension(java.lang.Class extensionType)
@Deprecated public boolean hasLocationProperty(java.lang.String key)
public void setParent(Location newParent)
newParent
- the new parent location object, or null to clear the parent reference.
@Deprecated public void setParentLocation(Location newParent)
public java.lang.String toVerboseString()
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.