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.
|
ManagementTransitionInfo.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(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 item,
ManagementTransitionInfo.ManagementTransitionMode info) |
public NonDeploymentLocationManager(ManagementContext initialManagementContext)
public <T extends Location> T createLocation(LocationSpec<T> spec)
LocationManager
createLocation
in interface LocationManager
public <T extends Location> T createLocation(java.util.Map<?,?> config, java.lang.Class<T> type)
LocationManager
createLocation(LocationSpec.create(type).configure(config))
createLocation
in interface LocationManager
LocationManager.createLocation(LocationSpec)
public java.util.Collection<Location> getLocations()
LocationManager
getLocations
in interface LocationManager
public Location getLocation(java.lang.String id)
LocationManager
getLocation
in interface LocationManager
public java.lang.Iterable<java.lang.String> getLocationIds()
getLocationIds
in interface LocationManagerInternal
public boolean isManaged(Location loc)
LocationManager
isManaged
in interface LocationManager
public void manageRebindedRoot(Location loc)
LocationManagerInternal
#setReadOnly(Location, boolean)
should be called prior to this.manageRebindedRoot
in interface LocationManagerInternal
@Deprecated public Location manage(Location loc)
LocationManager
manage
in interface LocationManager
public ManagementTransitionInfo.ManagementTransitionMode getLastManagementTransitionMode(java.lang.String itemId)
getLastManagementTransitionMode
in interface LocationManagerInternal
public void setManagementTransitionMode(Location item, ManagementTransitionInfo.ManagementTransitionMode mode)
setManagementTransitionMode
in interface LocationManagerInternal
public void unmanage(Location item, ManagementTransitionInfo.ManagementTransitionMode info)
unmanage
in interface LocationManagerInternal
public void unmanage(Location loc)
LocationManager
unmanage
in interface LocationManager