public class ServerPoolLocationResolver extends java.lang.Object implements LocationResolver
| Modifier and Type | Class and Description |
|---|---|
static class |
ServerPoolLocationResolver.LocationConstructor |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
POOL_SPEC |
| Constructor and Description |
|---|
ServerPoolLocationResolver() |
| 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 |
newLocationSpecFromString(java.lang.String spec,
java.util.Map locationFlags,
LocationRegistry registry)
Creates a LocationSpec given a spec string, flags (e.g.
|
public static final java.lang.String POOL_SPEC
public boolean isEnabled()
LocationResolverisEnabled in interface LocationResolverpublic void init(ManagementContext managementContext)
init in interface LocationResolverpublic java.lang.String getPrefix()
LocationResolvergetPrefix in interface LocationResolverpublic boolean accepts(java.lang.String spec,
LocationRegistry registry)
LocationResolveraccepts in interface LocationResolverpublic LocationSpec newLocationSpecFromString(java.lang.String spec, java.util.Map locationFlags, LocationRegistry registry)
LocationResolvernewLocationSpecFromString in interface LocationResolver