public abstract class Distributor
extends java.lang.Object
For CMI to load this configuration, the class has to be named under the
form : full.ServerClass_Cmi
It must provide a constructor without parameter. The results should be constant in the cluster so that each server and client uses the same configuration.
Constructor and Description |
---|
Distributor() |
Modifier and Type | Method and Description |
---|---|
StubData |
choose(java.lang.reflect.Method method,
java.lang.Object[] parameters)
Choose a stub among the stub list
The application deployer can override this method to make its own choices.
|
abstract boolean |
equivAtBind()
To be overriden
|
abstract boolean |
equivAtExport()
To be overriden
|
protected java.util.Set |
getCurrentState()
Get the current state of the stubs
|
Decision |
onException(StubData sd,
java.lang.Exception ex)
Decison on Exception
The application deployer can override this method to make its own choices.
|
Decision |
onReturn(StubData sd,
java.lang.Object retVal)
Decision on return
The application deployer can override this method to make its own choices.
|
protected void |
removeStub(StubData sd)
Remove a stub in the list
|
java.lang.String |
toContentsString()
Build a readable view of the stub list
|
java.lang.String |
toString() |
protected java.util.Set getCurrentState()
protected void removeStub(StubData sd)
sd
- stubpublic abstract boolean equivAtBind()
public abstract boolean equivAtExport()
public StubData choose(java.lang.reflect.Method method, java.lang.Object[] parameters) throws NoServerException
method
- calling methodparameters
- parameters of the calling methodNoServerException
- if no server availablepublic Decision onException(StubData sd, java.lang.Exception ex)
sd
- stub dataex
- exceptionpublic Decision onReturn(StubData sd, java.lang.Object retVal)
sd
- stub dataretVal
- return valuepublic java.lang.String toContentsString()
public java.lang.String toString()
toString
in class java.lang.Object