|
|||||||||||
| 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.DistributorSfsbRemote
Specific Distributor class for the SFSB replication protocol - Handles a link with the Home instance for recreating an instance when an exception occurs - Holds a cluster wide ObjectId - Keeps request number
| Constructor Summary | |
DistributorSfsbRemote()
|
|
| Method Summary | |
StubData |
choose(java.lang.reflect.Method method,
java.lang.Object[] parameters)
Choose a stub - for the SFSB Remote stub, the Distributor class contains only one stub |
boolean |
equivAtBind()
To be overriden |
boolean |
equivAtExport()
To be overriden |
ObjectId |
getClusterOID()
Get the ObjectId |
ClusterId |
getCurrentServerId()
Get the current server Id |
java.lang.reflect.Method |
getHomeCreateMethod()
Get the home create method Search for a create method with the same parameters as homeCreateParameters |
protected java.lang.Object[] |
getHomeCreateParameters()
Get the home create parameters |
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. |
void |
preInvoke(java.lang.reflect.Method method,
java.lang.Object[] parameters)
Callback invoked just before the method call Puts RequestId in HAContext |
void |
read(java.io.ObjectInput in)
Read the input and builds a server stubs list |
void |
setClusterHandle(ClusterHandle clusterHandle)
Sets the associated ClusterHandle |
void |
setClusterOID(ObjectId objectId)
Set the ObjectId |
void |
setCurrentServerId(ClusterId csi)
Set the current server Id |
void |
setHomeClusterStub(ClusterStub hcs)
Set home cluster stub |
void |
setHomeCreateParameters(java.lang.Object[] parameters)
Set the home create parameters |
void |
write(java.io.ObjectOutput out)
Write the server stubs list |
| Methods inherited from class org.objectweb.carol.cmi.Distributor |
chooseLocalFirst, getCurrentState, getMyServerId, getStubList, removeStub, removeStub, toContentsString, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public DistributorSfsbRemote()
| Method Detail |
public void setClusterOID(ObjectId objectId)
public ObjectId getClusterOID()
public void setHomeClusterStub(ClusterStub hcs)
hcs -
public java.lang.reflect.Method getHomeCreateMethod()
throws java.lang.SecurityException,
java.lang.NoSuchMethodException
java.lang.NoSuchMethodException
java.lang.SecurityExceptionpublic void setHomeCreateParameters(java.lang.Object[] parameters)
parameters - parameters listprotected java.lang.Object[] getHomeCreateParameters()
public void setCurrentServerId(ClusterId csi)
csi - ClusterIdpublic ClusterId getCurrentServerId()
public void setClusterHandle(ClusterHandle clusterHandle)
clusterHandle - the new ClusterHandlepublic boolean equivAtBind()
Distributor
equivAtBind in class DistributorDistributor.equivAtBind()public boolean equivAtExport()
Distributor
equivAtExport in class DistributorDistributor.equivAtExport()
public void preInvoke(java.lang.reflect.Method method,
java.lang.Object[] parameters)
preInvoke in class Distributormethod - calling methodparameters - parameters of the calling method
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
public void write(java.io.ObjectOutput out)
throws java.io.IOException
write in class Distributorout - output
java.io.IOException - if an I/O error occurs
public void read(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
read in class Distributorin - input
java.io.IOException - if an I/O error occurs
java.lang.ClassNotFoundException - if the expected class can not be created
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||