| Modifier and Type | Field and Description |
|---|---|
private boolean |
enabled
Tells if the service is activated or not
|
private static org.slf4j.Logger |
LOG
The class logger
|
private int |
rotation
A parameter indicating the number of operations stored in a journal
before it is rotated.
|
private JournalStore |
store
An instance of the Journal store
|
| Constructor and Description |
|---|
DefaultJournal() |
| 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 directoryService)
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) |
private static final org.slf4j.Logger LOG
private boolean enabled
private JournalStore store
private int rotation
public void destroy()
throws java.lang.Exception
public JournalStore getJournalStore()
getJournalStore in interface Journalpublic void init(DirectoryService directoryService) throws java.lang.Exception
public boolean isEnabled()
public void log(LdapPrincipal principal, long revision, org.apache.directory.api.ldap.model.ldif.LdifEntry entry) throws org.apache.directory.api.ldap.model.exception.LdapException
public void ack(long revision)
public void nack(long revision)
public int getRotation()
getRotation in interface Journalpublic void setRotation(int rotation)
setRotation in interface Journalrotation - the rotation to setpublic void setEnabled(boolean enabled)
JournalsetEnabled in interface Journalenabled - true to enable the service, false to disable itpublic void setJournalStore(JournalStore store)
JournalsetJournalStore in interface Journalstore - The storage