| |
|
| java.lang.Object org.continuent.sequoia.controller.monitoring.SQLMonitoringRule
SQLMonitoringRule | public class SQLMonitoringRule (Code) | | This class implements a SQL monitoring rule.
author: Emmanuel Cecchet version: 1.0 |
Constructor Summary | |
public | SQLMonitoringRule(String queryPattern, boolean isCaseSentive, boolean applyToSkeleton, boolean monitoring) |
SQLMonitoringRule | public SQLMonitoringRule(String queryPattern, boolean isCaseSentive, boolean applyToSkeleton, boolean monitoring)(Code) | | Creates a new SQL Monitoring rule
Parameters: queryPattern - the query pattern to match Parameters: isCaseSentive - true if matching is case sensitive Parameters: applyToSkeleton - true if matching applies to the query skeleton Parameters: monitoring - true if the request must be monitored |
getQueryPattern | public String getQueryPattern()(Code) | | Get query pattern
the query pattern |
isApplyToSkeleton | public boolean isApplyToSkeleton()(Code) | | If the pattern apply to the skeleton ot the instanciated query.
true if the pattern apply to the query skeleton |
isCaseSentive | public boolean isCaseSentive()(Code) | | If matching is case sensitive or not
true if the matching is case sensitive |
isMonitoring | public boolean isMonitoring()(Code) | | If monitoring is activated or not.
true if monitoring is activated for this pattern |
matches | public String matches(AbstractRequest request)(Code) | | Returns true if the given query matches the pattern of this rule. This
function applies the applytoSkeleton rule.
Parameters: request - the query the SQL that matches the rule or null if it does not match |
setApplyToSkeleton | public void setApplyToSkeleton(boolean b)(Code) | | Set to true if the pattern apply to the query skeleton
Parameters: b - true if the pattern apply to the query skeleton |
setCaseSentive | public void setCaseSentive(boolean b)(Code) | | Set the matching case sensitiveness
Parameters: b - true if matching is case sensitive |
setMonitoring | public void setMonitoring(boolean b)(Code) | | Set the monitoring on or off
Parameters: b - true if monitoring must be activated for this rule |
setQueryPattern | public void setQueryPattern(String queryPattern)(Code) | | Sets the query pattern
Parameters: queryPattern - the queryPattern |
|
|
|