public class JcloudsLocationResolver extends java.lang.Object implements LocationResolver
Modifier and Type | Field and Description |
---|---|
static java.util.Collection<java.lang.String> |
AWS_REGIONS |
static java.lang.String |
JCLOUDS |
static org.slf4j.Logger |
log |
Constructor and Description |
---|
JcloudsLocationResolver() |
Modifier and Type | Method and Description |
---|---|
boolean |
accepts(java.lang.String spec,
LocationRegistry registry)
whether the spec is something which should be passed to this resolver
|
java.lang.String |
getPrefix()
the prefix that this resolver will attend to
|
void |
init(ManagementContext managementContext) |
boolean |
isEnabled()
whether the location is enabled
|
LocationSpec<? extends Location> |
newLocationSpecFromString(java.lang.String spec,
java.util.Map<?,?> locationFlags,
LocationRegistry registry)
Creates a LocationSpec given a spec string, flags (e.g.
|
public static final org.slf4j.Logger log
public static final java.lang.String JCLOUDS
public static final java.util.Collection<java.lang.String> AWS_REGIONS
public void init(ManagementContext managementContext)
init
in interface LocationResolver
public boolean isEnabled()
LocationResolver
isEnabled
in interface LocationResolver
public LocationSpec<? extends Location> newLocationSpecFromString(java.lang.String spec, java.util.Map<?,?> locationFlags, LocationRegistry registry)
LocationResolver
newLocationSpecFromString
in interface LocationResolver
public java.lang.String getPrefix()
LocationResolver
getPrefix
in interface LocationResolver
public boolean accepts(java.lang.String spec, LocationRegistry registry)
LocationResolver
accepts
in interface LocationResolver