*** This class provides Binary Compatibility only, not Source Compatibility ***
Package com.sas.services.connection.jndi
Class JNDIConnectionFactoryConfiguration
java.lang.Object
com.sas.services.connection.ConnectionFactoryConfiguration
com.sas.services.connection.jndi.JNDIConnectionFactoryConfiguration
- All Implemented Interfaces:
Cloneable
@SASScope("ALL")
@BinaryCompatibilityOnly
public class JNDIConnectionFactoryConfiguration
extends ConnectionFactoryConfiguration
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
ConstructorsConstructorDescriptionJNDIConnectionFactoryConfiguration(DirContext context, String baseDN, String logicalName, String repositoryDomain) Constructs a factory configuration that reads the information necessary to create connections to remote IOM objects from a JNDI repository.JNDIConnectionFactoryConfiguration(DirContext context, String baseDN, String logicalName, String repositoryDomain, boolean userAuth, boolean adminAuth, boolean noPool) This constructor is provided for compatibility with a previous release. -
Method Summary
Modifier and TypeMethodDescriptionbooleanequals(Object that) StringDirContextprotected HashtablegetEnv()Stringprotected PasswordCredentialStringinthashCode()booleanbooleanisNoPool()booleanstatic StringnormalizeDN(String dn) protected voidreconnect(CommunicationException ce) StringtoString()Methods inherited from class com.sas.services.connection.ConnectionFactoryConfiguration
getKernel, getKernel, getKernel, getKernelFromDelegate, getLogicalServerName, isNoRedirect, kernelDestroyedMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
JNDIConnectionFactoryConfiguration
public JNDIConnectionFactoryConfiguration(DirContext context, String baseDN, String logicalName, 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 thesasLogicalNameattribute 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 inConnectionFactoryInterface.
-
JNDIConnectionFactoryConfiguration
public JNDIConnectionFactoryConfiguration(DirContext context, String baseDN, String logicalName, String repositoryDomain, boolean userAuth, boolean adminAuth, boolean noPool) This constructor is provided for compatibility with a previous release. Otherwise, it is rarely used.
-
-
Method Details
-
getContext
public DirContext getContext() -
getBaseDN
public String getBaseDN() -
getLogicalName
public String getLogicalName() -
getRepositoryDomain
public String getRepositoryDomain() -
isUserAuth
public boolean isUserAuth() -
isAdminAuth
public boolean isAdminAuth() -
isNoPool
public boolean isNoPool() -
equals
public boolean equals(Object that) - Overrides:
equalsin classConnectionFactoryConfiguration
-
hashCode
public int hashCode()- Overrides:
hashCodein classConnectionFactoryConfiguration
-
toString
public String toString()- Overrides:
toStringin classObject
-
getEnv
protected Hashtable getEnv() -
getPrivLogin
-
reconnect
protected void reconnect(CommunicationException ce) throws CommunicationException - Throws:
CommunicationException
-
normalizeDN
public static String normalizeDN(String dn)
-