|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.server.core.journal.DefaultJournal
public class DefaultJournal
The default journal implementation. It stores the operation and the associated status (acked or nacked) in a file which will be used to restore the server if it crashes.
| Constructor Summary | |
|---|---|
DefaultJournal()
|
|
| Method Summary | |
|---|---|
void |
ack(long revision)
|
void |
destroy()
|
JournalStore |
getJournalStore()
|
int |
getRotation()
|
void |
init(DirectoryService directoryService)
|
boolean |
isEnabled()
|
void |
log(LdapPrincipal principal,
long revision,
org.apache.directory.shared.ldap.ldif.LdifEntry entry)
|
void |
nack(long revision)
|
void |
setEnabled(boolean enabled)
|
void |
setJournalStore(JournalStore store)
|
void |
setRotation(int rotation)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultJournal()
| Method Detail |
|---|
public void destroy()
throws java.lang.Exception
destroy in interface Journaljava.lang.Exceptionpublic JournalStore getJournalStore()
getJournalStore in interface Journal
public void init(DirectoryService directoryService)
throws java.lang.Exception
init in interface Journaljava.lang.Exceptionpublic boolean isEnabled()
isEnabled in interface Journal
public void log(LdapPrincipal principal,
long revision,
org.apache.directory.shared.ldap.ldif.LdifEntry entry)
throws java.lang.Exception
log in interface Journaljava.lang.Exceptionpublic void ack(long revision)
ack in interface Journalpublic void nack(long revision)
nack in interface Journalpublic int getRotation()
getRotation in interface Journalpublic void setRotation(int rotation)
setRotation in interface Journalrotation - the rotation to setpublic void setEnabled(boolean enabled)
setEnabled in interface Journalpublic void setJournalStore(JournalStore store)
setJournalStore in interface Journal
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||