|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.journal.DatabaseJournal.DatabaseRevision
public class DatabaseJournal.DatabaseRevision
This class manages the local revision of the cluster node. It persists the local revision in the LOCAL_REVISIONS table in the clustering database.
| Constructor Summary | |
|---|---|
DatabaseJournal.DatabaseRevision()
|
|
| Method Summary | |
|---|---|
void |
close()
Closes the instance revision. |
long |
get()
Return current instance revision. |
protected long |
init(long revision)
Checks whether there's a local revision value in the database for this cluster node. |
void |
set(long localRevision)
Set current instance revision. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DatabaseJournal.DatabaseRevision()
| Method Detail |
|---|
protected long init(long revision)
throws JournalException
revision - the default value for the local revision counter
JournalException - on errorpublic long get()
get in interface InstanceRevision
public void set(long localRevision)
throws JournalException
set in interface InstanceRevisionlocalRevision - new instance revision
JournalException - if some error occurspublic void close()
close in interface InstanceRevision
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||