public class DefaultDirectoryServiceFactory extends java.lang.Object implements DirectoryServiceFactory
| Modifier and Type | Field and Description |
|---|---|
private DirectoryService |
directoryService
The directory service.
|
private static org.slf4j.Logger |
LOG
A logger for this class
|
private PartitionFactory |
partitionFactory
The partition factory.
|
| Constructor and Description |
|---|
DefaultDirectoryServiceFactory() |
DefaultDirectoryServiceFactory(DirectoryService directoryService,
PartitionFactory partitionFactory) |
| Modifier and Type | Method and Description |
|---|---|
private void |
build(java.lang.String name)
Builds the directory server instance.
|
private void |
buildInstanceDirectory(java.lang.String name)
Build the working directory
|
DirectoryService |
getDirectoryService()
Gets the directory service.
|
PartitionFactory |
getPartitionFactory()
Gets the partition factory.
|
void |
init(java.lang.String name)
Inits the directory service factory.
|
private void |
initSchema()
Inits the schema and schema partition.
|
private void |
initSystemPartition()
Inits the system partition.
|
private static final org.slf4j.Logger LOG
private DirectoryService directoryService
private PartitionFactory partitionFactory
public DefaultDirectoryServiceFactory()
public DefaultDirectoryServiceFactory(DirectoryService directoryService, PartitionFactory partitionFactory)
public void init(java.lang.String name)
throws java.lang.Exception
init in interface DirectoryServiceFactoryname - the namejava.lang.Exceptionprivate void buildInstanceDirectory(java.lang.String name)
throws java.io.IOException
java.io.IOExceptionprivate void initSchema()
throws java.lang.Exception
java.lang.Exceptionprivate void initSystemPartition()
throws java.lang.Exception
java.lang.Exception - the exceptionprivate void build(java.lang.String name)
throws java.lang.Exception
name - the instance namejava.lang.Exceptionpublic DirectoryService getDirectoryService() throws java.lang.Exception
getDirectoryService in interface DirectoryServiceFactoryjava.lang.Exceptionpublic PartitionFactory getPartitionFactory() throws java.lang.Exception
getPartitionFactory in interface DirectoryServiceFactoryjava.lang.Exception