|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rioproject.sla.SLAPolicyHandler
org.rioproject.sla.RedeployPolicyHandler
public class RedeployPolicyHandler
The RedeployPolicyHandler will redeploy a service based on declared thresholds.
| Field Summary |
|---|
| Fields inherited from class org.rioproject.sla.SLAPolicyHandler |
|---|
context, eventSource, initialized, thresholdManager |
| Constructor Summary | |
|---|---|
RedeployPolicyHandler(SLA sla)
Construct a RedeployPolicyHandler |
|
| Method Summary | |
|---|---|
void |
disconnect()
Override parent's method to shutdown timer |
String |
getDescription()
Override parent's method to return description for this SLA Handler |
void |
notify(Calculable calculable,
ThresholdValues thresholdValues,
int type)
Notify for a threshold event |
void |
setSLA(SLA sla)
Set or update the SLA |
| Methods inherited from class org.rioproject.sla.SLAPolicyHandler |
|---|
getConfiguration, getEventSource, getID, getName, getSLA, getThresholdManager, initialize, notifyListeners, registerListener, sendSLAThresholdEvent, setName, setThresholdManager, unregisterListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RedeployPolicyHandler(SLA sla)
sla - The SLA for the RedeployPolicyHandler| Method Detail |
|---|
public String getDescription()
getDescription in class SLAPolicyHandlerpublic void disconnect()
disconnect in class SLAPolicyHandlerpublic void setSLA(SLA sla)
SLAPolicyHandler
setSLA in class SLAPolicyHandlersla - The SLA
public void notify(Calculable calculable,
ThresholdValues thresholdValues,
int type)
ThresholdListener
notify in interface ThresholdListenernotify in class SLAPolicyHandlercalculable - The current metricthresholdValues - The current thresholdstype - The type of threshold event, breached or clearedThresholdListener.notify(org.rioproject.watch.Calculable, org.rioproject.watch.ThresholdValues, int)
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||