public interface JournalStore
| Modifier and Type | Method and Description |
|---|---|
boolean |
ack(long revision)
Records a ack for a change
|
void |
destroy()
Destroy the logs.
|
long |
getCurrentRevision()
Gets the current revision of the server (a.k.a.
|
void |
init(DirectoryService service)
Initialize the store.
|
boolean |
log(LdapPrincipal principal,
long revision,
org.apache.directory.api.ldap.model.ldif.LdifEntry forward)
Records a change as a forward LDIF and the authorized principal
|
boolean |
nack(long revision)
Records a nack for a change
|
void |
setFileName(String fileName)
The file name to use as the journal file.
|
void |
setWorkingDirectory(String workingDirectory)
The working directory on which the journal file will be stored.
|
void |
sync()
Write the changes on disk
|
void init(DirectoryService service) throws Exception
service - The associated DirectoryServiceException - If the initialization failedvoid destroy()
throws Exception
Exception - If we can't destroy the logslong getCurrentRevision()
boolean log(LdapPrincipal principal, long revision, org.apache.directory.api.ldap.model.ldif.LdifEntry forward)
principal - The principal who is logging the changerevision - The operation revisionforward - The change to logtrue if the entry has been writtenboolean ack(long revision)
revision - The change revision which is ackedtrue if the ack has been writtenboolean nack(long revision)
revision - The change revision which is nackedtrue if the nack has been writtenException - if there are problems logging the nackvoid setFileName(String fileName)
fileName - the fileName to setvoid setWorkingDirectory(String workingDirectory)
workingDirectory - The working directory in which the journal file
will be storedCopyright © 2021. All rights reserved.