Package com.nimbusds.common.ldap
Class LDAPHealthCheck
java.lang.Object
com.codahale.metrics.health.HealthCheck
com.nimbusds.common.ldap.LDAPHealthCheck
Simple LDAP connection (individual or pool) health check. Retrieves a
specified entry from the directory to determine the LDAP connection health.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.codahale.metrics.health.HealthCheck
com.codahale.metrics.health.HealthCheck.Result, com.codahale.metrics.health.HealthCheck.ResultBuilder
-
Constructor Summary
ConstructorDescriptionLDAPHealthCheck
(com.unboundid.ldap.sdk.LDAPInterface ldap, com.unboundid.ldap.sdk.DN testEntry, org.apache.logging.log4j.Logger log) Creates a new LDAP connection pool health check. -
Method Summary
Methods inherited from class com.codahale.metrics.health.HealthCheck
clock, execute
-
Constructor Details
-
LDAPHealthCheck
public LDAPHealthCheck(com.unboundid.ldap.sdk.LDAPInterface ldap, com.unboundid.ldap.sdk.DN testEntry, org.apache.logging.log4j.Logger log) Creates a new LDAP connection pool health check.- Parameters:
ldap
- The LDAP store. Must not benull
.testEntry
- LDAP entry to retrieve for the health check. Must not benull
.log
- Optional logger for health check errors,null
if not required.
-
-
Method Details
-
check
- Specified by:
check
in classcom.codahale.metrics.health.HealthCheck
- Throws:
Exception
-