提交 68f73695 编写于 作者: Z ZHAOLIPAN 提交者: dailidong

fix typos (#1821)

上级 8399ab47
...@@ -56,7 +56,7 @@ public class AlertServer { ...@@ -56,7 +56,7 @@ public class AlertServer {
logger.info("alert server ready start "); logger.info("alert server ready start ");
while (Stopper.isRunning()){ while (Stopper.isRunning()){
try { try {
Thread.sleep(Constants.ALERT_SCAN_INTERVEL); Thread.sleep(Constants.ALERT_SCAN_INTERVAL);
} catch (InterruptedException e) { } catch (InterruptedException e) {
logger.error(e.getMessage(),e); logger.error(e.getMessage(),e);
Thread.currentThread().interrupt(); Thread.currentThread().interrupt();
......
...@@ -133,7 +133,7 @@ public class Constants { ...@@ -133,7 +133,7 @@ public class Constants {
public static final String TH_END = "</th>"; public static final String TH_END = "</th>";
public static final int ALERT_SCAN_INTERVEL = 5000; public static final int ALERT_SCAN_INTERVAL = 5000;
public static final String MARKDOWN_QUOTE = ">"; public static final String MARKDOWN_QUOTE = ">";
......
...@@ -25,7 +25,7 @@ public class Stopper { ...@@ -25,7 +25,7 @@ public class Stopper {
private static volatile AtomicBoolean signal = new AtomicBoolean(false); private static volatile AtomicBoolean signal = new AtomicBoolean(false);
public static final boolean isStoped(){ public static final boolean isStopped(){
return signal.get(); return signal.get();
} }
......
...@@ -98,7 +98,7 @@ public class ThreadUtilsTest { ...@@ -98,7 +98,7 @@ public class ThreadUtilsTest {
public void testStopper() { public void testStopper() {
assertTrue(Stopper.isRunning()); assertTrue(Stopper.isRunning());
Stopper.stop(); Stopper.stop();
assertTrue(Stopper.isStoped()); assertTrue(Stopper.isStopped());
} }
/** /**
......
...@@ -173,7 +173,7 @@ public class MasterServer implements IStoppable { ...@@ -173,7 +173,7 @@ public class MasterServer implements IStoppable {
try { try {
//execute only once //execute only once
if(Stopper.isStoped()){ if(Stopper.isStopped()){
return; return;
} }
......
...@@ -201,7 +201,7 @@ public class WorkerServer implements IStoppable { ...@@ -201,7 +201,7 @@ public class WorkerServer implements IStoppable {
try { try {
//execute only once //execute only once
if(Stopper.isStoped()){ if(Stopper.isStopped()){
return; return;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册