no message
This commit is contained in:
@@ -240,6 +240,10 @@ public class TestingServer extends RepositoryServer<TestsDatabase> {
|
||||
response = new ServerExchangeUnit_2021(ServerCode.OK);
|
||||
StartNecessaryMachines();
|
||||
break;
|
||||
case GetSapforForCompilation:
|
||||
Print("Получить первую активную версию Sapfor для сборки");
|
||||
GetSapforForCompilation();
|
||||
break;
|
||||
default:
|
||||
throw new RepositoryRefuseException("Неподдерживаемый код: " + code);
|
||||
}
|
||||
@@ -325,6 +329,10 @@ public class TestingServer extends RepositoryServer<TestsDatabase> {
|
||||
response.object = db.getFirstActiveSapforPackagesCopies();
|
||||
}
|
||||
//---
|
||||
void GetSapforForCompilation() throws Exception{
|
||||
response = new ServerExchangeUnit_2021(ServerCode.OK);
|
||||
response.object = db.getSapforCopyForCompilation();
|
||||
}
|
||||
void UpdateActiveDVMPackages() throws Exception {
|
||||
response = new ServerExchangeUnit_2021(ServerCode.OK);
|
||||
Vector<Pair<Integer, Long>> keys_pairs = (Vector<Pair<Integer, Long>>) request.object;
|
||||
|
||||
@@ -21,13 +21,16 @@ import TestingSystem.SAPFOR.SapforConfigurationCommand.SapforConfigurationComman
|
||||
import TestingSystem.SAPFOR.SapforPackage.SapforPackage;
|
||||
import TestingSystem.SAPFOR.SapforPackage.SapforPackageDBTable;
|
||||
import TestingSystem.SAPFOR.ServerSapfor.ServerSapfor;
|
||||
import TestingSystem.SAPFOR.ServerSapfor.ServerSapforState;
|
||||
import TestingSystem.SAPFOR.ServerSapfor.ServerSapforsDBTable;
|
||||
import Visual_DVM_2021.Passes.All.ZipFolderPass;
|
||||
import Visual_DVM_2021.Passes.PassCode_2021;
|
||||
import com.sun.corba.se.spi.activation.Server;
|
||||
import javafx.util.Pair;
|
||||
import org.apache.commons.io.FileUtils;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.Serializable;
|
||||
import java.nio.file.Paths;
|
||||
import java.util.Comparator;
|
||||
import java.util.LinkedHashMap;
|
||||
@@ -269,8 +272,16 @@ public class TestsDatabase extends SQLiteDatabase {
|
||||
ex.printStackTrace();
|
||||
}
|
||||
}
|
||||
res.add(activePackage);
|
||||
res.add(new DVMPackage(activePackage));
|
||||
}
|
||||
return res;
|
||||
}
|
||||
public ServerSapfor getSapforCopyForCompilation() {
|
||||
for (ServerSapfor serverSapfor: serverSapfors.Data.values()){
|
||||
if (serverSapfor.state.equals(ServerSapforState.Queued)){
|
||||
return new ServerSapfor(serverSapfor);
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user