| java.lang.Object org.apache.derby.impl.store.access.btree.BTreePostCommit
BTreePostCommit | class BTreePostCommit implements Serviceable(Code) | | The BTreePostCommit class implements the Serviceable protocol.
In it's role as a Serviceable object, it stores the state necessary to
find a page in a btree that may have committed delete's to reclaim.
In it's role as a PostCommitProcessor it looks up the page described, and
reclaims space in the btree. It first trys to clean up any deleted commits
on the page. It then will shrink the tree if it is going to delete all
rows from the page (RESOLVE - not done yet).
|
Method Summary | |
public int | performWork(ContextManager contextMgr) perform the work described in the postcommit work. | public boolean | serviceASAP() The urgency of this post commit work.
This determines where this Serviceable is put in the post commit
queue. | public boolean | serviceImmediately() |
performWork | public int performWork(ContextManager contextMgr) throws StandardException(Code) | | perform the work described in the postcommit work.
In this implementation the only work that can be executed by this
post commit processor is this class itself.
Returns Serviceable.DONE when work has completed, orreturns Serviceable.REQUEUE if work needs to be requeued. Parameters: contextMgr - the context manager started by thepost commit daemon exception: StandardException - Standard exception policy. |
serviceASAP | public boolean serviceASAP()(Code) | | The urgency of this post commit work.
This determines where this Serviceable is put in the post commit
queue. Post commit work in the btree can be safely delayed until there
is not user work to do.
false, this work should not be serviced ASAP |
serviceImmediately | public boolean serviceImmediately()(Code) | | |
|
|