public static LocatorState fromDirectory(final String workingDirectory,
        final String memberName) {
      LocatorState locatorState =
          new LocatorLauncher.Builder().setWorkingDirectory(workingDirectory).build().status();

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

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

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