| | |
| | | |
| | | private boolean isRegistered = false; |
| | | |
| | | private static boolean initializationCompleted = true; |
| | | |
| | | /** |
| | | * Finds the domain for a given DN. |
| | | * |
| | |
| | | ReplicationSynchronizationProviderCfg configuration) |
| | | throws ConfigException |
| | | { |
| | | initializationCompleted = false; |
| | | domains.clear(); |
| | | replicationServerListener = new ReplicationServerListener(configuration); |
| | | |
| | |
| | | |
| | | DirectoryServer.registerSupportedControl( |
| | | ReplicationRepairRequestControl.OID_REPLICATION_REPAIR_CONTROL); |
| | | |
| | | initializationCompleted = true; |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | public static boolean isLocalServerId(Integer serverId) |
| | | { |
| | | if (!initializationCompleted) |
| | | return true; |
| | | |
| | | for (LDAPReplicationDomain domain : domains.values()) |
| | | { |
| | | if (domain.getServerId() == serverId) |