GigaSpaces XAP 9.0 API

org.openspaces.pu.sla
Interface Policy

All Superinterfaces:
Serializable
All Known Implementing Classes:
AbstractPolicy, RelocationPolicy, ScaleUpPolicy

public interface Policy
extends Serializable

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:
SLA

Method Summary
 double getHigh()
          The high threshold value of the policy.
 double getLow()
          The low threshold value of the policy.
 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.
 String getMonitor()
          The monitor name this policy will use in order to get check if its value has breached the policy thresholds (setHigh(double) and setLow(double)).
 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.
 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)
          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.
 void setMonitor(String watch)
          The monitor name this policy will use in order to get check if its value has breached the policy thresholds (setHigh(double) and 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.
 

Method Detail

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) and setLow(double)).


setMonitor

void setMonitor(String watch)
The monitor name this policy will use in order to get check if its value has breached the policy thresholds (setHigh(double) and setLow(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 to 3000.


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 to 3000.


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 to 3000.


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 to 3000.


GigaSpaces XAP 9.0 API

Copyright © GigaSpaces.