private static String memberTypeFor(boolean hasLocator, boolean hasCacheServer) {
    if (hasCacheServer && hasLocator) {
      return "server-locator";
    }

    if (hasCacheServer) {
      return "server";
    }

    if (hasLocator) {
      return "locator";
    }

    return "embedded-cache";
  }
Stops all publishing services and closes this metrics service's meter registry. This method
removes from the metrics service all client meter registries and all registries added by
publishing services. This method does not close any client meter registry or any registry
added to this metrics service by publishing services.
<p>
After this method returns, this metrics service is no longer active, and its meter registry is
closed.
geode-core/src/main/java/org/apache/geode/metrics/internal/InternalDistributedSystemMetricsService.java