修改类名
This commit is contained in:
parent
55c2d84bef
commit
121ea2f039
|
|
@ -38,7 +38,7 @@ public class AlarmProcessServer {
|
|||
processThreads.add(tmpThread);
|
||||
}
|
||||
logger.info("Successfully launched {} processing threads.", Config.Server.PROCESS_THREAD_SIZE);
|
||||
new UserNumberInspectThread().start();
|
||||
new NumberOfUsersChangeDetectionThread().start();
|
||||
logger.info("Successfully launched the thread that inspect the number of user");
|
||||
logger.info("Alarm process server successfully started.");
|
||||
while (true) {
|
||||
|
|
|
|||
|
|
@ -11,13 +11,13 @@ import org.apache.logging.log4j.Logger;
|
|||
import java.sql.SQLException;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
public class UserNumberInspectThread extends Thread {
|
||||
public class NumberOfUsersChangeDetectionThread extends Thread {
|
||||
|
||||
private boolean isInspector = false;
|
||||
private InterProcessMutex inspectorLock = new InterProcessMutex(ZKUtil.getZkClient(),
|
||||
Config.ZKPath.INSPECTOR_LOCK_PATH);
|
||||
private String userIdsEncryptedStr;
|
||||
private Logger logger = LogManager.getLogger(UserNumberInspectThread.class);
|
||||
private Logger logger = LogManager.getLogger(NumberOfUsersChangeDetectionThread.class);
|
||||
|
||||
public void run() {
|
||||
while (true) {
|
||||
Loading…
Reference in New Issue