public class InfinispanManagedConnectionFactory extends BasicManagedConnectionFactory
| Modifier and Type | Field and Description |
|---|---|
static org.teiid.core.BundleUtil |
UTIL |
| Constructor and Description |
|---|
InfinispanManagedConnectionFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanUp() |
protected InfinispanCacheRAConnection |
createCacheConnection() |
BasicConnectionFactory<InfinispanCacheRAConnection> |
createConnectionFactory() |
boolean |
equals(Object obj) |
String |
getAliasCacheName() |
org.infinispan.Cache<Object,Object> |
getCache(String cacheName) |
Class<?> |
getCacheClassType() |
String |
getCacheJndiName()
Get the JNDI Name of the cache.
|
Class<?> |
getCacheKeyClassType()
This is an optional argument when defining the
CacheTypeMap
on the resource adapter. |
CacheNameProxy |
getCacheNameProxy() |
String |
getCacheTypeMap()
Get the
cacheName:className[;pkFieldName[:cacheJavaType]] cache
type mappings. |
ClassLoader |
getClassLoader() |
ClassRegistry |
getClassRegistry() |
String |
getConfigurationFileNameForLocalCache()
Get the name of the configuration resource or file that should be used to
configure a local cache manager
|
String |
getModule()
Called to get the module(s) that are to be loaded
|
String |
getPKey() |
String |
getStagingCacheName() |
protected Version |
getVersion() |
int |
hashCode() |
boolean |
isAlive() |
protected Class<?> |
loadClass(String className) |
protected ClassLoader |
loadClasses() |
protected Object |
performJNDICacheLookup(String jndiName) |
void |
setAliasCacheName(String cacheName)
An option to configure the alias cache name to use when using JDG to materialize data.
|
void |
setCacheJndiName(String jndiName)
Set the JNDI name to a
cache instance that should be used as
this source. |
protected void |
setCacheName(String cacheName)
Call to set the name of the cache to access when calling getCache
|
void |
setCacheTypeMap(String cacheTypeMap)
Set the cache type mapping
cacheName:className[;pkFieldName[:cacheJavaType]] that represent
the root node class type for an available cache for access. |
void |
setConfigurationFileNameForLocalCache(String configurationFileName)
Set the name of the configuration that should be used to configure a
local cache .
|
void |
setModule(String module)
Sets the (optional) module(s) where the ClassName class is defined, that
will be loaded
(module,[module,..]) |
void |
setStagingCacheName(String cacheName)
An option to configure the staging cache name to use when using JDG to materialize data.
|
void |
shutDownCache()
used in testing
|
checkEquals, createConnectionFactory, createManagedConnection, getInstance, getInvalidConnections, getLogWriter, getResourceAdapter, matchManagedConnections, setLogWriter, setResourceAdapterpublic BasicConnectionFactory<InfinispanCacheRAConnection> createConnectionFactory() throws javax.resource.ResourceException
createConnectionFactory in interface javax.resource.spi.ManagedConnectionFactorycreateConnectionFactory in class BasicManagedConnectionFactoryjavax.resource.ResourceExceptionprotected void setCacheName(String cacheName) throws javax.resource.ResourceException
cacheName - javax.resource.ResourceExceptionpublic CacheNameProxy getCacheNameProxy()
public String getCacheTypeMap()
cacheName:className[;pkFieldName[:cacheJavaType]] cache
type mappings.cacheName:className[;pkFieldName[:cacheJavaType]] cache
type mappingssetCacheTypeMap(String)public void setCacheTypeMap(String cacheTypeMap)
cacheName:className[;pkFieldName[:cacheJavaType]] that represent
the root node class type for an available cache for access.
The following is how the string parsed:
cacheTypeMap - the cache type mappings passed in the form of
cacheName:className[;pkFieldName[:cacheJavaType]]getCacheTypeMap()public String getStagingCacheName()
public void setStagingCacheName(String cacheName)
cacheName - public String getAliasCacheName()
public void setAliasCacheName(String cacheName)
cacheName - public void setModule(String module)
(module,[module,..])module - getModule()public String getModule()
setModule(java.lang.String)public String getPKey()
public Class<?> getCacheClassType()
public Class<?> getCacheKeyClassType()
CacheTypeMap
on the resource adapter.public ClassRegistry getClassRegistry()
public String getConfigurationFileNameForLocalCache()
setConfigurationFileNameForLocalCache(String)public void setConfigurationFileNameForLocalCache(String configurationFileName)
configurationFileName - the name, and the full path, to the configuration file that should be used to configure
the cacheContainergetConfigurationFileNameForLocalCache()public String getCacheJndiName()
public void setCacheJndiName(String jndiName)
cache instance that should be used as
this source.jndiName - the JNDI name of the cache instance that should be
usedsetCacheJndiName(String)public ClassLoader getClassLoader()
protected Class<?> loadClass(String className) throws javax.resource.ResourceException
javax.resource.ResourceExceptionprotected ClassLoader loadClasses() throws javax.resource.ResourceException
javax.resource.ResourceExceptionprotected InfinispanCacheRAConnection createCacheConnection() throws javax.resource.ResourceException
javax.resource.ResourceExceptionprotected Object performJNDICacheLookup(String jndiName) throws Exception
Exceptionpublic int hashCode()
public boolean equals(Object obj)
public void cleanUp()
public boolean isAlive()
protected Version getVersion()
public void shutDownCache()
Copyright © 2017 JBoss by Red Hat. All rights reserved.