|
Brooklyn | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
brooklyn.location.Location brooklyn.entity.rebind.Rebindable
public interface Location extends java.io.Serializable, 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)
// * Returns the location properties of this immediate location (i.e. not including those from the parent hierarchy). // * @deprecated since 0.5.0, use getAllConfig // |
java.util.Map
|
getAllConfig()
Returns all config set _at_ this location (not inherited) |
java.util.Collection
|
getChildLocations()
Get the 'children' of this location. |
java.lang.Object
|
getConfig(ConfigKey key)
Returns configuration set at this location or inherited |
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()
Get the name assigned to this location. |
Location
|
getParentLocation()
Get the 'parent' of this location. |
RebindSupport
|
getRebindSupport()
|
boolean
|
hasConfig(ConfigKey key)
True iff the indication config key is set _at_ this location (not parents) |
boolean
|
hasLocationProperty(java.lang.String key)
Returns true iff this location contains a property with the specified key. |
void
|
setParentLocation(Location newParent)
Set the 'parent' of this location. |
Methods inherited from interface Rebindable | |
---|---|
getRebindSupport |
Method Detail |
---|
public boolean containsLocation(Location potentialDescendent)
@Deprecated public java.lang.Object findLocationProperty(java.lang.String key)
public java.util.Map getAllConfig()
public java.util.Collection getChildLocations()
public java.lang.Object getConfig(ConfigKey key)
public java.lang.String getId()
@Deprecated public java.lang.Object getLocationProperty(java.lang.String key)
public java.lang.String getName()
public Location getParentLocation()
@Override public RebindSupport getRebindSupport()
public boolean hasConfig(ConfigKey key)
@Deprecated public boolean hasLocationProperty(java.lang.String key)
public void setParentLocation(Location newParent)
newParent
- the new parent location object, or null to clear the parent reference.
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.