public class QoSRule extends Object
| Constructor and Description |
|---|
QoSRule(Pattern urlPattern)
Creates a new QoS rule object with the
given pattern.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAction(String action)
Adds an action.
|
void |
clearAction()
Removes all actions for this rule.
|
List<String> |
getActions()
Returns a list of actions which hase to be performed.
|
Double |
getReject()
Returns the ratio which indicates
if the request should be rejected
or not.
|
Pattern |
getUrlPattern()
Returns a precompiled pattern
for this rule.
|
Double |
getWarn()
Returns the ratio which indicates
if the request should be logged
with a warning or not.
|
boolean |
performAction()
Indicates if an action has to be performed or not.
|
void |
removeAction(String action)
Removes the action.
|
void |
setReject(Double reject)
Sets the ratio which indicates
if the request should be rejected
or not.
|
void |
setWarn(Double warn)
Returns the ratio which indicates
if the request should be logged
with a warning or not.
|
public QoSRule(Pattern urlPattern)
urlPattern - the url pattern for this rulepublic Double getReject()
public void setReject(Double reject)
reject - the ratiopublic Double getWarn()
public void setWarn(Double warn)
warn - the ratiopublic Pattern getUrlPattern()
public boolean performAction()
public List<String> getActions()
public void addAction(String action)
action - the actionpublic void removeAction(String action)
action - the actionpublic void clearAction()
Copyright © 2016–2021. All rights reserved.