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(java.lang.String fileName)
The file name to use as the journal file.
|
void |
setWorkingDirectory(java.lang.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 java.lang.Exception
service - The associated DirectoryServicejava.lang.Exception - If the initialization failedvoid sync() throws java.lang.Exception
java.lang.Exception - If the write failedvoid destroy()
throws java.lang.Exception
java.lang.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 writtenjava.lang.Exception - if there are problems logging the nackvoid setFileName(java.lang.String fileName)
fileName - the fileName to setvoid setWorkingDirectory(java.lang.String workingDirectory)
workingDirectory - The working directory in which the journal file
will be stored