Class 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 Detail

      • 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 Detail

      • 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 Detail

      • 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

        public InetSocketAddress 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