|
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.classicStore.ClassicObjectContainer
Field Summary | |
protected ClusterID |
clusterID
the cluster id where the object is stored |
protected ClusterSpace |
clusterSpace
|
protected boolean |
created
|
protected boolean |
deleted
|
protected Env |
env
The environment of this object. |
protected static boolean |
keepObjectsAlive
objekte werden nach transaktion nicht geloescht |
protected Lock |
lock
the lock of the object |
private static DxHashMap |
methodTable
global method cache |
protected java.lang.String |
name
a possible name for the object |
protected ObjectID |
objID
the id of the object |
protected Permissions |
permissions
permissions |
protected static long |
serialVersionUID
magic number for streaming |
protected static byte |
subSerialVersionUID
|
protected org.ozoneDB.OzoneCompatible |
target
null, if not activted |
protected byte[] |
targetBackup
|
protected org.ozoneDB.OzoneCompatible |
targetShadow
|
protected short |
touchCount
|
protected boolean |
touched
|
protected long |
touchTime
time of last invoke |
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 | |
ClassicObjectContainer()
constructor fuer streaming |
|
ClassicObjectContainer(org.ozoneDB.OzoneCompatible _target,
ObjectID _objID,
Permissions _permissions)
constructor; name ist optional |
Method Summary | |
protected void |
abortTarget(Transaction ta)
|
protected org.ozoneDB.OzoneCompatible |
activatedObject()
Liefert referenz auf das eigentliche objekt; das objekt wird nachgeladen, wenn es gerade nicht aktiv ist; waehrend einer update-ta wird nur der clone bearbeitet und somit auch nicht nachgeladen |
DxCollection |
allLockers()
Returns a collection of Locker objects that currently lock this Lockable object. |
protected ClusterID |
clusterID()
|
protected void |
commitTarget(Transaction ta)
|
protected void |
createShadow()
|
void |
deleteTarget()
|
int |
ensureGarbageCollectionLevel(int newGarbageCollectionLevel)
Ensures that the garbageCollectionLevel is at least the given currentGarbageCollectionLevel. |
boolean |
equals(java.lang.Object obj)
True, when bouth OzoneCompatibles have the same ID. |
void |
finalizeTarget()
|
int |
getGarbageCollectionLevel()
Returns the garbageCollectionLevel this ObjectContainer has reached due to (not) calling ensureGarbageCollectionLevel(int) . |
ObjectID |
id()
|
java.lang.Object |
invokeTarget(Env env,
java.lang.String methodName,
java.lang.String sig,
java.lang.Object[] args)
|
boolean |
isCreated()
|
boolean |
isDeleted()
|
boolean |
isPinned()
Returns wether this ObjectContainer is pinned. |
protected void |
loadExternal(java.io.ObjectInput in)
Read from the stream - fuer ClusterSpace. |
Lock |
lock()
|
int |
lockLevel(Transaction ta)
|
private java.lang.reflect.Method |
methodFor(java.lang.String methodName,
java.lang.String sig,
java.lang.Object[] args)
Search the method with the specified name and signature. |
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)
|
protected java.lang.Class |
objectClass()
|
org.ozoneDB.OzoneProxy |
ozoneProxy()
Return a proxy for the receiver. |
Permissions |
permissions()
|
void |
pin()
Pins this ObjectContainer. |
void |
readExternal(java.io.ObjectInput in)
Read from the stream - fuer DxDiskHashtable. |
protected void |
setClusterID(ClusterID _clusterID)
|
void |
setName(java.lang.String _name)
|
protected org.ozoneDB.OzoneCompatible |
setObject(org.ozoneDB.OzoneCompatible obj)
Setzen oder loeschen des objektes. |
protected void |
setOwner(User newOwner)
|
void |
setTarget(org.ozoneDB.OzoneCompatible _target)
|
protected void |
storeExternal(java.io.ObjectOutput out)
Write to the Stream. |
org.ozoneDB.OzoneCompatible |
target()
Liefert referenz auf das eigentliche objekt. |
java.lang.Class |
targetClass()
|
org.ozoneDB.OzoneCompatible |
targetClone()
Build a copy of the encap object. |
org.ozoneDB.OzoneCompatible |
targetShadow()
|
void |
touch()
|
protected int |
touchCount()
|
protected boolean |
touched()
|
protected long |
touchTime()
|
void |
unpin()
Unpins this ObjectContainer. |
protected void |
upgradeLockLevel(Transaction ta,
int lockLevel)
|
void |
writeExternal(java.io.ObjectOutput out)
In stream schreiben - fuer DxDiskHashtable |
Methods inherited from class org.ozoneDB.core.AbstractObjectContainer |
clearState, constructorFor, createTarget, database, flushMethodCache, getCurrentDatabase, getCurrrentTransaction, getEnv, invokeOnActivate, invokeOnPassivate, invokeTarget, methodFor, raiseState, requireWriteLocking, setShouldCallOnActivate, setShouldCallOnPassivate, shouldOnActivateBeCalled, shouldOnPassivateBeCalled, state |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final long serialVersionUID
protected static final byte subSerialVersionUID
private static DxHashMap methodTable
protected static boolean keepObjectsAlive
protected transient Env env
protected transient ClusterSpace clusterSpace
protected Permissions permissions
protected org.ozoneDB.OzoneCompatible target
protected org.ozoneDB.OzoneCompatible targetShadow
protected byte[] targetBackup
protected long touchTime
protected short touchCount
protected boolean touched
protected java.lang.String name
protected ObjectID objID
protected ClusterID clusterID
protected Lock lock
protected boolean deleted
protected boolean created
Constructor Detail |
public ClassicObjectContainer()
public ClassicObjectContainer(org.ozoneDB.OzoneCompatible _target, ObjectID _objID, Permissions _permissions)
Method Detail |
public long modTime()
modTime
in interface ObjectContainer
public Lock lock()
lock
in interface ObjectContainer
public void setTarget(org.ozoneDB.OzoneCompatible _target)
setTarget
in interface ObjectContainer
public java.lang.Class targetClass()
targetClass
in interface ObjectContainer
public void pin()
unpin()
.
An ObjectContainer remains in main memory at least as long as it is pinned.
pin
in interface ObjectContainer
public void unpin()
pin()
.
unpin
in interface ObjectContainer
public boolean isPinned()
isPinned
in interface ObjectContainer
public int ensureGarbageCollectionLevel(int newGarbageCollectionLevel)
ensureGarbageCollectionLevel
in interface ObjectContainer
public int getGarbageCollectionLevel()
ensureGarbageCollectionLevel(int)
.
getGarbageCollectionLevel
in interface ObjectContainer
public boolean equals(java.lang.Object obj)
equals
in interface ObjectContainer
public void finalizeTarget() throws java.lang.Exception
java.lang.Exception
public ObjectID id()
id
in interface ObjectContainer
public boolean isCreated()
public void deleteTarget()
deleteTarget
in interface ObjectContainer
public boolean isDeleted()
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 touch()
touch
in interface ObjectContainer
public java.lang.String name()
name
in interface ObjectContainer
public void setName(java.lang.String _name)
setName
in interface ObjectContainer
public void nameTarget(java.lang.String _name)
nameTarget
in interface ObjectContainer
public Permissions permissions()
permissions
in interface ObjectContainer
public org.ozoneDB.OzoneCompatible targetClone() throws java.lang.Exception
targetClone
in interface ObjectContainer
targetClone
in class AbstractObjectContainer
java.lang.Exception
public org.ozoneDB.OzoneProxy ozoneProxy()
ObjectContainer
ozoneProxy
in interface ObjectContainer
ozoneProxy
in class AbstractObjectContainer
public int lockLevel(Transaction ta)
public DxCollection allLockers()
Lockable
allLockers
in interface Lockable
public void notifyAllTAs(Transaction ta)
public org.ozoneDB.OzoneCompatible targetShadow()
public org.ozoneDB.OzoneCompatible target()
target
in interface ObjectContainer
protected org.ozoneDB.OzoneCompatible setObject(org.ozoneDB.OzoneCompatible obj)
protected void setOwner(User newOwner)
protected int touchCount()
protected boolean touched()
protected long touchTime()
protected ClusterID clusterID()
protected void setClusterID(ClusterID _clusterID)
protected java.lang.Class objectClass() throws java.lang.Exception
java.lang.Exception
protected org.ozoneDB.OzoneCompatible activatedObject() throws java.lang.Exception
java.lang.Exception
protected void commitTarget(Transaction ta)
protected void abortTarget(Transaction ta)
protected void upgradeLockLevel(Transaction ta, int lockLevel) throws java.lang.Exception
java.lang.Exception
protected void createShadow() throws java.lang.Exception
java.lang.Exception
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
protected void storeExternal(java.io.ObjectOutput out) throws java.io.IOException
java.io.IOException
protected void loadExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
private java.lang.reflect.Method methodFor(java.lang.String methodName, java.lang.String sig, java.lang.Object[] args) throws java.lang.Exception
java.lang.Exception
|
ozone core API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |