public interface LocationManager
| Modifier and Type | Method and Description | 
|---|---|
<T extends Location> | 
createLocation(LocationSpec<T> spec)
Creates a new location, which is tracked by the management context. 
 | 
<T extends Location> | 
createLocation(java.util.Map<?,?> config,
              java.lang.Class<T> type)
Deprecated. 
 
in 0.9.0, use  
LocationSpec instead | 
Location | 
getLocation(java.lang.String id)
Returns the location under management (e.g. 
 | 
java.util.Collection<Location> | 
getLocations()
All locations under control of this management plane. 
 | 
boolean | 
isManaged(Location loc)
whether the location is under management by this management context 
 | 
Location | 
manage(Location loc)
Deprecated. 
 
in 0.6.0; use  
createLocation(LocationSpec) instead. | 
void | 
unmanage(Location loc)
Causes the given location and its children, recursively, to be removed from the management plane
 (for instance because the location is no longer relevant). 
 | 
<T extends Location> T createLocation(LocationSpec<T> spec)
 Some sub-interfaces may expose an option to suppress management
 (e.g. CREATE_UNMANAGED on the Brooklyn LocationManagerInternal sub-interface).
spec - @Deprecated <T extends Location> T createLocation(java.util.Map<?,?> config, java.lang.Class<T> type)
LocationSpec insteadcreateLocation(LocationSpec.create(type).configure(config))createLocation(LocationSpec)java.util.Collection<Location> getLocations()
Location getLocation(java.lang.String id)
boolean isManaged(Location loc)
@Deprecated Location manage(Location loc)
createLocation(LocationSpec) instead.void unmanage(Location loc)