Package com.tangosol.net.management
Class MBeanAccessor.QueryBuilder
java.lang.Object
com.tangosol.net.management.MBeanAccessor.QueryBuilder
- All Implemented Interfaces:
Serializable
- Enclosing class:
MBeanAccessor
The Query Builder for generating Coherence MBean queries.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A ParsedQuery represents the result of a call tobuild()
. -
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
Whether to construct a query without a wildcard suffix (exact) or with.A map of ObjectName key to Filter.protected String
The base MBean query to be used in the query.protected String
The cluster name to be used in the query.protected String
The MBean domain name to be used in the query.protected String
The member key to be used in the query.protected String
The service name to be used in the query. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build and return the MBean query.Ensure a Map is created to storeFilter
s to apply against values of the key/value pairs within the ObjectName.exact()
Ensure the generated query does not include a wild card (exact).exact
(boolean fExact) Ensure the generated query does not include a wild card (exact).The Coherence cluster name to be used for the query.The MBean Domain to be used for the query.toString()
withBaseQuery
(String sBaseQuery) Set the base MBean query.withCluster
(String sCluster) Set the cluster name to be used in the query.withFilter
(String sKey, Filter<String> predicate) withMBeanDomainName
(String sMBeanDomainName) Set the MBean domain name to be used on the query.withMember
(String sMemberKey) Set the member key to be used in the query.withService
(String sService) Set the service name to be used in the query.
-
Field Details
-
m_sMemberKey
The member key to be used in the query. -
m_sService
The service name to be used in the query. -
m_sCluster
The cluster name to be used in the query. -
m_fExact
protected boolean m_fExactWhether to construct a query without a wildcard suffix (exact) or with. -
m_sMBeanDomainName
The MBean domain name to be used in the query. -
m_sBaseQuery
The base MBean query to be used in the query. -
m_mapFilters
A map of ObjectName key to Filter.
-
-
Constructor Details
-
QueryBuilder
public QueryBuilder()
-
-
Method Details
-
withBaseQuery
Set the base MBean query.- Parameters:
sBaseQuery
- the base query- Returns:
- this
MBeanAccessor.QueryBuilder
instance
-
withCluster
Set the cluster name to be used in the query.- Parameters:
sCluster
- the cluster name- Returns:
- this
MBeanAccessor.QueryBuilder
instance
-
withService
Set the service name to be used in the query.- Parameters:
sService
- the service name- Returns:
- this
MBeanAccessor.QueryBuilder
instance
-
withMember
Set the member key to be used in the query.- Parameters:
sMemberKey
- the member key- Returns:
- this
MBeanAccessor.QueryBuilder
instance
-
withMBeanDomainName
Set the MBean domain name to be used on the query.- Parameters:
sMBeanDomainName
- the MBean domain name- Returns:
- this
MBeanAccessor.QueryBuilder
instance
-
withFilter
- Parameters:
sKey
- the key to apply the predicate againstpredicate
- the predicate to test the value against- Returns:
- this
MBeanAccessor.QueryBuilder
instance
-
exact
Ensure the generated query does not include a wild card (exact).- Returns:
- this
MBeanAccessor.QueryBuilder
instance
-
exact
Ensure the generated query does not include a wild card (exact).- Parameters:
fExact
- whether the generated query should include a wild card- Returns:
- this
MBeanAccessor.QueryBuilder
instance
-
build
Build and return the MBean query.- Returns:
- the complete MBean query
-
getCluster
The Coherence cluster name to be used for the query.- Returns:
- the Coherence clutser name
-
getMBeanDomain
The MBean Domain to be used for the query.- Returns:
- the MBean domain name
-
toString
-
ensureMapFilters
Ensure a Map is created to storeFilter
s to apply against values of the key/value pairs within the ObjectName.- Returns:
- a Map of key to Filter
-