/** * A helper method to ensure the same sequence of actions are taken when the Locator fails to start * caused by some exception. * * @param cause the Throwable thrown during the startup or wait operation on the Locator. */ private void failOnStart(final Throwable cause) { if (this.locator != null) { this.locator.stop(); this.locator = null; } if (this.process != null) { this.process.stop(); this.process = null; } INSTANCE.compareAndSet(this, null); this.running.set(false); }
/** * A helper method to ensure the same sequence of actions are taken when the Server fails to start * caused by some exception. * * @param cause the Throwable thrown during the startup operation on the Server. */ private void failOnStart(final Throwable cause) { if (this.cache != null) { this.cache.close(); this.cache = null; } if (this.process != null) { this.process.stop(); this.process = null; } INSTANCE.compareAndSet(this, null); this.running.set(false); }
/** * A helper method to ensure the same sequence of actions are taken when the Locator fails to start * caused by some exception. * * @param cause the Throwable thrown during the startup or wait operation on the Locator. */ private void failOnStart(final Throwable cause) { if (this.locator != null) { this.locator.stop(); this.locator = null; } if (this.process != null) { this.process.stop(); this.process = null; } INSTANCE.compareAndSet(this, null); this.running.set(false); }
/** * A helper method to ensure the same sequence of actions are taken when the Server fails to start * caused by some exception. * * @param cause the Throwable thrown during the startup operation on the Server. */ private void failOnStart(final Throwable cause) { if (this.cache != null) { this.cache.close(); this.cache = null; } if (this.process != null) { this.process.stop(); this.process = null; } INSTANCE.compareAndSet(this, null); this.running.set(false); }
private LocatorState stopInProcess() { if (isStoppable()) { this.locator.stop(); this.locator = null; this.process.stop(); this.process = null; INSTANCE.compareAndSet(this, null); // note: other thread may return Status.NOT_RESPONDING now this.running.set(false); return new LocatorState(this, Status.STOPPED); } else { return new LocatorState(this, Status.NOT_RESPONDING); } }
private ServerState stopInProcess() { if (isStoppable()) { this.cache.close(); this.cache = null; this.process.stop(); this.process = null; INSTANCE.compareAndSet(this, null); // note: other thread may return Status.NOT_RESPONDING now this.running.set(false); return new ServerState(this, Status.STOPPED); } else { return new ServerState(this, Status.NOT_RESPONDING); } }
private LocatorState stopInProcess() { if (isStoppable()) { this.locator.stop(); this.locator = null; this.process.stop(); this.process = null; INSTANCE.compareAndSet(this, null); // note: other thread may return Status.NOT_RESPONDING now this.running.set(false); return new LocatorState(this, Status.STOPPED); } else { return new LocatorState(this, Status.NOT_RESPONDING); } }
private ServerState stopInProcess() { if (isStoppable()) { this.cache.close(); this.cache = null; this.process.stop(); this.process = null; INSTANCE.compareAndSet(this, null); // note: other thread may return Status.NOT_RESPONDING now this.running.set(false); return new ServerState(this, Status.STOPPED); } else { return new ServerState(this, Status.NOT_RESPONDING); } }