Interface RemoteCacheManagerMXBean

  • All Known Implementing Classes:
    RemoteCacheManager

    public interface RemoteCacheManagerMXBean
    RemoteCacheManager client-side statistics and operations
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int getActiveConnectionCount()
      Returns the number of active connections
      int getConnectionCount()
      Returns the total number of connections
      int getIdleConnectionCount()
      Returns the number of idle connections
      java.lang.String[] getServers()
      Returns a list of servers to which the client is currently connected in the format of ip_address:port_number.
      boolean switchToCluster​(java.lang.String clusterName)
      Switch remote cache manager to a different cluster, previously declared via configuration.
      boolean switchToDefaultCluster()
      Switch remote cache manager to a the default cluster, previously declared via configuration.
    • Method Detail

      • getServers

        java.lang.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
      • switchToCluster

        boolean switchToCluster​(java.lang.String clusterName)
        Switch remote cache manager to a different cluster, previously declared via configuration. If the switch was completed successfully, this method returns true, otherwise it returns false.
        Parameters:
        clusterName - name of the cluster to which to switch to
        Returns:
        true if the cluster was switched, false otherwise
      • switchToDefaultCluster

        boolean switchToDefaultCluster()
        Switch remote cache manager to a the default cluster, previously declared via configuration. If the switch was completed successfully, this method returns true, otherwise it returns false.
        Returns:
        true if the cluster was switched, false otherwise