|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sapia.ubik.rmi.server.ObjectTable
public class ObjectTable
A server-side class that performs reference counting and that is used in distributed garbage collection.
| Nested Class Summary | |
|---|---|
protected static class |
ObjectTable.Ref
|
| Method Summary | |
|---|---|
void |
clear()
|
void |
clear(OID oid)
|
MBeanContainer |
createMBean()
Internally creates a MBean and its ObjectName, that are
returned in a MBeanContainer. |
void |
dereference(OID oid,
int decrement)
Decrements the reference count of the object whose identifier is given. |
java.lang.Object |
getObjectFor(OID oid)
Returns the object whose identifier is passed in. |
int |
getRefCount()
|
int |
getRefCount(OID oid)
Returns the reference count of the object whose identifier is given. |
java.util.Map |
getRefs()
|
void |
reference(OID oid)
Increases the reference count of the object whose identifier is passed as a parameter. |
void |
register(OID oid,
java.lang.Object o)
Registers the given object (for which a stub will eventually be sent on the client side) with the given object identifier. |
boolean |
remove(java.lang.ClassLoader loader)
Removes all objects whose class was loaded by the given classloader. |
boolean |
remove(java.lang.Object o)
Removes the given object from this instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void register(OID oid,
java.lang.Object o)
oid - the OID of the object passed in.o - the object whose stub will be sent to the client.public void reference(OID oid)
oid - the OID of the object whose reference count
should be incremented.
public void dereference(OID oid,
int decrement)
oid - the OID of an object whose reference count is
to be decremented.decrement - the value that should be substracted from the OID's reference count.
public java.lang.Object getObjectFor(OID oid)
throws java.rmi.NoSuchObjectException
oid - the identifier of the object to return
java.rmi.NoSuchObjectException - if no object exists for the given identifierpublic boolean remove(java.lang.Object o)
true if the given object was removed from this instance.public boolean remove(java.lang.ClassLoader loader)
loader - a ClassLoader.
true if any objects were removed that correspond to the
given classloader.public int getRefCount(OID oid)
OID passed in.public int getRefCount()
getRefCount in interface ObjectTableMBeanpublic void clear()
public java.util.Map getRefs()
public void clear(OID oid)
public MBeanContainer createMBean()
throws java.lang.Exception
MBeanFactoryObjectName, that are
returned in a MBeanContainer.
createMBean in interface MBeanFactoryMBeanContainer
java.lang.Exception - if a problem occurs while creating the MBean or its
object name.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||