public abstract class AbstractInfinispanManagedConnectionFactory extends BasicManagedConnectionFactory
Constructor and Description |
---|
AbstractInfinispanManagedConnectionFactory() |
Modifier and Type | Method and Description |
---|---|
void |
cleanUp() |
protected void |
createCacheContainer() |
BasicConnectionFactory<InfinispanConnectionImpl> |
createConnectionFactory() |
protected abstract org.infinispan.client.hotrod.RemoteCacheManager |
createRemoteCacheWrapperFromProperties(ClassLoader classLoader) |
protected abstract org.infinispan.client.hotrod.RemoteCacheManager |
createRemoteCacheWrapperFromServerList(ClassLoader classLoader) |
boolean |
equals(Object obj) |
protected org.infinispan.client.hotrod.RemoteCacheManager |
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. |
protected ClassLoader |
getClassLoader() |
ClassRegistry |
getClassRegistry() |
protected abstract org.infinispan.protostream.SerializationContext |
getContext() |
String |
getHotRodClientPropertiesFile()
Get the name of the HotRod client properties file that should be used to
configure a remoteCacheManager.
|
String |
getMessageDescriptor()
Get the Message descriptor class name for the root object in cache
|
String |
getMessageMarshallers()
Get the Message Marshaller class names
|
String |
getModule()
Called to get the module(s) that are to be loaded
|
String |
getPkMap(String cacheName) |
String |
getProtobinFile()
Get the Protobin File Name
|
String |
getRemoteServerList()
Returns the
host:port[;host:port...] list that identifies
the remote servers to include in this cluster; |
int |
hashCode() |
boolean |
isAlive() |
protected Class<?> |
loadClass(String className) |
protected ClassLoader |
loadClasses() |
protected void |
registerMarshallers(org.infinispan.protostream.SerializationContext ctx,
ClassLoader cl) |
protected void |
setCacheContainer(org.infinispan.client.hotrod.RemoteCacheManager rcm) |
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 |
setHotRodClientPropertiesFile(String propertieFileName)
Set the name of the HotRod client properties file that should be used to
configure a remoteCacheManager.
|
void |
setMessageDescriptor(String messageDescriptor)
Set the name of the Message Descriptor
|
void |
setMessageMarshallers(String messageMarshallers)
Set the Protobin Marshallers classname[,classname,..]
|
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 |
setProtobinFile(String protobinFile)
Set the Google Protobin File name that describes the objects to be serialized.
|
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, setResourceAdapter
public AbstractInfinispanManagedConnectionFactory()
public BasicConnectionFactory<InfinispanConnectionImpl> createConnectionFactory() throws javax.resource.ResourceException
createConnectionFactory
in interface javax.resource.spi.ManagedConnectionFactory
createConnectionFactory
in class BasicManagedConnectionFactory
javax.resource.ResourceException
public 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 String getProtobinFile()
setProtobinFile(String)
public void setProtobinFile(String protobinFile)
protobinFile
- the file name of the protobin file to usegetProtobinFile()
public String getMessageMarshallers()
setMessageMarshallers(String)
public void setMessageMarshallers(String messageMarshallers)
messageMarshallers
- the class names of the marshallers to usegetMessageMarshallers()
public String getMessageDescriptor()
setMessageDescriptor(String)
public void setMessageDescriptor(String messageDescriptor)
messageDescriptor
- the name of the message descriptorgetMessageDescriptor()
public void setCacheNameClassTypeMapping(Map<String,Class<?>> cacheType)
public ClassRegistry getClassRegistry()
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 remote cache manager instance. If
the value is missing, localhost:11311
is assumed.remoteServerList
- the server list in appropriate
server:port;server2:port2
format.public String getHotRodClientPropertiesFile()
setHotRodClientPropertiesFile(String)
public void setHotRodClientPropertiesFile(String propertieFileName)
propertieFileName
- the name of the HotRod client properties file that should be
used to configure the remote cache managergetHotRodClientPropertiesFile()
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 boolean isAlive()
protected org.infinispan.client.hotrod.RemoteCacheManager getCacheContainer()
protected void setCacheContainer(org.infinispan.client.hotrod.RemoteCacheManager rcm)
protected abstract org.infinispan.protostream.SerializationContext getContext()
protected ClassLoader getClassLoader()
protected Class<?> loadClass(String className) throws javax.resource.ResourceException
javax.resource.ResourceException
protected ClassLoader loadClasses() throws javax.resource.ResourceException
javax.resource.ResourceException
protected void createCacheContainer() throws javax.resource.ResourceException
javax.resource.ResourceException
protected abstract org.infinispan.client.hotrod.RemoteCacheManager createRemoteCacheWrapperFromProperties(ClassLoader classLoader) throws javax.resource.ResourceException
javax.resource.ResourceException
protected abstract org.infinispan.client.hotrod.RemoteCacheManager createRemoteCacheWrapperFromServerList(ClassLoader classLoader) throws javax.resource.ResourceException
javax.resource.ResourceException
protected void registerMarshallers(org.infinispan.protostream.SerializationContext ctx, ClassLoader cl) throws javax.resource.ResourceException
javax.resource.ResourceException
public int hashCode()
public boolean equals(Object obj)
public void cleanUp()
Copyright © 2013-2014 JBoss by Red Hat. All Rights Reserved.