Class ManagedRemoteCacheContainer

java.lang.Object
org.jboss.as.clustering.infinispan.client.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, RemoteCacheContainer

public class ManagedRemoteCacheContainer extends Object implements RemoteCacheContainer
Container managed RemoteCacheManager decorator, whose lifecycle methods are no-ops.
Author:
Radoslav Husar, Paul Ferraro
  • Constructor Details

    • ManagedRemoteCacheContainer

      public ManagedRemoteCacheContainer(org.infinispan.client.hotrod.RemoteCacheManager container, String name, org.jboss.modules.ModuleLoader loader, org.wildfly.clustering.server.Registrar<String> registrar)
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface RemoteCacheContainer
    • administration

      public org.infinispan.client.hotrod.RemoteCacheManagerAdmin administration()
      Specified by:
      administration in interface RemoteCacheContainer
    • isAvailable

      public CompletionStage<Boolean> isAvailable()
      Specified by:
      isAvailable in interface RemoteCacheContainer
    • getCache

      public <K, V> RemoteCache<K,V> getCache()
      Specified by:
      getCache in interface org.infinispan.commons.api.BasicCacheContainer
      Specified by:
      getCache in interface org.infinispan.client.hotrod.RemoteCacheContainer
      Specified by:
      getCache in interface RemoteCacheContainer
    • getCache

      public <K, V> RemoteCache<K,V> getCache(String cacheName)
      Specified by:
      getCache in interface org.infinispan.commons.api.BasicCacheContainer
      Specified by:
      getCache in interface org.infinispan.client.hotrod.RemoteCacheContainer
      Specified by:
      getCache in interface RemoteCacheContainer
    • getConfiguration

      public org.infinispan.client.hotrod.configuration.Configuration getConfiguration()
      Specified by:
      getConfiguration in interface org.infinispan.client.hotrod.RemoteCacheContainer
    • isStarted

      public boolean isStarted()
      Specified by:
      isStarted in interface org.infinispan.client.hotrod.RemoteCacheContainer
    • getCurrentClusterName

      public String getCurrentClusterName()
      Specified by:
      getCurrentClusterName in interface org.infinispan.client.hotrod.RemoteCacheContainer
      Specified by:
      getCurrentClusterName in interface org.infinispan.client.hotrod.jmx.RemoteCacheManagerMXBean
    • switchToCluster

      public boolean switchToCluster(String clusterName)
      Specified by:
      switchToCluster in interface org.infinispan.client.hotrod.RemoteCacheContainer
      Specified by:
      switchToCluster in interface org.infinispan.client.hotrod.jmx.RemoteCacheManagerMXBean
    • switchToDefaultCluster

      public boolean switchToDefaultCluster()
      Specified by:
      switchToDefaultCluster in interface org.infinispan.client.hotrod.RemoteCacheContainer
      Specified by:
      switchToDefaultCluster in interface org.infinispan.client.hotrod.jmx.RemoteCacheManagerMXBean
    • getMarshaller

      public org.infinispan.commons.marshall.Marshaller getMarshaller()
      Specified by:
      getMarshaller in interface org.infinispan.client.hotrod.RemoteCacheContainer
    • isTransactional

      public boolean isTransactional(String cacheName)
      Specified by:
      isTransactional in interface org.infinispan.client.hotrod.RemoteCacheContainer
    • getCacheNames

      public Set<String> getCacheNames()
      Specified by:
      getCacheNames in interface org.infinispan.commons.api.BasicCacheContainer
    • start

      public void start()
      Specified by:
      start in interface org.infinispan.commons.api.Lifecycle
    • stop

      public void stop()
      Specified by:
      stop in interface org.infinispan.commons.api.Lifecycle
    • getServers

      public String[] getServers()
      Specified by:
      getServers in interface org.infinispan.client.hotrod.jmx.RemoteCacheManagerMXBean
    • getActiveConnectionCount

      public int getActiveConnectionCount()
      Specified by:
      getActiveConnectionCount in interface org.infinispan.client.hotrod.jmx.RemoteCacheManagerMXBean
    • getConnectionCount

      public int getConnectionCount()
      Specified by:
      getConnectionCount in interface org.infinispan.client.hotrod.jmx.RemoteCacheManagerMXBean
    • getIdleConnectionCount

      public int getIdleConnectionCount()
      Specified by:
      getIdleConnectionCount in interface org.infinispan.client.hotrod.jmx.RemoteCacheManagerMXBean
    • getRetries

      public long getRetries()
      Specified by:
      getRetries in interface org.infinispan.client.hotrod.jmx.RemoteCacheManagerMXBean
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object