|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.carol.cmi.DistributedEquiv
public final class DistributedEquiv
Manage equivalences between objects in the cluster. Two objects are equivalent if their keys have the same value (key1.equals(key2)). The keys prefixed with "REG_" are reserved by the RegistryImpl. No other module should generate such keys.
Field Summary | |
---|---|
static java.lang.String |
CL_PREFIX
Distributed Equivalent System |
Constructor Summary | |
---|---|
DistributedEquiv()
|
Method Summary | |
---|---|
static java.rmi.Remote |
getExportedStubList(java.rmi.Remote obj)
|
static java.lang.ClassLoader |
getLocalCLByKey(java.io.Serializable key)
Get the local class loader associated with the key - is only set if the remote object was bound locally |
static ObjectIdFactory |
getOidFactory()
|
static void |
putLocalCLByKey(java.io.Serializable key,
java.lang.ClassLoader cl)
Put the local class loader associated with the key in the classloader cache |
static void |
removeLocalCLByKey(java.io.Serializable key)
Remove the entry associated with the key in the local class loader cache |
static DistributedEquiv |
start()
The first one which calls this method starts the DistributedEquiv system. |
void |
stop()
Terminate the Distributed Equivalent System |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CL_PREFIX
Constructor Detail |
---|
public DistributedEquiv()
Method Detail |
---|
public static DistributedEquiv start() throws ServerConfigException
ServerConfigException
- if exception is encounteredpublic void stop() throws ServerConfigException
ServerConfigException
- if error during stoppingpublic static java.rmi.Remote getExportedStubList(java.rmi.Remote obj) throws java.rmi.NoSuchObjectException
obj
- Remote object
java.rmi.NoSuchObjectException
- if the object is not currently exportedpublic static java.lang.ClassLoader getLocalCLByKey(java.io.Serializable key) throws ServerConfigException
key
- key
null if not found.
- Throws:
ServerConfigException
- if des is null
public static void putLocalCLByKey(java.io.Serializable key, java.lang.ClassLoader cl) throws ServerConfigException
key
- keycl
- ClassLoader
ServerConfigException
- if des is nullpublic static void removeLocalCLByKey(java.io.Serializable key) throws ServerConfigException
key
- key
ServerConfigException
- if des is nullpublic static ObjectIdFactory getOidFactory() throws ServerConfigException
ServerConfigException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |