|
ozone core API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ozoneDB.core.AbstractObjectContainer
org.ozoneDB.core.storage.StorageObjectContainer
org.ozoneDB.core.storage.wizardStore.WizardObjectContainer
The "Wizard" implementation of the ObjectContainer interface. Much of the lock functionality is implemented in the WizardCluster class. Note: only the join/commit/abort methods are synchronized. All other methods are guaranteed to run exclusively through the explicite locks
Field Summary | |
protected int |
garbageCollectionLevel
The garbage collection level of this ObjectContainer. |
protected int |
invokeCount
|
protected long |
modTime
|
protected java.lang.String |
name
|
protected ObjectID |
objID
|
protected static long |
serialVersionUID
|
protected static byte |
subSerialVersionUID
|
protected org.ozoneDB.OzoneCompatible |
target
The currently commited target object of the container. |
Fields inherited from class org.ozoneDB.core.storage.StorageObjectContainer |
cluster |
Fields inherited from class org.ozoneDB.core.AbstractObjectContainer |
shouldCallOnActivate, shouldCallOnPassivate, state |
Fields inherited from interface org.ozoneDB.core.ObjectContainer |
IMPLNAME_POSTFIX, PROXYNAME_POSTFIX, STATE_CLEAN, STATE_CREATED, STATE_DELETED, STATE_MODIFIED, STATE_READ |
Constructor Summary | |
WizardObjectContainer()
Constructor for object serialization via Externalizable. |
|
WizardObjectContainer(ObjectID _objID)
|
Method Summary | |
DxCollection |
allLockers()
Returns a collection of Locker objects that currently lock this Lockable object. |
void |
deleteTarget()
|
int |
ensureGarbageCollectionLevel(int newGarbageCollectionLevel)
Ensures that the garbageCollectionLevel is at least the given currentGarbageCollectionLevel. |
Cluster |
getCluster()
|
int |
getGarbageCollectionLevel()
Returns the garbageCollectionLevel this ObjectContainer has reached due to (not) calling ensureGarbageCollectionLevel(int) . |
boolean |
hasSameClusterAs(WizardObjectContainer container)
|
ObjectID |
id()
|
void |
invokeOnActivate()
|
java.lang.Object |
invokeTarget(Env env,
java.lang.String methodName,
java.lang.String sig,
java.lang.Object[] args)
|
protected boolean |
isCreated()
|
boolean |
isDeleted()
|
boolean |
isInvoked()
|
boolean |
isPinned()
Returns wether this ObjectContainer is pinned. |
Lock |
lock()
|
int |
lockLevel(Transaction ta)
|
long |
modTime()
Returns the time when the container was last commited with lock level greater than Lock.LEVEL_READ. |
java.lang.String |
name()
|
void |
nameTarget(java.lang.String _name)
|
void |
notifyAllTAs(Transaction ta)
|
Permissions |
permissions()
|
void |
pin()
Pins this ObjectContainer. |
void |
readExternal(java.io.ObjectInput in)
|
void |
setCluster(Cluster cluster)
|
void |
setName(java.lang.String _name)
|
void |
setTarget(org.ozoneDB.OzoneCompatible _target)
|
org.ozoneDB.OzoneCompatible |
target()
|
java.lang.Class |
targetClass()
Returns the Class for the target object. |
java.lang.String |
toString()
|
void |
touch()
|
void |
unpin()
Unpins this ObjectContainer. |
void |
writeExternal(java.io.ObjectOutput out)
|
Methods inherited from class org.ozoneDB.core.storage.StorageObjectContainer |
equals, updateLockLevel |
Methods inherited from class org.ozoneDB.core.AbstractObjectContainer |
clearState, constructorFor, createTarget, database, flushMethodCache, getCurrentDatabase, getCurrrentTransaction, getEnv, invokeOnPassivate, invokeTarget, methodFor, ozoneProxy, raiseState, requireWriteLocking, setShouldCallOnActivate, setShouldCallOnPassivate, shouldOnActivateBeCalled, shouldOnPassivateBeCalled, state, targetClone |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static final long serialVersionUID
protected static final byte subSerialVersionUID
protected org.ozoneDB.OzoneCompatible target
protected ObjectID objID
protected java.lang.String name
protected transient int invokeCount
protected long modTime
protected int garbageCollectionLevel
Constructor Detail |
public WizardObjectContainer()
public WizardObjectContainer(ObjectID _objID)
Method Detail |
public void setCluster(Cluster cluster)
setCluster
in class StorageObjectContainer
public Cluster getCluster()
getCluster
in class StorageObjectContainer
public long modTime()
ObjectContainer
public boolean isDeleted()
isDeleted
in class StorageObjectContainer
protected boolean isCreated()
public java.lang.Class targetClass()
public void setTarget(org.ozoneDB.OzoneCompatible _target)
public org.ozoneDB.OzoneCompatible target()
public void touch()
public Lock lock()
public void notifyAllTAs(Transaction ta)
public Permissions permissions()
public int lockLevel(Transaction ta)
public boolean isInvoked()
isInvoked
in class StorageObjectContainer
public java.lang.Object invokeTarget(Env env, java.lang.String methodName, java.lang.String sig, java.lang.Object[] args) throws java.lang.Exception
invokeTarget
in interface ObjectContainer
invokeTarget
in class AbstractObjectContainer
java.lang.Exception
public void invokeOnActivate()
invokeOnActivate
in interface ObjectContainer
invokeOnActivate
in class AbstractObjectContainer
public void deleteTarget()
public void nameTarget(java.lang.String _name)
public DxCollection allLockers()
Lockable
public ObjectID id()
public java.lang.String name()
public void setName(java.lang.String _name)
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
public int ensureGarbageCollectionLevel(int newGarbageCollectionLevel)
public int getGarbageCollectionLevel()
ensureGarbageCollectionLevel(int)
.
public void pin()
unpin()
.
An ObjectContainer remains in main memory at least as long as it is pinned.
public void unpin()
pin()
.
public boolean isPinned()
public boolean hasSameClusterAs(WizardObjectContainer container)
public java.lang.String toString()
|
ozone core API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |