/** * Determines whether the Locator can be stopped in-process, such as when a Locator is embedded in * an application and the LocatorLauncher API is being used. * * @return a boolean indicating whether the Locator can be stopped in-process (the application's * process with an embedded Locator). */ protected boolean isStoppable() { return (isRunning() && getInternalLocator() != null); }
/** * Gets a reference to the {@code Cache} that was created by this {@code LocatorLauncher}. * * @return a reference to the Cache * @see Cache */ public Cache getCache() { return getInternalLocator().getCache(); }
assert getInternalLocator() != null : "The Locator must first be started with a call to start!"; getInternalLocator().waitToStop(); } catch (InterruptedException handled) { Thread.currentThread().interrupt();