@ManagedOperation(description="Starts node crash monitor if member count > 1 and monitor is not running") public boolean startNodeCrashMonitor() { if(members.size() > 1) { if(startPingerThread()) { log.warn("Node crash detection manually started, was not running for some reason."); return true; } log.debug("Node crash detection is already running."); } else log.debug("Single node cluster, no need for node crash detection."); return false; }
if(hasNewPingDest) { interruptPingerThread(false); // allows the thread to use the new socket startPingerThread(); // in case it wasn't running; only starts if not yet running
@ManagedOperation(description="Starts node crash monitor if member count > 1 and monitor is not running") public boolean startNodeCrashMonitor() { if(members.size() > 1) { if(startPingerThread()) { log.warn("Node crash detection manually started, was not running for some reason."); return true; } log.debug("Node crash detection is already running."); } else log.debug("Single node cluster, no need for node crash detection."); return false; }
startPingerThread(); // only starts if not yet running
if(hasNewPingDest) { interruptPingerThread(false); // allows the thread to use the new socket startPingerThread(); // in case it wasn't running; only starts if not yet running