public class LocalLocationManager extends java.lang.Object implements LocationManagerInternal
| Modifier and Type | Field and Description | 
|---|---|
| static ConfigKey<java.lang.Boolean> | CREATE_UNMANAGED | 
| Constructor and Description | 
|---|
| LocalLocationManager(LocalManagementContext managementContext) | 
| 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. | 
| ManagementTransitionInfo.ManagementTransitionMode | getLastManagementTransitionMode(java.lang.String itemId) | 
| Location | getLocation(java.lang.String id)Returns the location under management (e.g. | 
| Location | getLocationEvenIfPreManaged(java.lang.String id) | 
| InternalLocationFactory | getLocationFactory() | 
| java.util.Collection<java.lang.String> | getLocationIds() | 
| java.util.Collection<Location> | getLocations()All locations under control of this management plane. | 
| boolean | isKnownLocationId(java.lang.String id) | 
| boolean | isManaged(Location loc)whether the location is under management by this management context | 
| Location | manage(Location loc)management on creation | 
| void | manageRebindedRoot(Location item)Begins management for the given rebinded root, recursively; 
 if rebinding as a read-only copy,  #setReadOnly(Location, boolean)should be called prior to this. | 
| void | setManagementTransitionMode(Location item,
                           ManagementTransitionInfo.ManagementTransitionMode mode) | 
| 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). | 
| void | unmanage(Location loc,
        ManagementTransitionInfo.ManagementTransitionMode mode) | 
@Beta public static final ConfigKey<java.lang.Boolean> CREATE_UNMANAGED
public LocalLocationManager(LocalManagementContext managementContext)
public InternalLocationFactory getLocationFactory()
public <T extends Location> T createLocation(LocationSpec<T> spec)
LocationManagercreateLocation in interface LocationManagerpublic <T extends Location> T createLocation(java.util.Map<?,?> config, java.lang.Class<T> type)
LocationManagercreateLocation(LocationSpec.create(type).configure(config))createLocation in interface LocationManagerLocationManager.createLocation(LocationSpec)public java.util.Collection<Location> getLocations()
LocationManagergetLocations in interface LocationManagerpublic java.util.Collection<java.lang.String> getLocationIds()
getLocationIds in interface LocationManagerInternalpublic Location getLocation(java.lang.String id)
LocationManagergetLocation in interface LocationManagerpublic Location getLocationEvenIfPreManaged(java.lang.String id)
public boolean isManaged(Location loc)
LocationManagerisManaged in interface LocationManagerpublic boolean isKnownLocationId(java.lang.String id)
public ManagementTransitionInfo.ManagementTransitionMode getLastManagementTransitionMode(java.lang.String itemId)
getLastManagementTransitionMode in interface LocationManagerInternalpublic void setManagementTransitionMode(Location item, ManagementTransitionInfo.ManagementTransitionMode mode)
setManagementTransitionMode in interface LocationManagerInternalpublic Location manage(Location loc)
manage in interface LocationManagerpublic void manageRebindedRoot(Location item)
LocationManagerInternal#setReadOnly(Location, boolean) should be called prior to this.manageRebindedRoot in interface LocationManagerInternalpublic void unmanage(Location loc)
LocationManagerunmanage in interface LocationManagerpublic void unmanage(Location loc, ManagementTransitionInfo.ManagementTransitionMode mode)
unmanage in interface LocationManagerInternal