This commit is contained in:
ZHAOLIPAN 2020-01-14 16:15:34 +08:00 committed by dailidong
parent 8399ab4718
commit 68f736953b
6 changed files with 6 additions and 6 deletions

View File

@ -56,7 +56,7 @@ public class AlertServer {
logger.info("alert server ready start ");
while (Stopper.isRunning()){
try {
Thread.sleep(Constants.ALERT_SCAN_INTERVEL);
Thread.sleep(Constants.ALERT_SCAN_INTERVAL);
} catch (InterruptedException e) {
logger.error(e.getMessage(),e);
Thread.currentThread().interrupt();

View File

@ -133,7 +133,7 @@ public class Constants {
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 = ">";

View File

@ -25,7 +25,7 @@ public class Stopper {
private static volatile AtomicBoolean signal = new AtomicBoolean(false);
public static final boolean isStoped(){
public static final boolean isStopped(){
return signal.get();
}

View File

@ -98,7 +98,7 @@ public class ThreadUtilsTest {
public void testStopper() {
assertTrue(Stopper.isRunning());
Stopper.stop();
assertTrue(Stopper.isStoped());
assertTrue(Stopper.isStopped());
}
/**

View File

@ -173,7 +173,7 @@ public class MasterServer implements IStoppable {
try {
//execute only once
if(Stopper.isStoped()){
if(Stopper.isStopped()){
return;
}

View File

@ -201,7 +201,7 @@ public class WorkerServer implements IStoppable {
try {
//execute only once
if(Stopper.isStoped()){
if(Stopper.isStopped()){
return;
}