public String getMemberName() {
    final InternalDistributedSystem distributedSystem =
        InternalDistributedSystem.getConnectedInstance();
    return distributedSystem != null ? distributedSystem.getConfig().getName() : null;
  }
Gets the name of the member in the GemFire distributed system as determined by the 'name'
GemFire property. Note, this call only works if the API is used in-process.

@return a String value indicating the name of the member in the GemFire distributed system.
geode-core/src/main/java/org/apache/geode/distributed/AbstractLauncher.java