public abstract class AbstractPolicy extends Object implements Policy
| Constructor and Description |
|---|
AbstractPolicy() |
| Modifier and Type | Method and Description |
|---|---|
double |
getHigh()
The high threshold value of the policy.
|
double |
getLow()
The low threshold value of the policy.
|
long |
getLowerDampener()
Returns the lower dampener for this policy.
|
String |
getMonitor()
The monitor name this policy will use in order to get check if its value has breached the
policy thresholds (
Policy.setHigh(double) and Policy.setLow(double)). |
long |
getUpperDampener()
Returns the lower dampener for this policy.
|
void |
setHigh(double high)
The high threshold value of the policy.
|
void |
setLow(double low)
The low threshold value of the policy.
|
void |
setLowerDampener(long lowerDampener)
Sets the lower dampener for this policy.
|
void |
setMonitor(String monitor)
The monitor name this policy will use in order to get check if its value has breached the
policy thresholds (
Policy.setHigh(double) and Policy.setLow(double)). |
void |
setUpperDampener(long upperDampener)
The upper dampener acts as a time window where if the upper threshold has been cleared (after
it has been breached), it won't cause the policy action to happen.
|
public double getHigh()
PolicygetHigh in interface PolicyPolicy.getHigh()public void setHigh(double high)
PolicysetHigh in interface PolicyPolicy.setHigh(double)public double getLow()
PolicygetLow in interface PolicyPolicy.getLow()public void setLow(double low)
PolicysetLow in interface PolicyPolicy.setLow(double)public String getMonitor()
PolicyPolicy.setHigh(double) and Policy.setLow(double)).getMonitor in interface PolicyPolicy.getMonitor()public void setMonitor(String monitor)
PolicyPolicy.setHigh(double) and Policy.setLow(double)).setMonitor in interface PolicyPolicy.setMonitor(String)public long getLowerDampener()
getLowerDampener in interface Policypublic void setLowerDampener(long lowerDampener)
setLowerDampener in interface Policypublic long getUpperDampener()
getUpperDampener in interface Policypublic void setUpperDampener(long upperDampener)
Policy3000.setUpperDampener in interface PolicyCopyright © GigaSpaces.