|
|
|
@ -12,6 +12,7 @@ import com.fanruan.plugin.autonomy.AutonomyClassManagerGroup;
|
|
|
|
|
import com.fanruan.product.BuildContext; |
|
|
|
|
import com.fanruan.product.ProductConstants; |
|
|
|
|
import com.fr.base.OptimizeUtil; |
|
|
|
|
import com.fr.concurrent.FineExecutors; |
|
|
|
|
import com.fr.config.dao.DaoSelectorFactory; |
|
|
|
|
import com.fr.config.dao.PropertiesConstants; |
|
|
|
|
import com.fr.decision.service.context.ServiceContext; |
|
|
|
@ -74,6 +75,7 @@ import java.net.URLClassLoader;
|
|
|
|
|
import java.util.ArrayList; |
|
|
|
|
import java.util.Locale; |
|
|
|
|
import java.util.Set; |
|
|
|
|
import java.util.Timer; |
|
|
|
|
import java.util.concurrent.TimeUnit; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -226,6 +228,12 @@ public class DesignPreLoadComponent {
|
|
|
|
|
try { |
|
|
|
|
beforeAllStart(); |
|
|
|
|
//清空临时文件
|
|
|
|
|
FineExecutors.newSingleThreadScheduledExecutor().scheduleWithFixedDelay(new Runnable() { |
|
|
|
|
@Override |
|
|
|
|
public void run() { |
|
|
|
|
TmpFileUtils.cleanUpInnerTmpFiles(); |
|
|
|
|
} |
|
|
|
|
}, 10, 10, TimeUnit.MINUTES); |
|
|
|
|
Runtime.getRuntime().addShutdownHook(new Thread(TmpFileUtils::cleanUpInnerTmpFiles)); |
|
|
|
|
RestartHelper.deleteRecordFilesWhenStart(); |
|
|
|
|
CloudCenter.getInstance(); |
|
|
|
|