org.ldaptive.pool
Class CompareValidator

java.lang.Object
  extended by org.ldaptive.pool.CompareValidator
All Implemented Interfaces:
Validator<Connection>

public class CompareValidator
extends Object
implements Validator<Connection>

Validates a connection is healthy by performing a compare operation.

Version:
$Revision: 2885 $ $Date: 2014-02-05 16:28:49 -0500 (Wed, 05 Feb 2014) $
Author:
Middleware Services

Field Summary
protected  org.slf4j.Logger logger
          Logger for this class.
 
Constructor Summary
CompareValidator()
          Creates a new compare validator.
CompareValidator(CompareRequest cr)
          Creates a new compare validator.
 
Method Summary
 CompareRequest getCompareRequest()
          Returns the compare request.
 void setCompareRequest(CompareRequest cr)
          Sets the compare request.
 String toString()
          
 boolean validate(Connection c)
          Validate the supplied object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

logger

protected final org.slf4j.Logger logger
Logger for this class.

Constructor Detail

CompareValidator

public CompareValidator()
Creates a new compare validator.


CompareValidator

public CompareValidator(CompareRequest cr)
Creates a new compare validator.

Parameters:
cr - to use for compares
Method Detail

getCompareRequest

public CompareRequest getCompareRequest()
Returns the compare request.

Returns:
compare request

setCompareRequest

public void setCompareRequest(CompareRequest cr)
Sets the compare request.

Parameters:
cr - compare request

validate

public boolean validate(Connection c)
Validate the supplied object.

Specified by:
validate in interface Validator<Connection>
Parameters:
c - object
Returns:
whether validation was successful

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2003-2015 Virginia Tech. All Rights Reserved.