public static int getLocatorStatusCode(File directory) {
    return getManagerStatusCode(directory, true);
  }
Gets the status code for the given <code>statusName</code>.

@throws IllegalArgumentException if an unknown status name is given.
geode-core/src/main/java/org/apache/geode/internal/ManagerInfo.java