public abstract class AbstractInfinispanManagedConnectionFactory extends BasicManagedConnectionFactory
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractInfinispanManagedConnectionFactory.LocalCacheWrapper |
| Constructor and Description |
|---|
AbstractInfinispanManagedConnectionFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanUp() |
protected void |
createCacheContainer() |
BasicConnectionFactory<InfinispanConnectionImpl> |
createConnectionFactory() |
protected abstract CacheContainerWrapper |
createRemoteCache(Properties props,
ClassLoader classLoader) |
boolean |
equals(Object obj) |
CacheContainerWrapper |
getCacheContainer() |
String |
getCacheJndiName()
Get the JNDI Name of the cache.
|
Map<String,Class<?>> |
getCacheNameClassTypeMapping() |
Class<?> |
getCacheType(String cacheName) |
String |
getCacheTypeMap()
Get the
cacheName:ClassName[,cacheName:ClassName...] cache
type mappings. |
String |
getConfigurationFileNameForLocalCache()
Get the name of the configuration resource or file that should be used to
configure a local
EmbeddedCacheManager using
DefaultCacheManager. |
String |
getHotRodClientPropertiesFile()
Get the name of the HotRod client properties file that should be used to
configure a RemoteCacheManager remoteCacheManager.
|
String |
getModule()
Called to get the module(s) that are to be loaded
|
String |
getPkMap(String cacheName) |
String |
getRemoteServerList()
Returns the
host:port[;host:port...] list that identifies
the remote servers to include in this cluster; |
int |
hashCode() |
protected boolean |
isAlive() |
protected ClassLoader |
loadClasses() |
protected Object |
performJNDICacheLookup(String jndiName) |
void |
setCacheJndiName(String jndiName)
Set the JNDI name to a
cache instance that should be used as
this source. |
void |
setCacheNameClassTypeMapping(Map<String,Class<?>> cacheType) |
void |
setCacheTypeMap(String cacheTypeMap)
Set the cache type mapping
cacheName:ClassName[,cacheName:ClassName...] that represent
the root node class type for 1 or more caches available for access. |
void |
setConfigurationFileNameForLocalCache(String configurationFileName)
Set the name of the configuration that should be used to configure a
local cache .
|
void |
setHotRodClientPropertiesFile(String propertieFileName)
Set the name of the HotRod client properties file that should be used to
configure a
remoteCacheManager. |
void |
setModule(String module)
Sets the (optional) module(s) where the ClassName class is defined, that
will be loaded
(module,[module,..]) |
void |
setPkMap(Map<String,String> mapOfPKs) |
void |
setRemoteServerList(String remoteServerList)
Set the list of remote servers that make up the Infinispan cluster.
|
checkEquals, createConnectionFactory, createManagedConnection, getInstance, getInvalidConnections, getLogWriter, getResourceAdapter, matchManagedConnections, setLogWriter, setResourceAdapterpublic AbstractInfinispanManagedConnectionFactory()
public BasicConnectionFactory<InfinispanConnectionImpl> createConnectionFactory() throws javax.resource.ResourceException
createConnectionFactory in interface javax.resource.spi.ManagedConnectionFactorycreateConnectionFactory in class BasicManagedConnectionFactoryjavax.resource.ResourceExceptionpublic String getCacheTypeMap()
cacheName:ClassName[,cacheName:ClassName...] cache
type mappings.cacheName:ClassName[,cacheName:ClassName...] cache
type mappingssetCacheTypeMap(String)public void setCacheTypeMap(String cacheTypeMap)
cacheName:ClassName[,cacheName:ClassName...] that represent
the root node class type for 1 or more caches available for access.cacheTypeMap - the cache type mappings passed in the form of
cacheName:ClassName[,cacheName:ClassName...]getCacheTypeMap()public void setModule(String module)
(module,[module,..])module - getModule()public String getModule()
setModule(java.lang.String)public void setCacheNameClassTypeMapping(Map<String,Class<?>> cacheType)
public String getRemoteServerList()
host:port[;host:port...] list that identifies
the remote servers to include in this cluster;host:port[;host:port...] listpublic void setRemoteServerList(String remoteServerList)
host:port[;host:port...] that would be
used when defining an Infinispan RemoteCacheManager instance. If
the value is missing, localhost:11311 is assumed.remoteServerList - the server list in appropriate
server:port;server2:port2 format.public String getConfigurationFileNameForLocalCache()
EmbeddedCacheManager using
DefaultCacheManager.setConfigurationFileNameForLocalCache(String)public void setConfigurationFileNameForLocalCache(String configurationFileName)
configurationFileName - the name of the configuration file that should be used to load
the cacheContainergetConfigurationFileNameForLocalCache()public String getHotRodClientPropertiesFile()
RemoteCacheContainersetHotRodClientPropertiesFile(String)public void setHotRodClientPropertiesFile(String propertieFileName)
remoteCacheManager.propertieFileName - the name of the HotRod client properties file that should be
used to configure the remote
container.getHotRodClientPropertiesFile()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 CacheContainerWrapper getCacheContainer()
protected boolean isAlive()
protected ClassLoader loadClasses() throws javax.resource.ResourceException
javax.resource.ResourceExceptionprotected void createCacheContainer()
throws javax.resource.ResourceException
javax.resource.ResourceExceptionprotected abstract CacheContainerWrapper createRemoteCache(Properties props, ClassLoader classLoader) throws javax.resource.ResourceException
javax.resource.ResourceExceptionprotected Object performJNDICacheLookup(String jndiName) throws Exception
Exceptionpublic int hashCode()
public boolean equals(Object obj)
public void cleanUp()
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.