mirror of
https://github.com/actiontech/dble.git
synced 2026-05-23 08:08:41 -05:00
#1741 add heartbeat message
This commit is contained in:
@@ -153,7 +153,7 @@ public class MySQLHeartbeat {
|
||||
|
||||
private void setOk() {
|
||||
if (LOGGER.isDebugEnabled()) {
|
||||
LOGGER.debug("heartbeat setOK");
|
||||
LOGGER.debug("heartbeat to [" + source.getConfig().getUrl() + "] setOK");
|
||||
}
|
||||
switch (status) {
|
||||
case TIMEOUT_STATUS:
|
||||
@@ -181,7 +181,7 @@ public class MySQLHeartbeat {
|
||||
}
|
||||
|
||||
private void setError() {
|
||||
LOGGER.warn("heartbeat setError");
|
||||
LOGGER.warn("heartbeat to [" + source.getConfig().getUrl() + "] setError");
|
||||
// should continues check error status
|
||||
if (detector != null) {
|
||||
detector.quit();
|
||||
@@ -199,7 +199,7 @@ public class MySQLHeartbeat {
|
||||
}
|
||||
|
||||
private void setTimeout() {
|
||||
LOGGER.warn("heartbeat setTimeout");
|
||||
LOGGER.warn("heartbeat to [" + source.getConfig().getUrl() + "] setTimeout");
|
||||
this.isChecking.set(false);
|
||||
status = TIMEOUT_STATUS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user