fix.убрал из общей(в перспективе библиотечной) части ссылки на частные объекты визуализатора

This commit is contained in:
2024-10-16 00:40:45 +03:00
parent b79474fdd1
commit 071aab5ea6
54 changed files with 166 additions and 113 deletions

View File

@@ -1,5 +1,5 @@
package Common.Utils;
import _VisualDVM.Constants;
import Common.CommonConstants;
import org.apache.commons.io.FileUtils;
import java.io.File;
@@ -8,12 +8,12 @@ public class InterruptThread extends Thread {
//------------
public InterruptThread(int sleep_ms, Callable action) {
super(() -> {
File interruptFile = new File(Constants.INTERRUPT);
File interruptFile = new File(CommonConstants.INTERRUPT);
try {
while (true) {
Thread.sleep(sleep_ms);
if (interruptFile.exists()) {
FileUtils.writeStringToFile(new File(Constants.ABORTED), "");
FileUtils.writeStringToFile(new File(CommonConstants.ABORTED), "");
FileUtils.forceDelete(interruptFile);
action.call();
}