org.apache.directory.server.core.factory.JdbmPartitionFactory Java Examples
The following examples show how to use
org.apache.directory.server.core.factory.JdbmPartitionFactory.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ApacheDSStartStopListener.java From syncope with Apache License 2.0 | 6 votes |
private void initSystemPartition() throws Exception { JdbmPartitionFactory partitionFactory = new JdbmPartitionFactory(); Partition systemPartition = partitionFactory.createPartition( service.getSchemaManager(), service.getDnFactory(), "system", ServerDNConstants.SYSTEM_DN, 500, new File(service.getInstanceLayout().getPartitionsDirectory(), "system")); systemPartition.setSchemaManager(service.getSchemaManager()); partitionFactory.addIndex(systemPartition, SchemaConstants.OBJECT_CLASS_AT, 100); service.setSystemPartition(systemPartition); }
Example #2
Source File: EmbeddedLdapServer.java From cloudstack with Apache License 2.0 | 5 votes |
protected void createBasePartition() throws Exception { JdbmPartitionFactory jdbmPartitionFactory = new JdbmPartitionFactory(); setBasePartition(jdbmPartitionFactory.createPartition(getDirectoryService().getSchemaManager(), getDirectoryService().getDnFactory(), getBasePartitionName(), getBaseStructure(), getBaseCacheSize(), getBasePartitionPath())); addSchemaExtensions(); createBaseIndices(); getDirectoryService().addPartition(getBasePartition()); }
Example #3
Source File: ApacheDirectoryPartitionManager.java From carbon-identity with Apache License 2.0 | 4 votes |
public ApacheDirectoryPartitionManager(DirectoryService directoryService, String wd) { this.directoryService = directoryService; this.workingDirectory = wd; this.partitionFactory = new JdbmPartitionFactory(); }