@Override protected void doClose() { Gossiper.instance.unregister(this); }
@Override protected void doStop() throws ElasticsearchException { Gossiper.instance.unregister(this); synchronized (clusterGroup) { clusterGroup.members.clear(); } }
public void removeFromActiveSessions(RepairSession session) { Gossiper.instance.unregister(session); sessions.remove(session.getId()); }
/** * When repair finished, do clean up */ public void run() { failureDetector.unregisterFailureDetectionEventListener(task); gossiper.unregister(task); } }, MoreExecutors.sameThreadExecutor());
/** * When repair finished, do clean up */ public void run() { failureDetector.unregisterFailureDetectionEventListener(task); gossiper.unregister(task); } }, MoreExecutors.sameThreadExecutor());
/** * When repair finished, do clean up */ public void run() { failureDetector.unregisterFailureDetectionEventListener(task); gossiper.unregister(task); } }, MoreExecutors.sameThreadExecutor());
private void loadGossiperState() { assert Gossiper.instance != null; ReconnectableSnitchHelper pendingHelper = new ReconnectableSnitchHelper(this, myDC, preferLocal); Gossiper.instance.register(pendingHelper); pendingHelper = snitchHelperReference.getAndSet(pendingHelper); if (pendingHelper != null) Gossiper.instance.unregister(pendingHelper); } }
private void loadGossiperState() { assert Gossiper.instance != null; ReconnectableSnitchHelper pendingHelper = new ReconnectableSnitchHelper(this, myDC, preferLocal); Gossiper.instance.register(pendingHelper); pendingHelper = snitchHelperReference.getAndSet(pendingHelper); if (pendingHelper != null) Gossiper.instance.unregister(pendingHelper); } }
private void loadGossiperState() { assert Gossiper.instance != null; ReconnectableSnitchHelper pendingHelper = new ReconnectableSnitchHelper(this, myDC, preferLocal); Gossiper.instance.register(pendingHelper); pendingHelper = snitchHelperReference.getAndSet(pendingHelper); if (pendingHelper != null) Gossiper.instance.unregister(pendingHelper); } }
private void loadGossiperState() { assert Gossiper.instance != null; ReconnectableSnitchHelper pendingHelper = new ReconnectableSnitchHelper(this, myDC, preferLocal); Gossiper.instance.register(pendingHelper); pendingHelper = snitchHelperReference.getAndSet(pendingHelper); if (pendingHelper != null) Gossiper.instance.unregister(pendingHelper); } }
public void stopClient() { Gossiper.instance.unregister(this); Gossiper.instance.stop(); MessagingService.instance().shutdown(); // give it a second so that task accepted before the MessagingService shutdown gets submitted to the stage (to avoid RejectedExecutionException) Uninterruptibles.sleepUninterruptibly(1, TimeUnit.SECONDS); StageManager.shutdownNow(); }
public void stopClient() { Gossiper.instance.unregister(this); Gossiper.instance.stop(); MessagingService.instance().shutdown(); // give it a second so that task accepted before the MessagingService shutdown gets submitted to the stage (to avoid RejectedExecutionException) Uninterruptibles.sleepUninterruptibly(1, TimeUnit.SECONDS); StageManager.shutdownNow(); }
public void stopClient() { Gossiper.instance.unregister(this); Gossiper.instance.stop(); MessagingService.instance().shutdown(); // give it a second so that task accepted before the MessagingService shutdown gets submitted to the stage (to avoid RejectedExecutionException) Uninterruptibles.sleepUninterruptibly(1, TimeUnit.SECONDS); StageManager.shutdownNow(); }
public void stopClient() { Gossiper.instance.unregister(this); Gossiper.instance.stop(); MessagingService.instance().shutdown(); // give it a second so that task accepted before the MessagingService shutdown gets submitted to the stage (to avoid RejectedExecutionException) Uninterruptibles.sleepUninterruptibly(1, TimeUnit.SECONDS); StageManager.shutdownNow(); }