From 8a060091156c631c76476582458a32daa50a5bb2 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Wed, 29 Aug 2007 06:10:13 +0000
Subject: [PATCH] Add an API that can be used to allow compressed schema tokens to be stored in alternate repositories. The current implementation is still the default server-wide mechanism using the config/schematokens.dat file, but it will be possible to use this API to create alternate implementations (e.g., one for the JE backend that stores the tokens in the database).
---
opends/src/server/org/opends/server/core/DirectoryServer.java | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/opends/src/server/org/opends/server/core/DirectoryServer.java b/opends/src/server/org/opends/server/core/DirectoryServer.java
index fd0c3fe..d5662b3 100644
--- a/opends/src/server/org/opends/server/core/DirectoryServer.java
+++ b/opends/src/server/org/opends/server/core/DirectoryServer.java
@@ -42,6 +42,7 @@
import org.opends.server.api.CertificateMapper;
import org.opends.server.api.ChangeNotificationListener;
import org.opends.server.api.ClientConnection;
+import org.opends.server.api.CompressedSchema;
import org.opends.server.api.ConfigAddListener;
import org.opends.server.api.ConfigChangeListener;
import org.opends.server.api.ConfigDeleteListener;
@@ -503,6 +504,9 @@
// The crypto manager for the Directory Server.
private CryptoManager cryptoManager;
+ // The default compressed schema manager.
+ private DefaultCompressedSchema compressedSchema;
+
// The environment configuration for the Directory Server.
private DirectoryEnvironmentConfig environmentConfig;
@@ -1176,6 +1180,8 @@
e.getLocalizedMessage());
throw new InitializationException(message);
}
+
+ compressedSchema = new DefaultCompressedSchema();
}
@@ -2403,6 +2409,18 @@
/**
+ * Retrieves the default compressed schema manager for the Directory Server.
+ *
+ * @return The default compressed schema manager for the Directory Server.
+ */
+ public static CompressedSchema getDefaultCompressedSchema()
+ {
+ return directoryServer.compressedSchema;
+ }
+
+
+
+ /**
* Gets all of the add, delete, and change listeners from the provided
* configuration entry and all of its descendants and puts them in the
* appropriate lists.
--
Gitblit v1.10.0