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
Fields Modifier and Type Field Description static org.forgerock.util.Option<org.glassfish.grizzly.nio.transport.TCPNIOTransport>GRIZZLY_TRANSPORTGrizzly 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()org.forgerock.util.promise.Promise<org.forgerock.opendj.ldap.spi.LDAPConnectionImpl,org.forgerock.opendj.ldap.LdapException>getConnectionAsync()StringgetHostName()intgetPort()InetSocketAddressgetSocketAddress()
-
-
-
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:
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
public InetSocketAddress getSocketAddress()
- Specified by:
getSocketAddressin interfaceorg.forgerock.opendj.ldap.spi.LDAPConnectionFactoryImpl
-
getHostName
public String getHostName()
- Specified by:
getHostNamein interfaceorg.forgerock.opendj.ldap.spi.LDAPConnectionFactoryImpl
-
getPort
public int getPort()
- Specified by:
getPortin interfaceorg.forgerock.opendj.ldap.spi.LDAPConnectionFactoryImpl
-
-