public final class GrizzlyLDAPConnectionFactory extends Object implements org.forgerock.opendj.ldap.spi.LDAPConnectionFactoryImpl
| Constructor and Description |
|---|
GrizzlyLDAPConnectionFactory(String host,
int port,
org.forgerock.opendj.ldap.LDAPOptions 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.
|
GrizzlyLDAPConnectionFactory(String host,
int port,
org.forgerock.opendj.ldap.LDAPOptions options,
org.glassfish.grizzly.nio.transport.TCPNIOTransport transport)
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 and provided TCP
transport.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
org.forgerock.opendj.ldap.Connection |
getConnection() |
org.forgerock.util.promise.Promise<org.forgerock.opendj.ldap.Connection,org.forgerock.opendj.ldap.LdapException> |
getConnectionAsync() |
String |
getHostName() |
int |
getPort() |
InetSocketAddress |
getSocketAddress() |
String |
toString() |
public GrizzlyLDAPConnectionFactory(String host, int port, org.forgerock.opendj.ldap.LDAPOptions 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 GrizzlyLDAPConnectionFactory(String host, int port, org.forgerock.opendj.ldap.LDAPOptions options, org.glassfish.grizzly.nio.transport.TCPNIOTransport transport)
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.transport - Grizzly TCP Transport NIO implementation to use for
connections. If null, default transport will be used.public void close()
close in interface Closeableclose in interface AutoCloseableclose in interface org.forgerock.opendj.ldap.ConnectionFactorypublic org.forgerock.opendj.ldap.Connection getConnection() throws org.forgerock.opendj.ldap.LdapException
getConnection in interface org.forgerock.opendj.ldap.ConnectionFactoryorg.forgerock.opendj.ldap.LdapExceptionpublic org.forgerock.util.promise.Promise<org.forgerock.opendj.ldap.Connection,org.forgerock.opendj.ldap.LdapException> getConnectionAsync()
getConnectionAsync in interface org.forgerock.opendj.ldap.ConnectionFactorypublic 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 © 2011-2015 ForgeRock AS. All Rights Reserved.