|
||||||||||
| 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.RelocationPolicyHandler
public class RelocationPolicyHandler
The RelocationPolicyHandler will inform the OperationalStringManager to relocate the ServiceBean that uses this policy handler. The RelocationPolicyHandler will look for attributes set that can control it's operational behavior.
The RelocationPolicyHandler
supports the following configuration entries; where each configuration entry
name is associated with the component name relocationPolicyHandler
| Type: |
Exporter |
| Default: |
A new BasicJeriExporter with
|
| Description: |
The Exporter used to export the ProvisionListener server. A new exporter is obtained every time a RelocationPolicyHandler needs to export itself. |
| Field Summary | |
|---|---|
static String |
RELOCATION_FAILURE
Action that indicates an relocation request has failed |
static String |
RELOCATION_PENDING
Action that indicates an relocation request is pending |
static String |
RELOCATION_SUCCEEDED
Action that indicates an relocation request has succeeded. |
| Fields inherited from class org.rioproject.sla.SLAPolicyHandler |
|---|
context, eventSource, initialized, thresholdManager |
| Constructor Summary | |
|---|---|
RelocationPolicyHandler(SLA sla)
Construct a RelocationPolicyHandler |
|
| Method Summary | |
|---|---|
void |
disconnect()
Override parent's method to unexport |
void |
failed(ServiceElement sElem,
boolean resubmitted)
Notify listener that the Service described by the ServiceElement has not been provision succesfully |
String |
getDescription()
Override parent's method to return description for this SLA Handler |
TrustVerifier |
getProxyVerifier()
Returns a TrustVerifier which can be used to verify that a
given proxy to this policy handler can be trusted |
void |
initialize(Object eventSource,
EventHandler eventHandler,
ServiceBeanContext context)
Override parent's initialize method to initialize operational attributes |
void |
notify(Calculable calculable,
ThresholdValues thresholdValues,
int type)
Notify for a threshold event |
void |
setThresholdManager(ThresholdManager thresholdManager)
Override parent's method to export the object to the RMI runtime |
void |
succeeded(ServiceBeanInstance jsbInstance)
Notify listener that the Service described by the ServiceBeanInstance has been provisioned succesfully |
| Methods inherited from class org.rioproject.sla.SLAPolicyHandler |
|---|
getConfiguration, getEventSource, getID, getName, getSLA, getThresholdManager, notifyListeners, registerListener, sendSLAThresholdEvent, setName, setSLA, unregisterListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String RELOCATION_PENDING
public static final String RELOCATION_FAILURE
public static final String RELOCATION_SUCCEEDED
| Constructor Detail |
|---|
public RelocationPolicyHandler(SLA sla)
sla - The SLA for the RelocationPolicyHandler| Method Detail |
|---|
public String getDescription()
getDescription in class SLAPolicyHandlerpublic void setThresholdManager(ThresholdManager thresholdManager)
setThresholdManager in interface ThresholdListenersetThresholdManager in class SLAPolicyHandlerthresholdManager - The ThresholdManager to connect toThresholdListener.setThresholdManager(org.rioproject.watch.ThresholdManager)public void disconnect()
disconnect in class SLAPolicyHandler
public void initialize(Object eventSource,
EventHandler eventHandler,
ServiceBeanContext context)
initialize in class SLAPolicyHandlereventSource - The object to be used as the remote event sourceeventHandler - Handler which sends eventscontext - The ServiceBeanContext
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)
public void succeeded(ServiceBeanInstance jsbInstance)
throws RemoteException
ServiceProvisionListener
succeeded in interface ServiceProvisionListenerjsbInstance - The ServiceBeanInstance
RemoteException - If communication errors occurServiceProvisionListener.succeeded(org.rioproject.core.ServiceBeanInstance)
public void failed(ServiceElement sElem,
boolean resubmitted)
throws RemoteException
ServiceProvisionListener
failed in interface ServiceProvisionListenersElem - The ServiceElementresubmitted - Whether the Service described by the ServiceElement
has been resubmitted for provisioning
RemoteException - If communication errors occurServiceProvisionListener.failed(org.rioproject.core.ServiceElement, boolean)public TrustVerifier getProxyVerifier()
TrustVerifier which can be used to verify that a
given proxy to this policy handler can be trusted
getProxyVerifier in interface ServerProxyTrust
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||