|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.carol.cmi.ServerStubList
public class 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 |
java.lang.String |
getKey()
|
byte[] |
getSerialized()
|
java.util.Set |
getSetOfStubs()
Get the set of stubs (synchronized) |
StubData |
getStub(ClusterId serverId)
Get the stub associated with the serverId (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) |
void |
setKey(java.lang.String key)
Set the key |
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 occurspublic void write(java.io.ObjectOutput out) throws java.io.IOException
out
- output
java.io.IOException
- if an I/O error occurspublic 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 createdpublic 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 StubData getStub(ClusterId serverId)
serverId
- stub identifier to get
public 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()
toString
in class java.lang.Object
public java.lang.String getKey()
public void setKey(java.lang.String key)
key
- jndi name associated with the object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |