C
- the configuration for the Service Discoverypublic interface ServiceDiscoveryMechanism<C extends ServiceDiscoveryMechanismCfg>
Partition
s keeping it up to date according to a specific discovery mechanism.Modifier and Type | Method and Description |
---|---|
void |
deregisterChangeListener(ServiceDiscoveryChangeListener listener)
De-registers a listener from notifications on service changes.
|
void |
finalizeMechanism()
Frees any resources in use, mechanism will not be used anymore afterwards.
|
String |
getName()
Returns the name of the mechanism.
|
Set<Partition> |
getPartitions(Collection<Dn> baseDNs)
Returns the partitions.
|
void |
initializeMechanism(C configuration,
ServerContext serverContext)
Initializes the mechanism with the provided configuration.
|
boolean |
isConfigurationAcceptable(C configuration,
List<LocalizableMessage> unacceptableReasons,
ServerContext serverContext)
Returns whether the provided configuration is correct for the mechanism.
|
void |
registerChangeListener(ServiceDiscoveryChangeListener listener)
Registers a listener to be notified when changes in the service occur.
|
String getName()
boolean isConfigurationAcceptable(C configuration, List<LocalizableMessage> unacceptableReasons, ServerContext serverContext)
configuration
- the configuration to checkunacceptableReasons
- the list of reasons the configuration is not acceptableserverContext
- the server context of this Directory Server instancevoid initializeMechanism(C configuration, ServerContext serverContext)
configuration
- the configuration for initializationserverContext
- the server context for this Directory Server instancevoid finalizeMechanism()
void registerChangeListener(ServiceDiscoveryChangeListener listener)
listener
- the listener to register for notificationsvoid deregisterChangeListener(ServiceDiscoveryChangeListener listener)
listener
- the listener to de-registerSet<Partition> getPartitions(Collection<Dn> baseDNs)
Each Partition
will only contain servers that are known to expose the provided list of base DNs. An empty
list of base DNs will result in all partitions and all servers being returned. In other words, an empty list of
base DNs implies that all servers contain exactly the same base DNs.
baseDNs
- the baseDNs for which to retrieve the partitionsCopyright 2010-2022 ForgeRock AS.