ncsa.tools.trebuchet.core.types
Class ClientOptimization
java.lang.Object
ncsa.tools.trebuchet.core.types.ClientOptimization
- All Implemented Interfaces:
- UserFacing
- public class ClientOptimization
- extends java.lang.Object
- implements UserFacing
Used in configuring a client for efficiency. A set of conditions
(a disjunction [or'd clauses] of conjunctions [anded statements] ) can
be mapped to a set of properties. The first matching configuration is
the one applied to the client.
In order for a client to enable optimization, it must export any of the
potentially matchable property names and values into a map, which
is then used as the parameter to the match filter's match method.
- Author:
- arossi
- See Also:
ncsa.tools.common.types.filters.MatchFilter.
|
Field Summary |
static java.lang.String |
TAG_SELF
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TAG_SELF
public static final java.lang.String TAG_SELF
- See Also:
- Constant Field Values
ClientOptimization
public ClientOptimization()
matches
public boolean matches(java.util.Map map)
throws ReflectionException,
java.lang.ClassNotFoundException,
FailedComparisonException
- Throws:
ReflectionException
java.lang.ClassNotFoundException
FailedComparisonException
getConfiguration
public Configuration getConfiguration()
setConfiguration
public void setConfiguration(Configuration configuration)
getFilterExpression
public java.lang.String getFilterExpression()
setFilter
public void setFilter(java.lang.String filterExpression)
asElement
public org.dom4j.Element asElement()
- Specified by:
asElement in interface UserFacing
initializeFromElement
public void initializeFromElement(org.dom4j.Element element)
- Specified by:
initializeFromElement in interface UserFacing