|
Brooklyn | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbrooklyn.location.basic.BasicLocationRegistry
@SuppressWarnings({"rawtypes","unchecked"}) public class BasicLocationRegistry
Field Summary | |
---|---|
static Logger |
log
|
protected java.util.Map |
resolvers
|
protected java.lang.ThreadLocal |
specsSeen
|
Constructor Summary | |
BasicLocationRegistry(ManagementContext mgmt)
|
Method Summary | |
---|---|
boolean
|
canMaybeResolve(java.lang.String spec)
|
boolean
|
canResolve(java.lang.String spec)
|
static java.util.List
|
expandCommaSeparateLocations(java.lang.String locations)
Splits a comma-separated list of locations (names or specs) into an explicit list. |
protected void
|
findServices()
|
LocationDefinition
|
getDefinedLocation(java.lang.String id)
|
LocationDefinition
|
getDefinedLocationById(java.lang.String id)
|
LocationDefinition
|
getDefinedLocationByName(java.lang.String name)
|
java.util.Map
|
getDefinedLocations()
|
java.util.List
|
getLocationsById(java.lang.Iterable specs)
|
java.util.Map
|
getProperties()
|
protected LocationResolver
|
getSpecDefaultResolver(java.lang.String spec)
providers default impl for RegistryLocationResolver.accepts |
protected LocationResolver
|
getSpecFirstResolver(java.lang.String spec, java.lang.String... resolversToCheck)
|
protected LocationResolver
|
getSpecResolver(java.lang.String spec)
|
static boolean
|
isResolverPrefixForSpec(LocationResolver resolver, java.lang.String spec, boolean argumentRequired)
@deprecated since 0.5; use resolve |
void
|
removeDefinedLocation(java.lang.String id)
|
Location
|
resolve(java.lang.String spec)
|
Location
|
resolve(java.lang.String spec, java.util.Map locationFlags)
|
java.util.List
|
resolve(java.lang.Iterable spec)
|
Location
|
resolve(LocationDefinition ld)
|
Location
|
resolveIfPossible(java.lang.String spec)
|
Location
|
resolveLocationDefinition(LocationDefinition ld, java.util.Map locationFlags, java.lang.String optionalName)
|
static void
|
setupLocationRegistryForTesting(ManagementContext mgmt)
|
void
|
updateDefinedLocation(LocationDefinition l)
|
void
|
updateDefinedLocations()
|
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Field Detail |
---|
public static final Logger log
protected final java.util.Map resolvers
protected java.lang.ThreadLocal specsSeen
Constructor Detail |
---|
public BasicLocationRegistry(ManagementContext mgmt)
Method Detail |
---|
if (!canMaybeResolve(spec)) return null; public boolean canMaybeResolve(java.lang.String spec)
} } public boolean canResolve(java.lang.String spec)
public static java.util.List expandCommaSeparateLocations(java.lang.String locations)
protected void findServices()
public LocationDefinition getDefinedLocation(String id) { return getDefinedLocationById(id); public LocationDefinition getDefinedLocation(java.lang.String id)
return definedLocations.get(id); public LocationDefinition getDefinedLocationById(java.lang.String id)
synchronized (definedLocations) { public LocationDefinition getDefinedLocationByName(java.lang.String name)
synchronized (definedLocations) { public java.util.Map getDefinedLocations()
public java.util.List getLocationsById(java.lang.Iterable specs)
} public java.util.Map getProperties()
protected LocationResolver getSpecDefaultResolver(java.lang.String spec)
protected LocationResolver getSpecFirstResolver(java.lang.String spec, java.lang.String... resolversToCheck)
protected LocationResolver getSpecResolver(java.lang.String spec)
public static boolean isResolverPrefixForSpec(LocationResolver resolver, java.lang.String spec, boolean argumentRequired)
synchronized (definedLocations) { public void removeDefinedLocation(java.lang.String id)
log.trace("Unable to resolve "+spec+": "+e, e); public final Location resolve(java.lang.String spec)
public Location resolve(java.lang.String spec, java.util.Map locationFlags)
} else if (id instanceof Iterable) { public java.util.List resolve(java.lang.Iterable spec)
} public Location resolve(LocationDefinition ld)
public final Location resolveIfPossible(java.lang.String spec)
public Location resolveLocationDefinition(LocationDefinition ld, java.util.Map locationFlags, java.lang.String optionalName)
public static void setupLocationRegistryForTesting(ManagementContext mgmt)
synchronized (definedLocations) { public void updateDefinedLocation(LocationDefinition l)
public void updateDefinedLocations()
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.