public static ServerState fromDirectory(final String workingDirectory,
        final String memberName) {
      ServerState serverState = new ServerLauncher.Builder().setWorkingDirectory(workingDirectory)
          .setDisableDefaultServer(true).build().status();

      if (ObjectUtils.equals(serverState.getMemberName(), memberName)) {
        return serverState;
      }

      return new ServerState(new ServerLauncher.Builder().build(), Status.NOT_RESPONDING);
    }
Unmarshals a ServerState instance from the JSON String.

@param json a JSON String
@return a ServerState value unmarshalled from the JSON String.
geode-core/src/main/java/org/apache/geode/distributed/ServerLauncher.java