public class JMXLocationResolver extends Object implements LocationResolver<JMXNodeLocation>
LocationResolver| Constructor and Description |
|---|
JMXLocationResolver() |
| Modifier and Type | Method and Description |
|---|---|
JMXNodeLocation |
absolutize(JMXNodeLocation base,
JMXNodeLocation location)
Resolves the given
location relative to the given base and returns the resolved location. |
String |
applyTemplate(String nameTemplate,
JMXNodeLocation location,
String endpointName) |
String |
findWildcardMatch(JMXNodeLocation multiTargetLocation,
JMXNodeLocation singleLocation)
Given a multi-target location (e.g.
|
boolean |
isMultiTarget(JMXNodeLocation location)
Returns true if the location could refer to more than one target.
|
boolean |
isParent(JMXNodeLocation parent,
JMXNodeLocation child)
Returns true if the child is anywhere under the parent.
|
boolean |
matches(JMXNodeLocation query,
JMXNodeLocation location) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitabsolutizepublic String findWildcardMatch(JMXNodeLocation multiTargetLocation, JMXNodeLocation singleLocation) throws ProtocolException
LocationResolverfindWildcardMatch in interface LocationResolver<JMXNodeLocation>multiTargetLocation - a query that was used to find the given singleLocationsingleLocation - a single absolute location that has the multiTargetLocation wildcard resolvedProtocolException - if the single location doesn't have any matching portionpublic boolean isMultiTarget(JMXNodeLocation location)
LocationResolverisMultiTarget in interface LocationResolver<JMXNodeLocation>location - the location to testtrue if location can refer to multiple targets,
false if it refers to a single locationpublic JMXNodeLocation absolutize(JMXNodeLocation base, JMXNodeLocation location)
LocationResolverlocation relative to the given base and returns the resolved location. Note
that this method can eventually return location or base if the resolution would yield a Location
equivalent to any of the two.absolutize in interface LocationResolver<JMXNodeLocation>base - the base location to resolve location againstlocation - the location to resolvepublic boolean isParent(JMXNodeLocation parent, JMXNodeLocation child)
LocationResolverisParent in interface LocationResolver<JMXNodeLocation>parent - parent resourcechild - child resourcepublic boolean matches(JMXNodeLocation query, JMXNodeLocation location)
matches in interface LocationResolver<JMXNodeLocation>public String applyTemplate(String nameTemplate, JMXNodeLocation location, String endpointName)
applyTemplate in interface LocationResolver<JMXNodeLocation>Copyright © 2015–2016 Red Hat, Inc.. All rights reserved.