public interface Journal
Modifier and Type | Method and Description |
---|---|
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.api.ldap.model.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) |
boolean isEnabled()
void setEnabled(boolean enabled)
enabled
- true to enable the service, false to disable itJournalStore getJournalStore()
void setJournalStore(JournalStore store)
store
- The storagevoid log(LdapPrincipal principal, long revision, org.apache.directory.api.ldap.model.ldif.LdifEntry entry) throws org.apache.directory.api.ldap.model.exception.LdapException
principal
- the authorized LDAP principal triggering the changerevision
- the operation revisionentry
- LDIF of the change going to the next stateorg.apache.directory.api.ldap.model.exception.LdapException
- 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 ackedvoid init(DirectoryService service) throws org.apache.directory.api.ldap.model.exception.LdapException
service
- The associated DirectoryServiceorg.apache.directory.api.ldap.model.exception.LdapException
- If something went wrongvoid destroy() throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapException
- If something went wrongint getRotation()
void setRotation(int rotation)
rotation
- the rotation to setCopyright © 2003–2020 The Apache Software Foundation. All rights reserved.