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, write
protected java.util.Set getBackupStubs()
public boolean equivAtBind()
Distributor
equivAtBind
in class Distributor
Distributor.equivAtBind()
public boolean equivAtExport()
Distributor
equivAtExport
in class Distributor
Distributor.equivAtExport()
public StubData choose(java.lang.reflect.Method method, java.lang.Object[] parameters) throws NoServerException
choose
in class Distributor
method
- 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 Distributor
method
- 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 Distributor
method
- calling methodparameters
- parameters of the calling methodsd
- stub dataretVal
- return value