void updateRmiClientsCount() {
    int noOfClientsConnected = 0;

    String[] connectionIds = rmiConnector.getConnectionIds();

    if (connectionIds != null) {
      noOfClientsConnected = connectionIds.length;
    }

    logger.info("No. of RMI clients connected :: {}", noOfClientsConnected);

    AdminDistributedSystemJmxImpl adminDSJmx = (AdminDistributedSystemJmxImpl) system;

    adminDSJmx.setRmiClientCountZero(noOfClientsConnected == 0);
  }
Checks the no. of active RMI clients and updates a flag in the Admin Distributed System.

@see AdminDistributedSystemJmxImpl#setRmiClientCountZero(boolean)
@since GemFire 6.0
geode-core/src/main/java/org/apache/geode/admin/jmx/internal/AgentImpl.java