Class ManagedRemoteCacheContainer
- java.lang.Object
-
- org.jboss.as.clustering.infinispan.subsystem.remote.ManagedRemoteCacheContainer
-
- All Implemented Interfaces:
org.infinispan.client.hotrod.jmx.RemoteCacheManagerMXBean,org.infinispan.client.hotrod.RemoteCacheContainer,org.infinispan.commons.api.BasicCacheContainer,org.infinispan.commons.api.Lifecycle,org.wildfly.clustering.infinispan.client.RemoteCacheContainer
public class ManagedRemoteCacheContainer extends Object implements org.wildfly.clustering.infinispan.client.RemoteCacheContainer
Container managedRemoteCacheContainerdecorator, whose lifecycle methods are no-ops.- Author:
- Radoslav Husar, Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description ManagedRemoteCacheContainer(RemoteCacheManager container)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.infinispan.client.hotrod.RemoteCacheManagerAdminadministration()intgetActiveConnectionCount()<K,V>
org.infinispan.client.hotrod.RemoteCache<K,V>getCache()<K,V>
org.infinispan.client.hotrod.RemoteCache<K,V>getCache(String cacheName)<K,V>
org.infinispan.client.hotrod.RemoteCache<K,V>getCache(String cacheName, boolean forceReturnValue, org.infinispan.client.hotrod.configuration.TransactionMode transactionMode, javax.transaction.TransactionManager transactionManager)<K,V>
org.infinispan.client.hotrod.RemoteCache<K,V>getCache(String cacheName, org.infinispan.client.hotrod.configuration.TransactionMode transactionMode, javax.transaction.TransactionManager transactionManager)Set<String>getCacheNames()org.infinispan.client.hotrod.configuration.ConfigurationgetConfiguration()intgetConnectionCount()intgetIdleConnectionCount()org.infinispan.commons.marshall.MarshallergetMarshaller()StringgetName()longgetRetries()String[]getServers()booleanisStarted()booleanisTransactional(String cacheName)<K,V>
org.wildfly.clustering.infinispan.client.RemoteCacheContainer.NearCacheRegistrationregisterNearCacheFactory(String cacheName, org.wildfly.clustering.infinispan.client.NearCacheFactory<K,V> factory)voidstart()voidstop()booleanswitchToCluster(String clusterName)booleanswitchToDefaultCluster()
-
-
-
Constructor Detail
-
ManagedRemoteCacheContainer
public ManagedRemoteCacheContainer(RemoteCacheManager container)
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein interfaceorg.wildfly.clustering.infinispan.client.RemoteCacheContainer
-
administration
public org.infinispan.client.hotrod.RemoteCacheManagerAdmin administration()
- Specified by:
administrationin interfaceorg.wildfly.clustering.infinispan.client.RemoteCacheContainer
-
registerNearCacheFactory
public <K,V> org.wildfly.clustering.infinispan.client.RemoteCacheContainer.NearCacheRegistration registerNearCacheFactory(String cacheName, org.wildfly.clustering.infinispan.client.NearCacheFactory<K,V> factory)
- Specified by:
registerNearCacheFactoryin interfaceorg.wildfly.clustering.infinispan.client.RemoteCacheContainer
-
getCache
public <K,V> org.infinispan.client.hotrod.RemoteCache<K,V> getCache()
- Specified by:
getCachein interfaceorg.infinispan.commons.api.BasicCacheContainer- Specified by:
getCachein interfaceorg.infinispan.client.hotrod.RemoteCacheContainer
-
getCache
public <K,V> org.infinispan.client.hotrod.RemoteCache<K,V> getCache(String cacheName)
- Specified by:
getCachein interfaceorg.infinispan.commons.api.BasicCacheContainer- Specified by:
getCachein interfaceorg.infinispan.client.hotrod.RemoteCacheContainer
-
getCache
public <K,V> org.infinispan.client.hotrod.RemoteCache<K,V> getCache(String cacheName, org.infinispan.client.hotrod.configuration.TransactionMode transactionMode, javax.transaction.TransactionManager transactionManager)
- Specified by:
getCachein interfaceorg.infinispan.client.hotrod.RemoteCacheContainer
-
getCache
public <K,V> org.infinispan.client.hotrod.RemoteCache<K,V> getCache(String cacheName, boolean forceReturnValue, org.infinispan.client.hotrod.configuration.TransactionMode transactionMode, javax.transaction.TransactionManager transactionManager)
- Specified by:
getCachein interfaceorg.infinispan.client.hotrod.RemoteCacheContainer
-
getConfiguration
public org.infinispan.client.hotrod.configuration.Configuration getConfiguration()
- Specified by:
getConfigurationin interfaceorg.infinispan.client.hotrod.RemoteCacheContainer
-
isStarted
public boolean isStarted()
- Specified by:
isStartedin interfaceorg.infinispan.client.hotrod.RemoteCacheContainer
-
switchToCluster
public boolean switchToCluster(String clusterName)
- Specified by:
switchToClusterin interfaceorg.infinispan.client.hotrod.RemoteCacheContainer- Specified by:
switchToClusterin interfaceorg.infinispan.client.hotrod.jmx.RemoteCacheManagerMXBean
-
switchToDefaultCluster
public boolean switchToDefaultCluster()
- Specified by:
switchToDefaultClusterin interfaceorg.infinispan.client.hotrod.RemoteCacheContainer- Specified by:
switchToDefaultClusterin interfaceorg.infinispan.client.hotrod.jmx.RemoteCacheManagerMXBean
-
getMarshaller
public org.infinispan.commons.marshall.Marshaller getMarshaller()
- Specified by:
getMarshallerin interfaceorg.infinispan.client.hotrod.RemoteCacheContainer
-
getCacheNames
public Set<String> getCacheNames()
- Specified by:
getCacheNamesin interfaceorg.infinispan.commons.api.BasicCacheContainer
-
start
public void start()
- Specified by:
startin interfaceorg.infinispan.commons.api.Lifecycle
-
stop
public void stop()
- Specified by:
stopin interfaceorg.infinispan.commons.api.Lifecycle
-
getServers
public String[] getServers()
- Specified by:
getServersin interfaceorg.infinispan.client.hotrod.jmx.RemoteCacheManagerMXBean
-
getActiveConnectionCount
public int getActiveConnectionCount()
- Specified by:
getActiveConnectionCountin interfaceorg.infinispan.client.hotrod.jmx.RemoteCacheManagerMXBean
-
getConnectionCount
public int getConnectionCount()
- Specified by:
getConnectionCountin interfaceorg.infinispan.client.hotrod.jmx.RemoteCacheManagerMXBean
-
getIdleConnectionCount
public int getIdleConnectionCount()
- Specified by:
getIdleConnectionCountin interfaceorg.infinispan.client.hotrod.jmx.RemoteCacheManagerMXBean
-
getRetries
public long getRetries()
- Specified by:
getRetriesin interfaceorg.infinispan.client.hotrod.jmx.RemoteCacheManagerMXBean
-
isTransactional
public boolean isTransactional(String cacheName)
- Specified by:
isTransactionalin interfaceorg.infinispan.client.hotrod.RemoteCacheContainer
-
-