|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PartitionManager
Handles apacheds service operations. E.g :- Adding new partitions, removing/deleting existing partitions etc ... In a multi-tenant environment we would have a new partition for each tenant. So we need to manage partitions according to the way tenants are created and deleted.
| Method Summary | |
|---|---|
void |
addPartition(PartitionInfo partitionInformation)
Adds a new partition to current apacheds store. |
int |
getNumberOfPartitions()
count the number of existing partitions |
void |
initializeExistingPartition(PartitionInfo parttionInfo)
This method initializes a partition from an existing partition directory. |
boolean |
partitionDirectoryExists(String partitionID)
This checks whether a partition directory exists with the given partition ID. |
boolean |
partitionInitialized(String partitionId)
Checks whether a given partition is initialized in the directory service. |
void |
removeAllPartitions()
Removes all partitions except system partition. |
void |
removePartition(String partitionSuffix)
Removes given partition from apacheds server. |
void |
synchronizePartitions()
Synchronizes the modified partitions. |
| Method Detail |
|---|
void addPartition(PartitionInfo partitionInformation)
throws DirectoryServerException
partitionInformation - This contains necessary information to create a partition.
Mainly it contains following information,
1. partitionId - The partition id. Usually this is tenant id.
2. realm domain - name of the partition. Usually domain name and partition DN are same.
Ex :- o=example.com
3. partitionDN - Suffix used when creating the partition. Usually this is the domain name.
DN: dc=example,dc=com
4. adminInfo - User information for the domain.
DirectoryServerException - If an error occurs while adding the partition.
boolean partitionDirectoryExists(String partitionID)
throws DirectoryServerException
partitionID -
DirectoryServerExceptionboolean partitionInitialized(String partitionId)
partitionId - - Partition identifier to check availability.
void removePartition(String partitionSuffix)
throws DirectoryServerException
partitionSuffix - Partition suffix to be removed.
DirectoryServerException - If error occurs during partition deletion.
void synchronizePartitions()
throws DirectoryServerException
DirectoryServerException - If an error occurred during operation.
void removeAllPartitions()
throws DirectoryServerException
DirectoryServerException - If an error occurred during partition removal.int getNumberOfPartitions()
void initializeExistingPartition(PartitionInfo parttionInfo)
throws DirectoryServerException
parttionInfo -
Exception
DirectoryServerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||