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()
Policy
getHigh
in interface Policy
Policy.getHigh()
public void setHigh(double high)
Policy
setHigh
in interface Policy
Policy.setHigh(double)
public double getLow()
Policy
getLow
in interface Policy
Policy.getLow()
public void setLow(double low)
Policy
setLow
in interface Policy
Policy.setLow(double)
public String getMonitor()
Policy
Policy.setHigh(double)
and
Policy.setLow(double)
).getMonitor
in interface Policy
Policy.getMonitor()
public void setMonitor(String monitor)
Policy
Policy.setHigh(double)
and
Policy.setLow(double)
).setMonitor
in interface Policy
Policy.setMonitor(String)
public long getLowerDampener()
getLowerDampener
in interface Policy
public void setLowerDampener(long lowerDampener)
setLowerDampener
in interface Policy
public long getUpperDampener()
getUpperDampener
in interface Policy
public void setUpperDampener(long upperDampener)
Policy
3000
.setUpperDampener
in interface Policy
Copyright © GigaSpaces.