コード例 #1
0
 public void restart(DiscoveryNode masterNode, String reason) {
   synchronized (masterNodeMutex) {
     if (logger.isDebugEnabled()) {
       logger.debug(
           "[master] restarting fault detection against master [{}], reason [{}]",
           masterNode,
           reason);
     }
     innerStop();
     innerStart(masterNode);
   }
 }
コード例 #2
0
 public void stop(String reason) {
   synchronized (masterNodeMutex) {
     if (masterNode != null) {
       if (logger.isDebugEnabled()) {
         logger.debug(
             "[master] stopping fault detection against master [{}], reason [{}]",
             masterNode,
             reason);
       }
     }
     innerStop();
   }
 }