| java.lang.Object org.ozoneDB.core.AbstractObjectContainer org.ozoneDB.core.wizardStore.WizardObjectContainer
WizardObjectContainer | final public class WizardObjectContainer extends AbstractObjectContainer implements Externalizable(Code) | | The "Wizard" implementation of the ObjectContainer interface. Much of the
lock functionality is implemented in the Cluster class.
Note: only the join/commit/abort methods are synchronized. All other methods
are guaranteed to run exclusively through the explicite locks
author: SMB author: Medium.net version: $Revision: 1.2 $Date: 2002/06/08 00:49:39 $ |
garbageCollectionLevel | protected int garbageCollectionLevel(Code) | | The garbage collection level of this ObjectContainer. This number is compared to the
currentGarbageCollectionLevel of the database.
Is this number smaller, then this object may be reachable.
Is it equal, then this object is reachable, but it's descendants are not yet considered.
Is it greater, then this object is reachable and this object is processed, it's descendants have been considered.
At the end of the mark-process, every object which still is not reachable must be unreachable, so at this and,
a smaller garbageCollectionLevel than currentGarbageCollectionLevel means that this object may be deleted.
|
invokeCount | protected transient int invokeCount(Code) | | |
modTime | protected long modTime(Code) | | |
serialVersionUID | final protected static long serialVersionUID(Code) | | |
subSerialVersionUID | final protected static byte subSerialVersionUID(Code) | | |
WizardObjectContainer | public WizardObjectContainer()(Code) | | Constructor for object serialization via Externalizable.
|
WizardObjectContainer | public WizardObjectContainer(ObjectID _objID)(Code) | | |
deleteTarget | public void deleteTarget()(Code) | | |
ensureGarbageCollectionLevel | public int ensureGarbageCollectionLevel(int newGarbageCollectionLevel)(Code) | | Ensures that the garbageCollectionLevel is at least the given currentGarbageCollectionLevel.
The return value is meaningful if the supplied newGarbageCollectionLevel is the currentGarbageCollectionLevel
<=0 if this object still has to be processed.This is the case if it belongs to the surelyReachable set but not to the processedReachable set> otherwise<0 if this object has been updated=0 if this object has not been updated, it is surelyReachable>0 if this object has not been updated, it is processedReachable |
isCreated | protected boolean isCreated()(Code) | | |
isDeleted | protected boolean isDeleted()(Code) | | |
isInvoked | public boolean isInvoked()(Code) | | |
isPinned | public boolean isPinned()(Code) | | Returns wether this ObjectContainer is pinned.
|
modTime | public long modTime()(Code) | | |
nameTarget | public synchronized void nameTarget(String _name)(Code) | | |
pin | public void pin()(Code) | | Pins this ObjectContainer.
Every caller of this method must pair this call with a call to
WizardObjectContainer.unpin .
An ObjectContainer remains in main memory at least as long as it is pinned.
|
targetClass | public Class targetClass()(Code) | | Returns the Class for the target object. This method is used by
AbstractObjectContainer.
|
touch | public void touch()(Code) | | |
Fields inherited from org.ozoneDB.core.AbstractObjectContainer | protected int state(Code)(Java Doc)
|
Methods inherited from org.ozoneDB.core.AbstractObjectContainer | public synchronized void clearState()(Code)(Java Doc) protected Constructor constructorFor(Env env, Class cl, String sig) throws Exception, NoSuchMethodException(Code)(Java Doc) public void createTarget(Env env, Class cl, String sig, Object[] args) throws Exception(Code)(Java Doc) public OzoneInterface database()(Code)(Java Doc) public static void flushMethodCache()(Code)(Java Doc) public Object invokeTarget(Env env, String methodName, String sig, Object[] args) throws Exception, InvocationTargetException(Code)(Java Doc) public Object invokeTarget(Env env, int methodIndex, Object[] args) throws Exception, InvocationTargetException(Code)(Java Doc) final protected Method methodFor(Env env, Object obj, String methodName, String sig, Object[] args) throws Exception(Code)(Java Doc) public OzoneProxy ozoneProxy()(Code)(Java Doc) public synchronized void raiseState(int newState)(Code)(Java Doc) public int state()(Code)(Java Doc) public OzoneCompatible targetClone() throws Exception(Code)(Java Doc)
|
|
|