public class RegistryStubList
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
debug(java.lang.String mesg)
Print a bug message on the console
|
static org.objectweb.carol.cmi.RegistryInternal |
getClusterStub(NamingContextHostPort[] hp)
Get a reference to the Cluster registry
|
java.util.Set |
getSetOfStubs()
Get the set of stubs
|
boolean |
isStubDebug()
Test is the debug mode is enabled
|
static RegistryStubList |
read(java.io.ObjectInput in)
Read stubs from input
|
boolean |
removeStub(StubData sd)
Remove a stub
This function fails if and only if the stub to remove is the last one.
|
java.lang.String |
toContentsString()
Pretty print for the stubs list
|
java.lang.String |
toString()
Get the String form of this
|
void |
write(java.io.ObjectOutput out)
Write stubs to output
|
public void write(java.io.ObjectOutput out) throws java.io.IOException
out
- output streamjava.io.IOException
- if exception occurspublic static RegistryStubList read(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
in
- input streamjava.io.IOException
- if I/O error is encounteredjava.lang.ClassNotFoundException
- if the class INFpublic boolean removeStub(StubData sd)
sd
- stubpublic static org.objectweb.carol.cmi.RegistryInternal getClusterStub(NamingContextHostPort[] hp) throws java.rmi.RemoteException
hp
- host and port of the naming contextjava.rmi.RemoteException
- if an exception is encounteredpublic java.util.Set getSetOfStubs()
public boolean isStubDebug()
public static void debug(java.lang.String mesg)
mesg
- message to printpublic java.lang.String toContentsString()
public java.lang.String toString()
toString
in class java.lang.Object