|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface JournalStore
A store for change events on the directory which exposes methods for managing, querying and in general performing legal operations on the log.
| Method Summary | |
|---|---|
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.shared.ldap.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 |
| Method Detail |
|---|
void init(DirectoryService service)
throws java.lang.Exception
service - The associated DirectoryService
java.lang.Exception - If the initialization failed
void sync()
throws java.lang.Exception
java.lang.Exception - If the write failed
void 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.shared.ldap.ldif.LdifEntry forward)
principal - The principal who is logging the changerevision - The operation revisionforward - The change to log
true if the entry has been writtenboolean ack(long revision)
revision - The change revision which is acked
true if the ack has been writtenboolean nack(long revision)
revision - The change revision which is nacked
true if the nack has been written
java.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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||