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)
Convenience (particularly for groovy code) to create a location. 
 | 
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)
spec - <T extends Location> T createLocation(java.util.Map<?,?> config, java.lang.Class<T> type)
createLocation(LocationSpec.create(type).configure(config))createLocation(LocationSpec)java.util.Collection<Location> getLocations()
Location getLocation(java.lang.String id)
boolean isManaged(Location loc)
Location manage(Location loc)
createLocation(LocationSpec) instead.void unmanage(Location loc)