private void startMasterCheck() { try { if (masterCheckStart.compareAndSet(false, true)) { this.MASTER_RETRY_EXECUTOR_SERVICE = Executors.newSingleThreadScheduledExecutor(new NamedThreadFactory("LTS-RetryScheduler-master-retry", true)); // 这个时间后面再去优化 masterScheduledFuture = MASTER_RETRY_EXECUTOR_SERVICE. scheduleWithFixedDelay(new CheckDeadFailStoreRunner(), 30, 60, TimeUnit.SECONDS); LOGGER.info("Start {} master RetryScheduler success, identity=[{}]", name, appContext.getConfig().getIdentity()); } } catch (Throwable t) { LOGGER.error("Start {} master RetryScheduler failed, identity=[{}]", name, appContext.getConfig().getIdentity(), t); } }
private void startMasterCheck() { try { if (masterCheckStart.compareAndSet(false, true)) { this.MASTER_RETRY_EXECUTOR_SERVICE = Executors.newSingleThreadScheduledExecutor(new NamedThreadFactory("LTS-RetryScheduler-master-retry", true)); // 这个时间后面再去优化 masterScheduledFuture = MASTER_RETRY_EXECUTOR_SERVICE. scheduleWithFixedDelay(new CheckDeadFailStoreRunner(), 30, 60, TimeUnit.SECONDS); LOGGER.info("Start {} master RetryScheduler success, identity=[{}]", name, appContext.getConfig().getIdentity()); } } catch (Throwable t) { LOGGER.error("Start {} master RetryScheduler failed, identity=[{}]", name, appContext.getConfig().getIdentity(), t); } }
private void startMasterCheck() { try { if (masterCheckStart.compareAndSet(false, true)) { this.MASTER_RETRY_EXECUTOR_SERVICE = Executors.newSingleThreadScheduledExecutor(new NamedThreadFactory("LTS-RetryScheduler-master-retry", true)); // 这个时间后面再去优化 masterScheduledFuture = MASTER_RETRY_EXECUTOR_SERVICE. scheduleWithFixedDelay(new CheckDeadFailStoreRunner(), 30, 60, TimeUnit.SECONDS); LOGGER.info("Start {} master RetryScheduler success, identity=[{}]", name, appContext.getConfig().getIdentity()); } } catch (Throwable t) { LOGGER.error("Start {} master RetryScheduler failed, identity=[{}]", name, appContext.getConfig().getIdentity(), t); } }