Package org.infinispan.client.hotrod.jmx
Interface RemoteCacheManagerMXBean
-
- All Known Implementing Classes:
RemoteCacheManager
public interface RemoteCacheManagerMXBeanRemoteCacheManager client-side statistics and operations
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetActiveConnectionCount()Returns the number of active connectionsintgetConnectionCount()Returns the total number of connectionsintgetIdleConnectionCount()Returns the number of idle connectionslonggetRetries()Returns the total number of retries that have been executedString[]getServers()Returns a list of servers to which the client is currently connected in the format of ip_address:port_number.booleanswitchToCluster(String clusterName)Switch remote cache manager to a different cluster, previously declared via configuration.booleanswitchToDefaultCluster()Switch remote cache manager to a the default cluster, previously declared via configuration.
-
-
-
Method Detail
-
getServers
String[] getServers()
Returns a list of servers to which the client is currently connected in the format of ip_address:port_number.
-
getActiveConnectionCount
int getActiveConnectionCount()
Returns the number of active connections
-
getConnectionCount
int getConnectionCount()
Returns the total number of connections
-
getIdleConnectionCount
int getIdleConnectionCount()
Returns the number of idle connections
-
getRetries
long getRetries()
Returns the total number of retries that have been executed
-
switchToCluster
boolean switchToCluster(String clusterName)
Switch remote cache manager to a different cluster, previously declared via configuration. If the switch was completed successfully, this method returnstrue, otherwise it returnsfalse.- Parameters:
clusterName- name of the cluster to which to switch to- Returns:
trueif the cluster was switched,falseotherwise
-
switchToDefaultCluster
boolean switchToDefaultCluster()
Switch remote cache manager to a the default cluster, previously declared via configuration. If the switch was completed successfully, this method returnstrue, otherwise it returnsfalse.- Returns:
trueif the cluster was switched,falseotherwise
-
-