|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.server.core.journal.DefaultJournalStore
public class DefaultJournalStore
Constructor Summary | |
---|---|
DefaultJournalStore()
|
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. |
java.lang.String |
getFileName()
|
void |
init(DirectoryService service)
Initialize the interceptor |
boolean |
log(LdapPrincipal principal,
long revision,
org.apache.directory.shared.ldap.ldif.LdifEntry forward)
Stores an event into the journal. |
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 workingDirectoryName)
The working directory on which the journal file will be stored. |
void |
sync()
Write the changes on disk |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultJournalStore()
Method Detail |
---|
public void destroy() throws java.lang.Exception
destroy
in interface JournalStore
java.lang.Exception
- If we can't destroy the logspublic void init(DirectoryService service) throws java.lang.Exception
init
in interface JournalStore
service
- The associated DirectoryService
java.lang.Exception
- If the initialization failedpublic boolean log(LdapPrincipal principal, long revision, org.apache.directory.shared.ldap.ldif.LdifEntry forward)
log
in interface JournalStore
principal
- The principal who is logging the changerevision
- The operation revisionforward
- The change to log
true
if the entry has been writtenpublic boolean ack(long revision)
ack
in interface JournalStore
revision
- The change revision which is acked
true
if the ack has been written
java.lang.Exception
- if there are problems logging the ackpublic boolean nack(long revision)
nack
in interface JournalStore
revision
- The change revision which is nacked
true
if the nack has been written
java.lang.Exception
- if there are problems logging the nackpublic void sync() throws java.lang.Exception
JournalStore
sync
in interface JournalStore
java.lang.Exception
- If the write failedpublic long getCurrentRevision()
JournalStore
getCurrentRevision
in interface JournalStore
public java.lang.String getFileName()
public void setFileName(java.lang.String fileName)
JournalStore
setFileName
in interface JournalStore
fileName
- the fileName to setpublic void setWorkingDirectory(java.lang.String workingDirectoryName)
setWorkingDirectory
in interface JournalStore
workingDirectoryName
- 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 |