Package org.openspaces.pu.sla
Interface Policy
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
AbstractPolicy,RelocationPolicy,ScaleUpPolicy
A policy controls the runtime action that should be taken when the monitor value associated with
this policy (using
setMonitor(String)) breaches the policy thresholds.
The monitor is referenced by name and can use one of the built in monitors that comes with the
grid container (CPU and Memory) or one of the custom monitors defined
within the SLA.
- Author:
- kimchy
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondoublegetHigh()The high threshold value of the policy.doublegetLow()The low threshold value of the policy.longThe lower dampener acts as a time window where if the lower threshold has been cleared (after it has been breached), it won't cause the policy action to happen.The monitor name this policy will use in order to get check if its value has breached the policy thresholds (setHigh(double)andsetLow(double)).longThe 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.voidsetHigh(double high) The high threshold value of the policy.voidsetLow(double low) The low threshold value of the policy.voidsetLowerDampener(long lowerDampener) The lower dampener acts as a time window where if the lower threshold has been cleared (after it has been breached), it won't cause the policy action to happen.voidsetMonitor(String watch) The monitor name this policy will use in order to get check if its value has breached the policy thresholds (setHigh(double)andsetLow(double)).voidsetUpperDampener(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.
-
Method Details
-
getMonitor
String getMonitor()The monitor name this policy will use in order to get check if its value has breached the policy thresholds (setHigh(double)andsetLow(double)). -
setMonitor
The monitor name this policy will use in order to get check if its value has breached the policy thresholds (setHigh(double)andsetLow(double)). -
getHigh
double getHigh()The high threshold value of the policy. -
setHigh
void setHigh(double high) The high threshold value of the policy. -
getLow
double getLow()The low threshold value of the policy. -
setLow
void setLow(double low) The low threshold value of the policy. -
getLowerDampener
long getLowerDampener()The lower dampener acts as a time window where if the lower threshold has been cleared (after it has been breached), it won't cause the policy action to happen. Set in milliseconds, defaults to3000. -
setLowerDampener
void setLowerDampener(long lowerDampener) The lower dampener acts as a time window where if the lower threshold has been cleared (after it has been breached), it won't cause the policy action to happen. Set in milliseconds, defaults to3000. -
getUpperDampener
long getUpperDampener()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. Set in milliseconds, defaults to3000. -
setUpperDampener
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. Set in milliseconds, defaults to3000.
-