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() |
boolean |
configuredUsingAnnotations() |
protected void |
createCacheContainer() |
BasicConnectionFactory<InfinispanConnectionImpl> |
createConnectionFactory() |
protected org.infinispan.client.hotrod.RemoteCacheManager |
createRemoteCacheFromProperties(ClassLoader classLoader) |
protected org.infinispan.client.hotrod.RemoteCacheManager |
createRemoteCacheFromServerList(ClassLoader classLoader) |
boolean |
equals(Object obj) |
protected String |
getAliasCacheName() |
org.infinispan.client.hotrod.RemoteCache |
getCache(String cacheName) |
Class<?> |
getCacheClassType()
Return the Class that identifies the cache object
|
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() |
CacheNameProxy |
getCacheNameProxy() |
InfinispanSchemaDefinition |
getCacheSchemaConfigurator() |
String |
getCacheStagingName() |
String |
getCacheTypeMap()
Get the
cacheName:className[;pkFieldName[:cacheJavaType]] cache
type mappings. |
ClassLoader |
getClassLoader() |
ClassRegistry |
getClassRegistry() |
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() |
Version |
getVersion() |
int |
hashCode() |
boolean |
isAlive() |
Class<?> |
loadClass(String className) |
protected ClassLoader |
loadClasses() |
protected void |
registerWithCacheManager() |
protected 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.
|
protected 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, setResourceAdapter
public BasicConnectionFactory<InfinispanConnectionImpl> createConnectionFactory() throws javax.resource.ResourceException
createConnectionFactory
in interface javax.resource.spi.ManagedConnectionFactory
createConnectionFactory
in class BasicManagedConnectionFactory
javax.resource.ResourceException
public InfinispanSchemaDefinition getCacheSchemaConfigurator()
public String getCacheName()
public String getCacheStagingName()
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()
protected void setStagingCacheName(String cacheName)
cacheName
- protected String getAliasCacheName()
protected 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.ResourceException
public CacheNameProxy getCacheNameProxy()
public boolean configuredUsingAnnotations()
public boolean isAlive()
public org.infinispan.client.hotrod.RemoteCacheManager getCacheContainer()
protected void setCacheContainer(org.infinispan.client.hotrod.RemoteCacheManager rcm)
public org.infinispan.protostream.SerializationContext getContext()
public ClassLoader getClassLoader()
public 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 org.infinispan.client.hotrod.RemoteCacheManager createRemoteCacheFromProperties(ClassLoader classLoader) throws javax.resource.ResourceException
javax.resource.ResourceException
protected org.infinispan.client.hotrod.RemoteCacheManager createRemoteCacheFromServerList(ClassLoader classLoader) throws javax.resource.ResourceException
javax.resource.ResourceException
protected void registerWithCacheManager() throws javax.resource.ResourceException
javax.resource.ResourceException
public Version getVersion() throws TranslatorException
TranslatorException
public int hashCode()
public boolean equals(Object obj)
public void cleanUp()
Copyright © 2016 JBoss by Red Hat. All rights reserved.