|
|
|
@ -28,8 +28,6 @@ import com.fr.plugin.manage.control.PluginTaskCallback;
|
|
|
|
|
import com.fr.plugin.manage.control.PluginTaskResult; |
|
|
|
|
import com.fr.plugin.manage.control.ProgressCallback; |
|
|
|
|
import com.fr.report.ReportHelper; |
|
|
|
|
import com.fr.rpc.ExceptionHandler; |
|
|
|
|
import com.fr.rpc.RPCInvokerExceptionInfo; |
|
|
|
|
import com.fr.rpc.Result; |
|
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
|
import com.fr.workspace.WorkContext; |
|
|
|
@ -39,7 +37,7 @@ import com.fr.workspace.engine.base.FineObjectPool;
|
|
|
|
|
import com.fr.workspace.engine.channel.http.FunctionalHttpRequest; |
|
|
|
|
import com.fr.workspace.engine.exception.WorkspaceConnectionException; |
|
|
|
|
import com.fr.workspace.engine.rpc.WorkspaceProxyPool; |
|
|
|
|
import com.fr.workspace.server.check.VersionInfoOperator; |
|
|
|
|
|
|
|
|
|
import java.lang.reflect.Method; |
|
|
|
|
import java.text.ParsePosition; |
|
|
|
|
import java.text.SimpleDateFormat; |
|
|
|
@ -53,7 +51,6 @@ import java.util.Map;
|
|
|
|
|
import java.util.Set; |
|
|
|
|
import java.util.concurrent.CountDownLatch; |
|
|
|
|
import java.util.concurrent.TimeUnit; |
|
|
|
|
import javax.swing.SwingWorker; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @author pengda |
|
|
|
@ -285,16 +282,14 @@ public class VersionCheckUtils {
|
|
|
|
|
|
|
|
|
|
public static JSONArray checkLocalAndRemotePlugin() { |
|
|
|
|
JSONArray differentPlugins = new JSONArray(); |
|
|
|
|
JSONArray remotePlugins = FRContext.getCommonOperator().getPluginStatus(); |
|
|
|
|
List<JSONObject> remotePlugins = FRContext.getCommonOperator().getPluginStatus(); |
|
|
|
|
Map<String, PluginContext> localPluginsMap = new HashMap<>(); |
|
|
|
|
List<PluginContext> localPlugins = PluginManager.getContexts(); |
|
|
|
|
for (PluginContext pluginContext : localPlugins) { |
|
|
|
|
localPluginsMap.put(pluginContext.getID(), pluginContext); |
|
|
|
|
} |
|
|
|
|
JSONObject remotePlugin; |
|
|
|
|
Map<String, String> pluginsNameMap = ReportHelper.getPluginNameMap(); |
|
|
|
|
for (int i = 0; i < remotePlugins.size(); i++) { |
|
|
|
|
remotePlugin = remotePlugins.getJSONObject(i); |
|
|
|
|
for (JSONObject remotePlugin : remotePlugins) { |
|
|
|
|
if (isPluginNeedIgnore(remotePlugin)) { |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|