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

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