public abstract class DistributorSfsbHome extends Distributor
| Constructor and Description |
|---|
DistributorSfsbHome() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
chooseLocalFirst, getCurrentState, getMyServerId, getStubList, preInvoke, read, removeStub, removeStub, toContentsString, toString, writeprotected java.util.Set getBackupStubs()
public boolean equivAtBind()
DistributorequivAtBind in class DistributorDistributor.equivAtBind()public boolean equivAtExport()
DistributorequivAtExport 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 inNoServerException - if no stub availablepublic 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 - exceptionpublic 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