|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.carol.cmi.ClusterStubData
Stubs to clustered objects use this class. They may contain several stubs to regular objects.
Constructor Summary | |
ClusterStubData(ClusterId serverId,
byte[] stubSer,
int factor)
Construct a new cluster stub data, containing a regular stub. |
Method Summary | |
void |
debug(java.lang.String mesg)
|
ClusterConfig |
getClusterConfig()
You can assume it returns a non null structure if it is not a stub to a cluster registry. |
ClusterStub |
getClusterStub()
|
StubData |
getLocal()
|
StubLB |
getRandom()
|
StubLB |
getRoundRobin()
|
boolean |
isStubDebug()
|
static ClusterStubData |
read(java.io.ObjectInput in,
ClusterStub cs)
Deserialize a ClusterStubData. |
boolean |
removeStub(ClusterId serverId)
This function fails if and only if the stub to remove is the last one. |
boolean |
removeStubData(StubData sd)
This function fails if and only if the stub to remove is the last one. |
void |
setClusterConfig(ClusterConfig cfg)
|
boolean |
setStub(ClusterId serverId,
byte[] stubSer,
int factor)
Add a regular stub in this cluster stub. |
boolean |
setStub(ClusterRegistryInternal stub)
Add a regular stub in this cluster stub. |
java.lang.String |
toContentsString()
|
java.lang.String |
toString()
|
void |
write(java.io.ObjectOutput out)
Serialize this object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ClusterStubData(ClusterId serverId, byte[] stubSer, int factor) throws java.rmi.RemoteException
serverId
- the cluster id of the server where the remote object is
running.stubSer
- the regular stub, serialized.factor
- factor for round robin load lalancing.Method Detail |
public ClusterStub getClusterStub() throws java.rmi.RemoteException
java.rmi.RemoteException
public boolean setStub(ClusterId serverId, byte[] stubSer, int factor)
serverId
- the cluster id of the server where the remote object
is running.
public boolean setStub(ClusterRegistryInternal stub)
stub
- a stub to a registry.
public void write(java.io.ObjectOutput out) throws java.io.IOException
out
- the output stream
java.io.IOException
public static ClusterStubData read(java.io.ObjectInput in, ClusterStub cs) throws java.io.IOException, java.lang.ClassNotFoundException
in
- input stream
java.io.IOException
java.lang.ClassNotFoundException
public boolean removeStub(ClusterId serverId)
public boolean removeStubData(StubData sd)
public void setClusterConfig(ClusterConfig cfg)
public ClusterConfig getClusterConfig()
public StubLB getRoundRobin()
public StubLB getRandom()
public StubData getLocal() throws NoLocalStubException
NoLocalStubException
public boolean isStubDebug()
public void debug(java.lang.String mesg)
public java.lang.String toContentsString()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |