Interface StaticServiceDiscoveryMechanismCfg
-
- All Superinterfaces:
Configuration,ServiceDiscoveryMechanismCfg
public interface StaticServiceDiscoveryMechanismCfg extends ServiceDiscoveryMechanismCfg
A server-side interface for querying Static Service Discovery Mechanism settings.A Static Service Discovery Mechanism returns a fixed list of LDAP directory servers.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddStaticChangeListener(ConfigurationChangeListener<StaticServiceDiscoveryMechanismCfg> listener)Register to be notified when this Static Service Discovery Mechanism is changed.Class<? extends StaticServiceDiscoveryMechanismCfg>configurationClass()Gets the configuration class associated with this Static Service Discovery Mechanism.longgetDiscoveryInterval()Gets the "discovery-interval" property.StringgetJavaClass()Gets the "java-class" property.SortedSet<String>getPrimaryServer()Gets the "primary-server" property.SortedSet<String>getSecondaryServer()Gets the "secondary-server" property.voidremoveStaticChangeListener(ConfigurationChangeListener<StaticServiceDiscoveryMechanismCfg> listener)Deregister an existing Static Service Discovery Mechanism configuration change listener.-
Methods inherited from interface org.forgerock.opendj.config.Configuration
dn, name
-
Methods inherited from interface org.forgerock.opendj.server.config.server.ServiceDiscoveryMechanismCfg
addChangeListener, getKeyManagerProvider, getKeyManagerProviderDN, getSSLCertNickname, getTrustManagerProvider, getTrustManagerProviderDN, isUseSSL, isUseStartTLS, removeChangeListener
-
-
-
-
Method Detail
-
configurationClass
Class<? extends StaticServiceDiscoveryMechanismCfg> configurationClass()
Gets the configuration class associated with this Static Service Discovery Mechanism.- Specified by:
configurationClassin interfaceConfiguration- Specified by:
configurationClassin interfaceServiceDiscoveryMechanismCfg- Returns:
- Returns the configuration class associated with this Static Service Discovery Mechanism.
-
addStaticChangeListener
void addStaticChangeListener(ConfigurationChangeListener<StaticServiceDiscoveryMechanismCfg> listener)
Register to be notified when this Static Service Discovery Mechanism is changed.- Parameters:
listener- The Static Service Discovery Mechanism configuration change listener.
-
removeStaticChangeListener
void removeStaticChangeListener(ConfigurationChangeListener<StaticServiceDiscoveryMechanismCfg> listener)
Deregister an existing Static Service Discovery Mechanism configuration change listener.- Parameters:
listener- The Static Service Discovery Mechanism configuration change listener.
-
getDiscoveryInterval
long getDiscoveryInterval()
Gets the "discovery-interval" property.Interval between two server configuration discovery executions.
Specifies how frequently to read the configuration of the servers in order to discover their new information.
- Returns:
- Returns the value of the "discovery-interval" property.
-
getJavaClass
String getJavaClass()
Gets the "java-class" property.Specifies the fully-qualified name of the Java class that provides the Static Service Discovery Mechanism implementation.
- Specified by:
getJavaClassin interfaceServiceDiscoveryMechanismCfg- Returns:
- Returns the value of the "java-class" property.
-
getPrimaryServer
SortedSet<String> getPrimaryServer()
Gets the "primary-server" property.Specifies a list of servers that will be used in preference to secondary servers when available.
- Returns:
- Returns an unmodifiable set containing the values of the "primary-server" property.
-
getSecondaryServer
SortedSet<String> getSecondaryServer()
Gets the "secondary-server" property.Specifies a list of servers that will be used in place of primary servers when all primary servers are unavailable.
- Returns:
- Returns an unmodifiable set containing the values of the "secondary-server" property.
-
-