|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Journal
A facade for the Journal subsystem.
| Method Summary | |
|---|---|
void |
ack(long revision)
Records a ack for a change |
void |
destroy()
Destroy the journal service |
JournalStore |
getJournalStore()
|
int |
getRotation()
|
void |
init(DirectoryService service)
Initialize the Journal. |
boolean |
isEnabled()
Checks whether or not the Journal has been enabled. |
void |
log(LdapPrincipal principal,
long revision,
org.apache.directory.shared.ldap.ldif.LdifEntry entry)
Records a change as an LDIF entry. |
void |
nack(long revision)
Records a nack for a change |
void |
setEnabled(boolean enabled)
Enable or disable the Journal service |
void |
setJournalStore(JournalStore store)
Set the underlying storage |
void |
setRotation(int rotation)
|
| Method Detail |
|---|
boolean isEnabled()
void setEnabled(boolean enabled)
enabled - true to enable the service, false to disable itJournalStore getJournalStore()
void setJournalStore(JournalStore store)
store - The storage
void log(LdapPrincipal principal,
long revision,
org.apache.directory.shared.ldap.ldif.LdifEntry entry)
throws java.lang.Exception
principal - the authorized LDAP principal triggering the changerevision - the operation revisionforward - LDIF of the change going to the next state
java.lang.Exception - if there are problems logging the changevoid ack(long revision)
revision - The change revision which is ackedvoid nack(long revision)
revision - The change revision which is acked
void init(DirectoryService service)
throws java.lang.Exception
service - The associated DirectoryService
java.lang.Exception - If something went wrong
void destroy()
throws java.lang.Exception
java.lang.Exception - If something went wrongint getRotation()
void setRotation(int rotation)
rotation - the rotation to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||