Class GrizzlyLDAPConnectionFactory

java.lang.Object
org.forgerock.opendj.grizzly.GrizzlyLDAPConnectionFactory
All Implemented Interfaces:
Closeable, AutoCloseable, org.forgerock.opendj.ldap.spi.LDAPConnectionFactoryImpl

public final class GrizzlyLDAPConnectionFactory extends Object implements org.forgerock.opendj.ldap.spi.LDAPConnectionFactoryImpl
LDAP connection factory implementation using Grizzly for transport.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.forgerock.util.Option<org.glassfish.grizzly.nio.transport.TCPNIOTransport>
    Grizzly TCP Transport NIO implementation to use for connections.
  • Constructor Summary

    Constructors
    Constructor
    Description
    GrizzlyLDAPConnectionFactory(String host, int port, org.forgerock.util.Options options)
    Creates a new LDAP connection factory based on Grizzly which can be used to create connections to the Directory Server at the provided host and port address using provided connection options.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    org.forgerock.util.promise.Promise<org.forgerock.opendj.ldap.spi.LDAPConnectionImpl,org.forgerock.opendj.ldap.LdapException>
     
     
    int
     
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • GRIZZLY_TRANSPORT

      public static final org.forgerock.util.Option<org.glassfish.grizzly.nio.transport.TCPNIOTransport> GRIZZLY_TRANSPORT
      Grizzly TCP Transport NIO implementation to use for connections. If null, default transport will be used.
  • Constructor Details

    • GrizzlyLDAPConnectionFactory

      public GrizzlyLDAPConnectionFactory(String host, int port, org.forgerock.util.Options options)
      Creates a new LDAP connection factory based on Grizzly which can be used to create connections to the Directory Server at the provided host and port address using provided connection options.
      Parameters:
      host - The hostname of the Directory Server to connect to.
      port - The port number of the Directory Server to connect to.
      options - The LDAP connection options to use when creating connections.
  • Method Details

    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in interface org.forgerock.opendj.ldap.spi.LDAPConnectionFactoryImpl
    • getConnectionAsync

      public org.forgerock.util.promise.Promise<org.forgerock.opendj.ldap.spi.LDAPConnectionImpl,org.forgerock.opendj.ldap.LdapException> getConnectionAsync()
      Specified by:
      getConnectionAsync in interface org.forgerock.opendj.ldap.spi.LDAPConnectionFactoryImpl
    • getSocketAddress

      Specified by:
      getSocketAddress in interface org.forgerock.opendj.ldap.spi.LDAPConnectionFactoryImpl
    • getHostName

      public String getHostName()
      Specified by:
      getHostName in interface org.forgerock.opendj.ldap.spi.LDAPConnectionFactoryImpl
    • getPort

      public int getPort()
      Specified by:
      getPort in interface org.forgerock.opendj.ldap.spi.LDAPConnectionFactoryImpl