|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.cjdbc.controller.monitoring.SQLMonitoringRule
This class implements a SQL monitoring rule.
Field Summary | |
private boolean |
applyToSkeleton
|
private boolean |
isCaseSentive
|
private boolean |
monitoring
|
private org.apache.regexp.RE |
queryPattern
|
Constructor Summary | |
SQLMonitoringRule(java.lang.String queryPattern,
boolean isCaseSentive,
boolean applyToSkeleton,
boolean monitoring)
Creates a new SQL Monitoring rule |
Method Summary | |
java.lang.String |
getQueryPattern()
Get query pattern |
java.lang.String |
getXml()
|
boolean |
isApplyToSkeleton()
If the pattern apply to the skeleton ot the instanciated query. |
boolean |
isCaseSentive()
If matching is case sensitive or not |
boolean |
isMonitoring()
If monitoring is activated or not. |
java.lang.String |
matches(AbstractRequest request)
Returns true if the given query matches the pattern of this rule. |
void |
setApplyToSkeleton(boolean b)
Set to true if the pattern apply to the query skeleton |
void |
setCaseSentive(boolean b)
Set the matching case sensitiveness |
void |
setMonitoring(boolean b)
Set the monitoring on or off |
void |
setQueryPattern(java.lang.String queryPattern)
Sets the query pattern |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private org.apache.regexp.RE queryPattern
private boolean isCaseSentive
private boolean applyToSkeleton
private boolean monitoring
Constructor Detail |
public SQLMonitoringRule(java.lang.String queryPattern, boolean isCaseSentive, boolean applyToSkeleton, boolean monitoring)
queryPattern
- the query pattern to matchisCaseSentive
- true if matching is case sensitiveapplyToSkeleton
- true if matching applies to the query skeletonmonitoring
- true if the request must be monitoredMethod Detail |
public boolean isCaseSentive()
public boolean isMonitoring()
public java.lang.String getQueryPattern()
public void setCaseSentive(boolean b)
b
- true if matching is case sensitivepublic void setMonitoring(boolean b)
b
- true if monitoring must be activated for this rulepublic void setQueryPattern(java.lang.String queryPattern)
queryPattern
- the queryPatternpublic boolean isApplyToSkeleton()
public void setApplyToSkeleton(boolean b)
b
- true if the pattern apply to the query skeletonpublic java.lang.String matches(AbstractRequest request)
request
- the query
public java.lang.String getXml()
XmlComponent.getXml()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |