ServerMetrics (Apache Geode 1.15.4)

org.apache.geode.cache.server

## Interface ServerMetrics

-     public interface ServerMetrics

  Metrics about the resource usage for a cache server. These metrics are provided to the `ServerLoadProbe` for use in calculating the load on the server.
  Since:
    GemFire 5.7

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `getClientCount()` Get the number of clients connected to this cache server.
    `int` | `getConnectionCount()` Get the number of open connections for this cache server.
    `int` | `getMaxConnections()` Get the max connections for this cache server.
    `int` | `getSubscriptionConnectionCount()` Get the number of client subscription connections hosted on this cache server.

- - ### Method Detail

    - #### getConnectionCount

          int getConnectionCount()

      Get the number of open connections for this cache server.
      Returns:
        the number of open connections for this cache server

    - #### getClientCount

          int getClientCount()

      Get the number of clients connected to this cache server.
      Returns:
        the number of clients connected to this cache server

    - #### getSubscriptionConnectionCount

          int getSubscriptionConnectionCount()

      Get the number of client subscription connections hosted on this cache server.
      Returns:
        the number of client subscription connections hosted on this cache server

    - #### getMaxConnections

          int getMaxConnections()

      Get the max connections for this cache server.
      Returns:
        the max connections for this cache server