/** * 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. */ public static LocatorState getLocatorState() { return (getInstance() != null ? getInstance().status() : null); }
/** * Gets a String describing the GemFire member's status. A GemFire member includes, but is not * limited to: Locators, Managers, Cache Servers and so on. * * @return String description of the GemFire member's status. * @see #isLocator() * @see #isServer() */ public String status() { if (LocatorLauncher.getInstance() != null) { return LocatorLauncher.getLocatorState().toJson(); } else if (ServerLauncher.getInstance() != null) { return ServerLauncher.getServerState().toJson(); } // TODO implement for non-launcher processes and other GemFire processes (Managers, etc)... return null; }
LocatorLauncher runningLauncher = getInstance(); if (runningLauncher != null) { return runningLauncher.status();
final LocatorLauncher runningLauncher = getInstance(); if (runningLauncher != null) { return runningLauncher.stopInProcess();
final LocatorLauncher launcher = getInstance();
final LocatorLauncher launcher = getInstance();