Package com.unboundid.ldap.listener
Class InMemoryDirectoryServerSnapshot
java.lang.Object
com.unboundid.ldap.listener.InMemoryDirectoryServerSnapshot
- All Implemented Interfaces:
Serializable
@NotMutable
@ThreadSafety(level=COMPLETELY_THREADSAFE)
public final class InMemoryDirectoryServerSnapshot
extends Object
implements Serializable
This class provides an opaque data structure which represents a point-in-time
snapshot for an in-memory directory server instance. Note that this snapshot
will reflect only data held in the server (including both user data and any
changelog information, if that is enabled), but will not alter the settings
of the server which are defined through configuration.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves an unmodifiable map of all entries defined in the server at the time the snapshot was created.longRetrieves the first change number for the server at the time the snapshot was created.longRetrieves the last change number for the server at the time the snapshot was created.
-
Method Details
-
getEntryMap
Retrieves an unmodifiable map of all entries defined in the server at the time the snapshot was created. This will include user-defined entries as sell as changelog entries, but it will exclude the root DSE and the schema subentry (since they are dynamically generated from the configuration).- Returns:
- An unmodifiable map of all entries defined in the server at the time the snapshot was created.
-
getFirstChangeNumber
Retrieves the first change number for the server at the time the snapshot was created.- Returns:
- The first change number for the server at the time the snapshot was created.
-
getLastChangeNumber
Retrieves the last change number for the server at the time the snapshot was created.- Returns:
- The last change number for the server at the time the snapshot was created.
-