public final class GrizzlyLDAPConnectionFactory extends Object implements org.forgerock.opendj.ldap.spi.LDAPConnectionFactoryImpl
| Modifier and Type | Field and Description |
|---|---|
static org.forgerock.util.Option<org.glassfish.grizzly.nio.transport.TCPNIOTransport> |
GRIZZLY_TRANSPORT
Grizzly TCP Transport NIO implementation to use for connections.
|
| Constructor and 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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
org.forgerock.util.promise.Promise<org.forgerock.opendj.ldap.spi.LDAPConnectionImpl,org.forgerock.opendj.ldap.LdapException> |
getConnectionAsync() |
String |
getHostName() |
int |
getPort() |
InetSocketAddress |
getSocketAddress() |
public static final org.forgerock.util.Option<org.glassfish.grizzly.nio.transport.TCPNIOTransport> GRIZZLY_TRANSPORT
null, default transport will be
used.public GrizzlyLDAPConnectionFactory(String host, int port, org.forgerock.util.Options options)
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.public void close()
close in interface Closeableclose in interface AutoCloseableclose in interface org.forgerock.opendj.ldap.spi.LDAPConnectionFactoryImplpublic org.forgerock.util.promise.Promise<org.forgerock.opendj.ldap.spi.LDAPConnectionImpl,org.forgerock.opendj.ldap.LdapException> getConnectionAsync()
getConnectionAsync in interface org.forgerock.opendj.ldap.spi.LDAPConnectionFactoryImplpublic InetSocketAddress getSocketAddress()
getSocketAddress in interface org.forgerock.opendj.ldap.spi.LDAPConnectionFactoryImplpublic String getHostName()
getHostName in interface org.forgerock.opendj.ldap.spi.LDAPConnectionFactoryImplpublic int getPort()
getPort in interface org.forgerock.opendj.ldap.spi.LDAPConnectionFactoryImplCopyright © 2017-2020 Wren Security. All Rights Reserved.