|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.server.core.changelog.DefaultChangeLog
public class DefaultChangeLog
The default ChangeLog service implementation. It stores operations in memory. Entries are stored into a dedicated partition, named ou=changelog, under which we have two other sub-entries : ou=tags and ou= revisions : ou=changelog | +-- ou=revisions | +-- ou=tags
| Constructor Summary | |
|---|---|
DefaultChangeLog()
|
|
| Method Summary | |
|---|---|
void |
destroy()
|
ChangeLogSearchEngine |
getChangeLogSearchEngine()
|
ChangeLogStore |
getChangeLogStore()
|
long |
getCurrentRevision()
|
Tag |
getLatest()
|
TagSearchEngine |
getTagSearchEngine()
|
void |
init(DirectoryService service)
Initialize the ChangeLog system. |
boolean |
isEnabled()
|
boolean |
isExposed()
|
boolean |
isLogSearchSupported()
|
boolean |
isTagSearchSupported()
|
boolean |
isTagStorageSupported()
|
ChangeLogEvent |
log(LdapPrincipal principal,
org.apache.directory.shared.ldap.ldif.LdifEntry forward,
org.apache.directory.shared.ldap.ldif.LdifEntry reverse)
|
ChangeLogEvent |
log(LdapPrincipal principal,
org.apache.directory.shared.ldap.ldif.LdifEntry forward,
java.util.List<org.apache.directory.shared.ldap.ldif.LdifEntry> reverses)
|
void |
setChangeLogStore(ChangeLogStore store)
If there is an existing changeLog store, we don't switch it |
void |
setEnabled(boolean enabled)
|
void |
setExposed(boolean exposed)
|
void |
setPartitionSuffix(java.lang.String suffix)
|
void |
setRevisionsContainerName(java.lang.String revContainerName)
|
void |
setTagsContainerName(java.lang.String tagContainerName)
|
void |
sync()
|
Tag |
tag()
|
Tag |
tag(long revision)
|
Tag |
tag(long revision,
java.lang.String description)
|
Tag |
tag(java.lang.String description)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultChangeLog()
| Method Detail |
|---|
public ChangeLogStore getChangeLogStore()
getChangeLogStore in interface ChangeLogpublic void setChangeLogStore(ChangeLogStore store)
setChangeLogStore in interface ChangeLog
public long getCurrentRevision()
throws java.lang.Exception
getCurrentRevision in interface ChangeLogjava.lang.Exception
public ChangeLogEvent log(LdapPrincipal principal,
org.apache.directory.shared.ldap.ldif.LdifEntry forward,
org.apache.directory.shared.ldap.ldif.LdifEntry reverse)
throws java.lang.Exception
log in interface ChangeLogjava.lang.Exception
public ChangeLogEvent log(LdapPrincipal principal,
org.apache.directory.shared.ldap.ldif.LdifEntry forward,
java.util.List<org.apache.directory.shared.ldap.ldif.LdifEntry> reverses)
throws java.lang.Exception
log in interface ChangeLogjava.lang.Exceptionpublic boolean isLogSearchSupported()
isLogSearchSupported in interface ChangeLogpublic boolean isTagSearchSupported()
isTagSearchSupported in interface ChangeLogpublic boolean isTagStorageSupported()
isTagStorageSupported in interface ChangeLogpublic ChangeLogSearchEngine getChangeLogSearchEngine()
getChangeLogSearchEngine in interface ChangeLogpublic TagSearchEngine getTagSearchEngine()
getTagSearchEngine in interface ChangeLog
public Tag tag(long revision,
java.lang.String description)
throws java.lang.Exception
tag in interface ChangeLogjava.lang.Exception
public Tag tag(long revision)
throws java.lang.Exception
tag in interface ChangeLogjava.lang.Exception
public Tag tag(java.lang.String description)
throws java.lang.Exception
tag in interface ChangeLogjava.lang.Exception
public Tag tag()
throws java.lang.Exception
tag in interface ChangeLogjava.lang.Exceptionpublic void setEnabled(boolean enabled)
setEnabled in interface ChangeLogpublic boolean isEnabled()
isEnabled in interface ChangeLog
public Tag getLatest()
throws java.lang.Exception
getLatest in interface ChangeLogjava.lang.Exception
public void init(DirectoryService service)
throws java.lang.Exception
init in interface ChangeLogjava.lang.Exception
public void sync()
throws java.lang.Exception
sync in interface ChangeLogjava.lang.Exception
public void destroy()
throws java.lang.Exception
destroy in interface ChangeLogjava.lang.Exceptionpublic boolean isExposed()
isExposed in interface ChangeLogpublic void setExposed(boolean exposed)
setExposed in interface ChangeLogpublic void setPartitionSuffix(java.lang.String suffix)
setPartitionSuffix in interface ChangeLogpublic void setRevisionsContainerName(java.lang.String revContainerName)
setRevisionsContainerName in interface ChangeLogpublic void setTagsContainerName(java.lang.String tagContainerName)
setTagsContainerName in interface ChangeLogpublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||