public abstract class DistributorSlsbRemote extends Distributor
| Constructor and Description |
|---|
DistributorSlsbRemote() |
| Modifier and Type | Method and Description |
|---|---|
StubData |
choose(java.lang.reflect.Method method,
java.lang.Object[] parameters)
choose a stub according to the load balancing algorithm
- round robin
Note that here the local preference is not implemented because not necessary.
|
boolean |
equivAtBind()
To be overriden
|
boolean |
equivAtExport()
To be overriden
|
Decision |
onException(java.lang.reflect.Method method,
java.lang.Object[] parameters,
StubData sd,
java.lang.Exception ex)
Decision on Exception :
- retry on ConnectException or ConnectIOException or NoSuchObjectException
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
- do nothing
The application deployer can override this method to make its own choices.
|
chooseLocalFirst, getCurrentState, getMyServerId, getStubList, preInvoke, read, removeStub, removeStub, toContentsString, toString, writepublic boolean equivAtBind()
DistributorequivAtBind in class DistributorDistributor.equivAtBind()public boolean equivAtExport()
DistributorequivAtExport in class DistributorThe single remote stub for the SSB has to be replicated at the export() timepublic StubData choose(java.lang.reflect.Method method, java.lang.Object[] parameters) throws NoServerException
choose in class Distributormethod - called methodparameters - method's parameters listNoServerException - if no more stub availablepublic 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 valuepublic 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