ServerMetrics (Apache Geode 2.0.2)
Description: declaration: package: org.apache.geode.cache.server, interface: ServerMetrics

Package 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

  Modifier and Type
  Method
  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 Details

  - ### 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