public class NonDeploymentLocationManager extends java.lang.Object implements LocationManagerInternal
| Constructor and Description |
|---|
NonDeploymentLocationManager(ManagementContext initialManagementContext) |
| 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.
|
ManagementTransitionMode |
getLastManagementTransitionMode(java.lang.String itemId) |
Location |
getLocation(java.lang.String id)
Returns the location under management (e.g.
|
java.lang.Iterable<java.lang.String> |
getLocationIds() |
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.
|
void |
manageRebindedRoot(Location loc)
Begins management for the given rebinded root, recursively;
if rebinding as a read-only copy,
#setReadOnly(T, boolean) should be called prior to this. |
void |
setManagementTransitionMode(Location item,
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 item,
ManagementTransitionMode info) |
public NonDeploymentLocationManager(ManagementContext initialManagementContext)
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 Location getLocation(java.lang.String id)
LocationManagergetLocation in interface LocationManagerpublic java.lang.Iterable<java.lang.String> getLocationIds()
getLocationIds in interface LocationManagerInternalpublic boolean isManaged(Location loc)
LocationManagerisManaged in interface LocationManagerpublic void manageRebindedRoot(Location loc)
BrooklynObjectManagerInternal#setReadOnly(T, boolean) should be called prior to this.manageRebindedRoot in interface BrooklynObjectManagerInternal<Location>@Deprecated public Location manage(Location loc)
LocationManagermanage in interface LocationManagerpublic ManagementTransitionMode getLastManagementTransitionMode(java.lang.String itemId)
getLastManagementTransitionMode in interface BrooklynObjectManagerInternal<Location>public void setManagementTransitionMode(Location item, ManagementTransitionMode mode)
setManagementTransitionMode in interface BrooklynObjectManagerInternal<Location>public void unmanage(Location item, ManagementTransitionMode info)
unmanage in interface BrooklynObjectManagerInternal<Location>public void unmanage(Location loc)
LocationManagerunmanage in interface LocationManager