|
ozone core API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ozoneDB.core.storage.AbstractCluster
org.ozoneDB.core.storage.wizardStore.WizardCluster
Field Summary | |
protected int |
bytesPerContainer
|
protected long |
lastTouched
|
protected Lock |
lock
|
protected long |
modTime
|
protected int |
pinCount
The count of users of this cluster which requested it to be pinned. |
protected static long |
serialVersionUID
|
protected static byte |
subSerialVersionUID
|
Fields inherited from class org.ozoneDB.core.storage.AbstractCluster |
clusterID, clusterStore, containers, env, permissions |
Constructor Summary | |
WizardCluster()
Constructor to be used for Externalizable object serialisation. |
|
WizardCluster(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 |
DxCollection |
allLockers()
|
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. |
void |
commit(Transaction ta)
|
void |
delete()
Delete this cluster from the disk. |
protected void |
deleteShadow()
|
boolean |
isInvoked()
|
boolean |
isPinned()
Returns wether this cluster is pinned. |
Lock |
lock()
|
long |
modTime()
|
void |
pin()
Pins this WizardCluster. |
void |
prepareCommit(Transaction ta)
|
void |
readExternal(java.io.ObjectInput in)
|
void |
registerContainer(StorageObjectContainer container)
|
void |
removeContainer(StorageObjectContainer container)
|
protected void |
restoreShadow()
Restore the saved shadow on disk. |
protected void |
saveShadow()
Shadow files are contain the data of original cluster files. |
void |
setCurrentSize(int byteSize)
|
void |
setLock(Lock to)
|
int |
size()
|
java.lang.String |
toString()
|
void |
touch()
|
void |
unpin()
Unpins this WizardCluster. |
void |
updateLockLevel(Transaction ta)
Note: This method must not be synchronized. |
void |
writeExternal(java.io.ObjectOutput out)
|
Methods inherited from class org.ozoneDB.core.storage.AbstractCluster |
clusterID, containerForID, containers, env, permissions, setClusterStore, setEnv |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static final long serialVersionUID
protected static final byte subSerialVersionUID
protected transient Lock lock
protected transient long lastTouched
protected transient int bytesPerContainer
protected long modTime
protected transient int pinCount
Constructor Detail |
public WizardCluster()
public WizardCluster(ClusterID _clusterID, Permissions _permissions, Lock _lock, int _bpc)
Method Detail |
public long modTime()
modTime
in interface Cluster
public DxLong cachePriority()
cachePriority
in interface Cluster
public void setCurrentSize(int byteSize)
setCurrentSize
in interface Cluster
public int size()
size
in interface Cluster
public boolean isInvoked()
public void touch()
touch
in interface Cluster
public void registerContainer(StorageObjectContainer container)
registerContainer
in interface Cluster
registerContainer
in class AbstractCluster
public void removeContainer(StorageObjectContainer container)
removeContainer
in interface Cluster
removeContainer
in class AbstractCluster
public void updateLockLevel(Transaction ta) throws java.io.IOException
updateLockLevel
in interface Cluster
ta
-
java.io.IOException
public void prepareCommit(Transaction ta)
prepareCommit
in interface Cluster
public void commit(Transaction ta) throws java.io.IOException
commit
in interface Cluster
java.io.IOException
public void abort(Transaction ta) throws java.io.IOException
abort
in interface Cluster
java.io.IOException
public DxCollection allLockers()
allLockers
in interface Cluster
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
public void delete() throws java.lang.Exception
delete
in interface Cluster
java.lang.Exception
public java.lang.String toString()
public Lock lock()
lock
in interface Cluster
public void setLock(Lock to)
setLock
in interface Cluster
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 WizardCluster 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 |