|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.objectweb.carol.cmi.Distributor
org.objectweb.carol.cmi.DistributorSfsbHome
public abstract class DistributorSfsbHome
Specific Distributor class for the SFSB replication protocol - Handles a backup stub list being a subset of the ServerStubList - Creates the link between the Remote and the Home objects at the create time - Default LB algorithm : RR with local preference
| Constructor Summary | |
|---|---|
DistributorSfsbHome()
|
|
| Method Summary | |
|---|---|
StubData |
choose(java.lang.reflect.Method method,
java.lang.Object[] parameters)
Choose a stub according a rr algorithm with a local preference Default algorithm, can be overriden in a vm |
boolean |
equivAtBind()
To be overriden |
boolean |
equivAtExport()
To be overriden |
protected java.util.Set |
getBackupStubs()
Get the current HA view |
Decision |
onException(java.lang.reflect.Method method,
java.lang.Object[] parameters,
StubData sd,
java.lang.Exception ex)
Decison on Exception The application deployer can override this method to make its own choices. |
Decision |
onReturn(java.lang.reflect.Method method,
java.lang.Object[] parameters,
StubData sd,
java.lang.Object retVal)
Decision on return The application deployer can override this method to make its own choices. |
| Methods inherited from class org.objectweb.carol.cmi.Distributor |
|---|
chooseLocalFirst, getCurrentState, getMyServerId, getStubList, preInvoke, read, removeStub, removeStub, toContentsString, toString, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DistributorSfsbHome()
| Method Detail |
|---|
protected java.util.Set getBackupStubs()
public boolean equivAtBind()
Distributor
equivAtBind in class DistributorDistributor.equivAtBind()public boolean equivAtExport()
Distributor
equivAtExport in class DistributorDistributor.equivAtExport()
public StubData choose(java.lang.reflect.Method method,
java.lang.Object[] parameters)
throws NoServerException
choose in class Distributormethod - called methodparameters - array of parameters passed in
NoServerException - if no stub available
public Decision onException(java.lang.reflect.Method method,
java.lang.Object[] parameters,
StubData sd,
java.lang.Exception ex)
onException in class Distributormethod - calling methodparameters - parameters of the calling methodsd - stub dataex - exception
public Decision onReturn(java.lang.reflect.Method method,
java.lang.Object[] parameters,
StubData sd,
java.lang.Object retVal)
onReturn in class Distributormethod - calling methodparameters - parameters of the calling methodsd - stub dataretVal - return value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||