com.ca.jcs.jndi
Class JNDIMetaConnectorConfig

java.lang.Object
  extended by com.ca.jcs.cfg.ConnectorConfig
      extended by com.ca.jcs.meta.MetaConnectorConfig
          extended by com.ca.jcs.meta.MetaPoolingConnectorConfig
              extended by com.ca.jcs.jndi.JNDIMetaConnectorConfig

public class JNDIMetaConnectorConfig
extends MetaPoolingConnectorConfig

Configuration which basically allows all GenericObjectPool.Config properties to be set via bean getters/setters, and allows a map of settings to be provided which override any default settings in code.

See Also:
GenericObjectPool

Field Summary
static ExceptionRetryGroup DEFAULT_EXCEPTION_RETRY_GROUP
          Default retriable messages keyed against RETRIABLE_EXCEPTION_MESSAGES_KEY: "Connection refused", "Connection reset" - can be added to via connector.xml.
static String RETRIABLE_EXCEPTION_MESSAGES_KEY
          Key in ConnectorConfig.getExceptionRetryMap() which can be used to provide strings to be searched for in exception messages, which signify retriable (aka "soft" / transient) failures when attempting to get a JNDI connection.
static String SSL_PROTOCOL_VALUE
          Standard value expected by JNDI for secure protocol.
 
Fields inherited from class com.ca.jcs.meta.MetaPoolingConnectorConfig
poolConfig
 
Fields inherited from class com.ca.jcs.cfg.ConnectorConfig
CONFIG_LOG
 
Constructor Summary
JNDIMetaConnectorConfig()
           
 
Method Summary
 Boolean getForcePagedResults()
           
 Map<String,String> getJndiEnv()
           
 boolean isLazyConnect()
          Force lazy to be false so that supported LDAP controls can be discovered.
 void setForcePagedResults(Boolean forcePagedResults)
          See documentation for getForcePagedResults().
 void setJndiEnv(Map<String,String> jndiEnv)
           
 void setLazyConnect(boolean b)
          When true a connector implementation should not attempt to get a connection from the pool immediately.
 
Methods inherited from class com.ca.jcs.meta.MetaPoolingConnectorConfig
getPoolConfig, setPoolConfig
 
Methods inherited from class com.ca.jcs.meta.MetaConnectorConfig
getAllowNonFilterableNamingAttrs, getContainerBaseObjectClass, getVirtualContainers, setAllowNonFilterableNamingAttrs, setContainerBaseObjectClass, setVirtualContainers
 
Methods inherited from class com.ca.jcs.cfg.ConnectorConfig
getAcceptedUnknownAttrIds, getAllowMetadataModify, getAttrHeaderMsgFormatId, getCacheManagerClass, getCacheManagerConfigReference, getConverters, getExceptionRetryMap, getObjHeaderMsgFormatId, getResilientDelay, getResilientMaxRetries, getRollbackConnectionAttrs, getStaticMetadataFile, getStaticMethodScriptStyleMetaDataFile, getStreamingQueryThreshold, getTypeConverter, getValidators, isCachingRequired, isCaseSensitive, isCheckObjectExistenceForDeletion, isFailOnUnknownAttrIds, isImmediateQueryFlush, isMapAcceptedUnknownAttrIds, isSearchExpensiveAttrs, isTransactional, isValidateFromConnector, isValidateToConnector, mergeMap, setAcceptedUnknownAttrIds, setAllowMetadataModify, setAttrHeaderMsgFormatId, setCacheManagerClass, setCacheManagerConfigReference, setCachingRequired, setCaseSensitive, setCheckObjectExistenceForDeletion, setConverters, setExceptionRetryMap, setFailOnUnknownAttrIds, setImmediateQueryFlush, setMapAcceptedUnknownAttrIds, setObjHeaderMsgFormatId, setResilientDelay, setResilientMaxRetries, setRollbackConnectionAttrs, setSearchExpensiveAttrs, setStaticMetadataFile, setStaticMethodScriptStyleMetaDataFile, setStreamingQueryThreshold, setTransactional, setValidateFromConnector, setValidateToConnector, setValidators
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SSL_PROTOCOL_VALUE

public static final String SSL_PROTOCOL_VALUE
Standard value expected by JNDI for secure protocol.

See Also:
Constant Field Values

RETRIABLE_EXCEPTION_MESSAGES_KEY

public static final String RETRIABLE_EXCEPTION_MESSAGES_KEY
Key in ConnectorConfig.getExceptionRetryMap() which can be used to provide strings to be searched for in exception messages, which signify retriable (aka "soft" / transient) failures when attempting to get a JNDI connection.

See Also:
Constant Field Values

DEFAULT_EXCEPTION_RETRY_GROUP

public static final ExceptionRetryGroup DEFAULT_EXCEPTION_RETRY_GROUP
Default retriable messages keyed against RETRIABLE_EXCEPTION_MESSAGES_KEY: "Connection refused", "Connection reset" - can be added to via connector.xml.

Constructor Detail

JNDIMetaConnectorConfig

public JNDIMetaConnectorConfig()
Method Detail

getJndiEnv

public Map<String,String> getJndiEnv()

setJndiEnv

public void setJndiEnv(Map<String,String> jndiEnv)

isLazyConnect

public boolean isLazyConnect()
Force lazy to be false so that supported LDAP controls can be discovered.

Overrides:
isLazyConnect in class ConnectorConfig

setLazyConnect

public void setLazyConnect(boolean b)
Description copied from class: ConnectorConfig
When true a connector implementation should not attempt to get a connection from the pool immediately.

Overrides:
setLazyConnect in class ConnectorConfig

getForcePagedResults

public Boolean getForcePagedResults()
Returns:
Null means "use paged results if they are supported", "false" means "never used paged results even if they are supported" and "true" means "force use of paged results including failing if they are not supported".

setForcePagedResults

public void setForcePagedResults(Boolean forcePagedResults)
See documentation for getForcePagedResults().



Created 2011-07-14 13:27 EST