Package org.ldaptive
Class LdapURLActivatorService
- java.lang.Object
-
- org.ldaptive.LdapURLActivatorService
-
public final class LdapURLActivatorService extends java.lang.ObjectSingleton which manages a single thread that periodically tests inactive LDAP URLs.- Author:
- Middleware Services
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<LdapURL>getInactiveUrls()Returns the list of inactive urls.static LdapURLActivatorServicegetInstance()Returns the instance of this singleton.static java.time.DurationgetPeriod()Returns the activator period.voidregisterUrl(LdapURL url)Registers an LDAP URL to be tested for activation.protected voidtestInactiveUrls()Tests each registered URL.
-
-
-
Method Detail
-
getInstance
public static LdapURLActivatorService getInstance()
Returns the instance of this singleton.- Returns:
- LDAP URL activator service
-
getPeriod
public static java.time.Duration getPeriod()
Returns the activator period.- Returns:
- activator period
-
registerUrl
public void registerUrl(LdapURL url)
Registers an LDAP URL to be tested for activation. Once a URL becomes active it is automatically removed.- Parameters:
url- that is inactive and should be tested to become active
-
getInactiveUrls
public java.util.List<LdapURL> getInactiveUrls()
Returns the list of inactive urls.- Returns:
- inactive urls
-
testInactiveUrls
protected void testInactiveUrls()
Tests each registered URL. Removes URLs that successfully activated.
-
-