Package com.nimbusds.common.ldap
Class LDAPHealthCheck
- java.lang.Object
-
- com.codahale.metrics.health.HealthCheck
-
- com.nimbusds.common.ldap.LDAPHealthCheck
-
public class LDAPHealthCheck extends com.codahale.metrics.health.HealthCheck
Simple LDAP connection (individual or pool) health check. Retrieves a specified entry from the directory to determine the LDAP connection health.
-
-
Constructor Summary
Constructors Constructor Description 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.codahale.metrics.health.HealthCheck.Result
check()
-
-
-
Constructor Detail
-
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.
-
-