|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.cjdbc.controller.backend.BackendRecoveryPolicy
Distributed backend policy for distributed virtual databases (horizontal scalability).
Field Summary | |
private java.lang.String |
backendName
|
private java.util.ArrayList |
controllers
|
private boolean |
recoveryPolicy
|
Constructor Summary | |
BackendRecoveryPolicy(java.lang.String backendName,
boolean recoveryPolicy)
Create a new BackendRecoveryPolicy |
Method Summary | |
void |
addController(java.lang.String controllerName)
Add a controller name that can recover this backend in case of the failure of the current controller. |
java.lang.String |
getBackendName()
Get the backend name |
boolean |
getRecoveryPolicy()
Get the recoveryPolicy |
java.lang.String |
getXml()
Get the XML dump of this BackendRecoveryPolicy element |
boolean |
isEligibleForRecovery(java.lang.String controllerName)
Returns whether the given controller name is authorized to recover this backend or not. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.lang.String backendName
private boolean recoveryPolicy
private java.util.ArrayList controllers
Constructor Detail |
public BackendRecoveryPolicy(java.lang.String backendName, boolean recoveryPolicy)
backendName
- backend namerecoveryPolicy
- true if backends must be recoveredMethod Detail |
public java.lang.String getBackendName()
public boolean getRecoveryPolicy()
public void addController(java.lang.String controllerName) throws ControllerException
controllerName
- name of the controller
ControllerException
- if the recovery policy is offpublic boolean isEligibleForRecovery(java.lang.String controllerName)
controllerName
- controller asking for recovery
public java.lang.String getXml()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |