|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ICommitRecord
An interface providing a read-only view of a commit record. A commit record
is written on each commit. The basic metadata in the commit record are the
root addresses from which various critical resources may be loaded, e.g.,
data structures for mapping index names to their addresses on the
Journal, etc. The Journal maintains an
AbstractJournal.getCommitRecord() index over the commits records so that
transactions can rapidly recover the commit record corresponding
to their historical, read-only ground state.
| Field Summary | |
|---|---|
static int |
FIRST_USER_ROOT
The first root address that may be used for a user-defined object. |
static int |
MAX_ROOT_ADDRS
The #of root ids. |
| Method Summary | |
|---|---|
long |
getCommitCounter()
The commit counter associated with the commit record. |
long |
getRootAddr(int index)
The last address stored in the specified root address in this commit record. |
int |
getRootAddrCount()
The #of allowed root addresses. |
long |
getTimestamp()
The timestamp assigned to this commit record -or- 0L iff
there is no ICommitRecord written on the Journal. |
| Field Detail |
|---|
static final int MAX_ROOT_ADDRS
static final int FIRST_USER_ROOT
| Method Detail |
|---|
long getTimestamp()
0L iff
there is no ICommitRecord written on the Journal.
long getCommitCounter()
IResourceManager introduced overflow of journals. The
commitCounter always starts out at zero on a new journal, so the tx
should probably examine the IRootBlockView to figure out if
this is the same journal on which it started and then the
commitCounter to see if there has been an intervening commit.int getRootAddrCount()
long getRootAddr(int index)
index - The index of the root address.
IndexOutOfBoundsException - if the index is negative or too large.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||