***  This class provides Binary Compatibility only, not Source Compatibility  ***

com.sas.services.connection.jndi
Class JNDIConnectionFactoryConfiguration

com.sas.services.connection.jndi.JNDIConnectionFactoryConfiguration
All Implemented Interfaces:
java.lang.Cloneable

public class JNDIConnectionFactoryConfiguration

A connection factory configuration that describes a server or a pool of servers to connect to using meta data in accessed through a JNDI interface.


Constructor Summary
JNDIConnectionFactoryConfiguration(javax.naming.directory.DirContext context, java.lang.String baseDN, java.lang.String logicalName, java.lang.String repositoryDomain)
          Constructs a factory configuration that reads the information necessary to create connections to remote IOM objects from a JNDI repository.
JNDIConnectionFactoryConfiguration(javax.naming.directory.DirContext context, java.lang.String baseDN, java.lang.String logicalName, java.lang.String repositoryDomain, boolean userAuth, boolean adminAuth, boolean noPool)
          This constructor is provided for compatibility with a previous release.
 
Method Summary
 boolean equals(java.lang.Object that)
           
 java.lang.String getBaseDN()
           
 javax.naming.directory.DirContext getContext()
           
protected  java.util.Hashtable getEnv()
           
 java.lang.String getLogicalName()
           
protected  PasswordCredential getPrivLogin()
           
 java.lang.String getRepositoryDomain()
           
 int hashCode()
           
 boolean isAdminAuth()
           
 boolean isNoPool()
           
 boolean isUserAuth()
           
static java.lang.String normalizeDN(java.lang.String dn)
           
protected  void reconnect(javax.naming.CommunicationException ce)
           
 java.lang.String toString()
           
 
Methods inherited from class com.sas.services.connection.ConnectionFactoryConfiguration
getKernel, getKernel, getKernelFromDelegate, kernelDestroyed
 

Constructor Detail

JNDIConnectionFactoryConfiguration

public JNDIConnectionFactoryConfiguration(javax.naming.directory.DirContext context,
                                          java.lang.String baseDN,
                                          java.lang.String logicalName,
                                          java.lang.String repositoryDomain)
Constructs a factory configuration that reads the information necessary to create connections to remote IOM objects from a JNDI repository.

Parameters:
context - a connection to the root node of a JNDI repository that contains the values necessary to start a connection factory. The connection to the repository must have been made with the distinguished name and password of an entity that has read access to those values. This context is not closed when the factory is shutdown.
baseDN - a partial JNDI distinguished name that defines the section within the repository naming hierarchy that contains the pooling information.
logicalName - the value of the sasLogicalName attribute for all login definitions and server definitions under to the baseDN in the JNDI repository that contain information for this factory.
repositoryDomain - the name of the domain assigned to the JNDI repository. Connection factories with this configuration will have this string in the list of domains returned by the getDomains() method in ConnectionFactoryInterface.

JNDIConnectionFactoryConfiguration

public JNDIConnectionFactoryConfiguration(javax.naming.directory.DirContext context,
                                          java.lang.String baseDN,
                                          java.lang.String logicalName,
                                          java.lang.String repositoryDomain,
                                          boolean userAuth,
                                          boolean adminAuth,
                                          boolean noPool)
This constructor is provided for compatibility with a previous release. Otherwise, it is rarely used.

Method Detail

getContext

public javax.naming.directory.DirContext getContext()

getBaseDN

public java.lang.String getBaseDN()

getLogicalName

public java.lang.String getLogicalName()

getRepositoryDomain

public java.lang.String getRepositoryDomain()

isUserAuth

public boolean isUserAuth()

isAdminAuth

public boolean isAdminAuth()

isNoPool

public boolean isNoPool()

equals

public boolean equals(java.lang.Object that)
Overrides:
equals in class ConnectionFactoryConfiguration

hashCode

public int hashCode()
Overrides:
hashCode in class ConnectionFactoryConfiguration

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getEnv

protected java.util.Hashtable getEnv()

getPrivLogin

protected PasswordCredential getPrivLogin()

reconnect

protected void reconnect(javax.naming.CommunicationException ce)
                  throws javax.naming.CommunicationException
Throws:
javax.naming.CommunicationException

normalizeDN

public static java.lang.String normalizeDN(java.lang.String dn)

***  This class provides Binary Compatibility only, not Source Compatibility  ***




Copyright © 2009 SAS Institute Inc. All Rights Reserved.