public static ServerState getServerState() {
    return getInstance() != null ? getInstance().status() : null;
  }
Gets the ServerState for this process or null if this process was not launched using this VM's
ServerLauncher reference .

@return the ServerState for this process or null.
geode-core/src/main/java/org/apache/geode/distributed/ServerLauncher.java