|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.objectweb.carol.cmi.ServerStubList
A container of regular stubs to RMI-exported clustered objects. It is used by cluster stubs to choose to which clustered object redirect a request. Regular stubs have to be the same class.
| Method Summary | |
static void |
debug(java.lang.String mesg)
Print a debug message on the console |
static ClusterStub |
deserialize(byte[] serialized)
Deserialize a byte array to create a cluster stub |
byte[] |
getSerialized()
|
java.util.Set |
getSetOfStubs()
Get the set of stubs (synchronized) |
boolean |
isStubDebug()
Test is debug mode is enabled |
static ClusterStub |
read(java.io.ObjectInput in)
Read the input and builds a server stubs list |
void |
removeStub(ClusterId serverId)
Remove a stub in the clustered stub (Synchronized) |
void |
removeStub(StubData sd)
Remove a stub in the clustered stub (Synchronized) |
java.lang.String |
toContentsString()
Convert the stubs list to a readable string |
java.lang.String |
toString()
|
void |
write(java.io.ObjectOutput out)
Write the server stubs list |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
public byte[] getSerialized()
throws java.io.IOException
java.io.IOException - if an exception occurs
public void write(java.io.ObjectOutput out)
throws java.io.IOException
out - output
java.io.IOException - if an I/O error occurs
public static ClusterStub read(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
in - input
java.io.IOException - if an I/O error occurs
java.lang.ClassNotFoundException - if the expected class can not be created
public static ClusterStub deserialize(byte[] serialized)
throws java.io.IOException,
java.lang.ClassNotFoundException
serialized - but to deserialize
java.io.IOException - if an I/O error occurs
java.lang.ClassNotFoundException - if the expected class can not be instanciatedpublic void removeStub(ClusterId serverId)
serverId - stub identifier to removepublic void removeStub(StubData sd)
sd - stub datapublic java.util.Set getSetOfStubs()
public boolean isStubDebug()
public static void debug(java.lang.String mesg)
mesg - messagepublic 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 | ||||||||||