|
ozone core API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.ozoneDB.core.wizardStore.Cluster
Field Summary | |
protected int |
bytesPerContainer
|
protected ClusterID |
clusterID
|
protected ClusterStore |
clusterStore
|
protected DxMap |
containers
Maps ObjectIDs into WizardObjectContainers. |
protected Env |
env
The environment. |
protected long |
lastTouched
|
protected Lock |
lock
|
protected long |
modTime
|
protected Permissions |
permissions
|
protected int |
pinCount
The count of users of this cluster which requested it to be pinned. |
protected static long |
serialVersionUID
|
protected static byte |
subSerialVersionUID
|
Constructor Summary | |
Cluster()
Constructor to be used for Externalizable object serialisation. |
|
Cluster(ClusterID _clusterID,
Permissions _permissions,
Lock _lock,
int _bpc)
|
Method Summary | |
void |
abort(Transaction ta)
|
void |
addPinCount(int what)
Adds an amount to the pin count |
protected DxCollection |
allLockers()
|
protected DxLong |
cachePriority()
Priority of this cluster to stay in the cluster cache. |
int |
clearPinCount()
Sets the pin count to zero and returns the former pin count. |
ClusterID |
clusterID()
|
void |
commit(Transaction ta)
|
WizardObjectContainer |
containerForID(ObjectID id)
|
protected void |
delete()
Delete this cluster from the disk. |
protected void |
deleteShadow()
|
void |
finalize()
|
protected Lock |
getLock()
|
boolean |
isInvoked()
|
boolean |
isPinned()
Returns wether this cluster is pinned. |
long |
modTime()
|
void |
pin()
Pins this Cluster. |
void |
prepareCommit(Transaction ta)
|
void |
readExternal(java.io.ObjectInput in)
|
void |
registerContainer(WizardObjectContainer container)
|
void |
removeContainer(WizardObjectContainer container)
|
protected void |
restoreShadow()
Restore the saved shadow on disk. |
protected void |
saveShadow()
|
void |
setCurrentSize(int byteSize)
|
protected void |
setLock(Lock to)
|
int |
size()
|
java.lang.String |
toString()
|
void |
touch()
|
void |
unpin()
Unpins this Cluster. |
void |
updateLockLevel(Transaction ta)
Note: This method must not be synchronized. |
void |
writeExternal(java.io.ObjectOutput out)
|
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static final long serialVersionUID
protected static final byte subSerialVersionUID
protected transient Env env
protected transient ClusterStore clusterStore
protected ClusterID clusterID
protected DxMap containers
protected Permissions permissions
protected transient Lock lock
protected transient long lastTouched
protected transient int bytesPerContainer
protected long modTime
protected transient int pinCount
Constructor Detail |
public Cluster()
public Cluster(ClusterID _clusterID, Permissions _permissions, Lock _lock, int _bpc)
Method Detail |
public void finalize()
finalize
in class java.lang.Object
public long modTime()
protected DxLong cachePriority()
public void setCurrentSize(int byteSize)
public int size()
public ClusterID clusterID()
public boolean isInvoked()
public void touch()
public void registerContainer(WizardObjectContainer container)
public void removeContainer(WizardObjectContainer container)
public WizardObjectContainer containerForID(ObjectID id)
public void updateLockLevel(Transaction ta) throws java.io.IOException
ta
-
java.io.IOException
public void prepareCommit(Transaction ta)
public void commit(Transaction ta) throws java.io.IOException
java.io.IOException
public void abort(Transaction ta) throws java.io.IOException
java.io.IOException
protected DxCollection allLockers()
protected void saveShadow() throws java.io.IOException
java.io.IOException
protected void restoreShadow() throws java.io.IOException
java.io.IOException
protected void deleteShadow() throws java.io.IOException
java.io.IOException
protected void delete() throws java.lang.Exception
java.lang.Exception
public java.lang.String toString()
toString
in class java.lang.Object
protected Lock getLock()
protected void setLock(Lock to)
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.io.ObjectStreamException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.io.ObjectStreamException
java.lang.ClassNotFoundException
public void pin()
unpin()
.
A Cluster remains in main memory at least as long as it is pinned.
public void unpin()
pin()
.
public boolean isPinned()
public int clearPinCount()
public void addPinCount(int what)
|
ozone core API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |