public String locatorStatus(File directory) {
    return ManagerInfo.getLocatorStatusCodeString(directory);
  }
Gets the status of a locator.

@param directory the locator's directory
@return the status string. Will be one of the following: "running", "killed", "stopped",
        "stopping", or "starting".
@throws UncreatedSystemException if the locator <code>directory</code> does not exist or is not
        a directory.
@throws GemFireIOException if the manager info exists but could not be read. This probably
        means that the info file is corrupt.
geode-core/src/main/java/org/apache/geode/internal/SystemAdmin.java