Package org.forgerock.opendj.grizzly
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
FieldsModifier and TypeFieldDescriptionstatic final org.forgerock.util.Option<org.glassfish.grizzly.nio.transport.TCPNIOTransport> Grizzly TCP Transport NIO implementation to use for connections. -
Constructor Summary
ConstructorsConstructorDescriptionGrizzlyLDAPConnectionFactory(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
-
Field Details
-
GRIZZLY_TRANSPORT
public static final org.forgerock.util.Option<org.glassfish.grizzly.nio.transport.TCPNIOTransport> GRIZZLY_TRANSPORTGrizzly TCP Transport NIO implementation to use for connections. Ifnull, default transport will be used.
-
-
Constructor Details
-
GrizzlyLDAPConnectionFactory
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
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceorg.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:
getConnectionAsyncin interfaceorg.forgerock.opendj.ldap.spi.LDAPConnectionFactoryImpl
-
getSocketAddress
- Specified by:
getSocketAddressin interfaceorg.forgerock.opendj.ldap.spi.LDAPConnectionFactoryImpl
-
getHostName
- Specified by:
getHostNamein interfaceorg.forgerock.opendj.ldap.spi.LDAPConnectionFactoryImpl
-
getPort
- Specified by:
getPortin interfaceorg.forgerock.opendj.ldap.spi.LDAPConnectionFactoryImpl
-