| |
|
| java.lang.Object org.ozoneDB.core.wizardStore.Cluster
bytesPerContainer | protected transient int bytesPerContainer(Code) | | |
containers | protected DxMap containers(Code) | | Maps ObjectIDs into WizardObjectContainers.
|
env | protected transient Env env(Code) | | The environment. Will be set by the clusterStore.
|
lastTouched | protected transient long lastTouched(Code) | | |
modTime | protected long modTime(Code) | | |
pinCount | protected transient int pinCount(Code) | | The count of users of this cluster which requested it to be pinned.
If a cluster is pinned, it may not be "passivated" (i.e. written to disk and forgotten),
it has to stay in memory.
This cluster is said to be pinned iff pinCount!=0.
Access to this count is only allowed during synchronization on this Cluster.
|
serialVersionUID | final protected static long serialVersionUID(Code) | | |
subSerialVersionUID | final protected static byte subSerialVersionUID(Code) | | |
Cluster | public Cluster()(Code) | | Constructor to be used for Externalizable object serialisation.
|
addPinCount | public synchronized void addPinCount(int what)(Code) | | Adds an amount to the pin count
|
cachePriority | protected DxLong cachePriority()(Code) | | Priority of this cluster to stay in the cluster cache. Low return value
means low priority.
Cache priority of the cluster. |
clearPinCount | public synchronized int clearPinCount()(Code) | | Sets the pin count to zero and returns the former pin count.
|
delete | protected void delete() throws Exception(Code) | | Delete this cluster from the disk.
|
finalize | public void finalize()(Code) | | |
isInvoked | public boolean isInvoked()(Code) | | True if at least one container is currently invoked. |
isPinned | public synchronized boolean isPinned()(Code) | | Returns wether this cluster is pinned.
|
modTime | public long modTime()(Code) | | |
pin | public synchronized void pin()(Code) | | Pins this Cluster.
Every caller of this method must pair this call with a call to
Cluster.unpin .
A Cluster remains in main memory at least as long as it is pinned.
|
restoreShadow | protected void restoreShadow() throws IOException(Code) | | Restore the saved shadow on disk. The content of the receiver stays the
same. The cluster needs to be re-loaded to reflect the changes.
|
setCurrentSize | public synchronized void setCurrentSize(int byteSize)(Code) | | |
touch | public synchronized void touch()(Code) | | |
unpin | public synchronized void unpin()(Code) | | Unpins this Cluster.
This method must be called exactly once for every call to
Cluster.pin .
|
updateLockLevel | public void updateLockLevel(Transaction ta) throws IOException(Code) | | Note: This method must not be synchronized.
Parameters: ta - Parameters: lockLevel - |
|
|
|