public abstract class AbstractInfinispanManagedConnectionFactory extends BasicManagedConnectionFactory
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,org.infinispan.protostream.BaseMarshaller> |
messageMarshallerMap |
| 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 |
createRemoteCacheFromProperties(ClassLoader classLoader) |
protected abstract org.infinispan.client.hotrod.RemoteCacheManager |
createRemoteCacheFromServerList(ClassLoader classLoader) |
boolean |
equals(Object obj) |
String |
getAliasCacheName() |
org.infinispan.client.hotrod.RemoteCache |
getCache() |
org.infinispan.client.hotrod.RemoteCache |
getCache(String cacheName) |
Class<?> |
getCacheClassType()
Return the Class that identifies the cache object
|
protected org.infinispan.client.hotrod.RemoteCacheManager |
getCacheContainer() |
String |
getCacheJndiName()
Get the JNDI Name of the cache.
|
Class<?> |
getCacheKeyClassType()
This is an optional argument when defining the
CacheTypeMap
on the resouce adapter. |
String |
getCacheName() |
String |
getCacheNameForUpdate() |
CacheNameProxy |
getCacheNameProxy() |
String |
getCacheTypeMap()
Get the
cacheName:className[;pkFieldName[:cacheJavaType]] 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 |
getPk() |
String |
getProtobufDefinitionFile()
Get the Protobuf Definition File Name
|
String |
getRemoteServerList()
Returns the
host:port[;host:port...] list that identifies
the remote servers to include in this cluster; |
String |
getStagingCacheName() |
int |
hashCode() |
boolean |
isAlive() |
protected Class<?> |
loadClass(String className) |
protected ClassLoader |
loadClasses() |
protected void |
registerWithCacheManager(org.infinispan.protostream.SerializationContext ctx,
org.infinispan.client.hotrod.RemoteCacheManager cc,
ClassLoader cl,
boolean useAnnotations) |
void |
setAliasCacheName(String cacheName)
An option to configure the alias cache name to use when using JDG to materialize data.
|
void |
setCacheClassTypeClass(Class<?> classCacheType) |
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. |
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 |
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 pojoClassName:marshallerClassName[,pojoClassName:marshallerClassName,..]
|
void |
setModule(String module)
Sets the (optional) module(s) where the ClassName class is defined, that
will be loaded
(module,[module,..]) |
void |
setProtobufDefinitionFile(String protobufDefFile)
Set the Google Protobuf Definition 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.
|
void |
setStagingCacheName(String cacheName)
An option to configure the staging cache name to use when using JDG to materialize data.
|
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 getCacheName()
public String getCacheNameForUpdate()
public org.infinispan.client.hotrod.RemoteCache getCache()
public org.infinispan.client.hotrod.RemoteCache getCache(String cacheName)
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 void setModule(String module)
(module,[module,..])module - getModule()public String getModule()
setModule(java.lang.String)public String getProtobufDefinitionFile()
setProtobufDefinitionFile(String)public void setProtobufDefinitionFile(String protobufDefFile)
protobufDefFile - the file name of the protobuf definition file to usegetProtobufDefinitionFile()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 String getStagingCacheName()
public void setStagingCacheName(String cacheName)
cacheName - public String getAliasCacheName()
public void setAliasCacheName(String cacheName)
cacheName - public String getPk()
public Class<?> getCacheKeyClassType()
CacheTypeMap
on the resouce adapter.public Class<?> getCacheClassType()
public void setCacheClassTypeClass(Class<?> classCacheType)
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)protected void setCacheName(String cacheName) throws javax.resource.ResourceException
cacheName - javax.resource.ResourceExceptionpublic CacheNameProxy getCacheNameProxy()
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.ResourceExceptionprotected ClassLoader loadClasses() throws javax.resource.ResourceException
javax.resource.ResourceExceptionprotected void createCacheContainer()
throws javax.resource.ResourceException
javax.resource.ResourceExceptionprotected abstract org.infinispan.client.hotrod.RemoteCacheManager createRemoteCacheFromProperties(ClassLoader classLoader) throws javax.resource.ResourceException
javax.resource.ResourceExceptionprotected abstract org.infinispan.client.hotrod.RemoteCacheManager createRemoteCacheFromServerList(ClassLoader classLoader) throws javax.resource.ResourceException
javax.resource.ResourceExceptionprotected void registerWithCacheManager(org.infinispan.protostream.SerializationContext ctx,
org.infinispan.client.hotrod.RemoteCacheManager cc,
ClassLoader cl,
boolean useAnnotations)
throws javax.resource.ResourceException
javax.resource.ResourceExceptionpublic int hashCode()
public boolean equals(Object obj)
public void cleanUp()
Copyright © 2016 JBoss by Red Hat. All rights reserved.