no message

This commit is contained in:
2025-02-05 01:14:41 +03:00
parent dd90100bfa
commit c89e757171
51 changed files with 145 additions and 192 deletions

View File

@@ -1,26 +1,21 @@
package _VisualDVM.Passes.Testing;
import _VisualDVM.Passes.Server.TestingSystemPass_OLD;
import _VisualDVM.Passes.Server.TestingServerPass;
import _VisualDVM.Repository.Server.ServerCode;
import _VisualDVM.Repository.Server.ServerExchangeUnit_2021;
import _VisualDVM.TestingSystem.Common.TestingPackage.TestingPackage;
import _VisualDVM.TestingSystem.Common.TestingPackageToKill.TestingPackageToKill;
public abstract class AbortTestingPackage extends TestingSystemPass_OLD<TestingPackage> {
public abstract class AbortTestingPackage extends TestingServerPass<TestingPackage> {
TestingPackageToKill packageToKill = null;
@Override
public String getIconPath() {
return "/Common/icons/Ban.png";
}
@Override
public String getButtonText() {
return "";
}
public abstract Class currentClass();
public abstract int getAbortType();
@Override
protected boolean canStart(Object... args) throws Exception {
packageToKill = null;
if (server.db.CheckCurrent(Log, currentClass())) {
target = (TestingPackage) server.db.getTable(currentClass()).getUI().getCurrent();
if (getServer().db.CheckCurrent(Log, currentClass())) {
target = (TestingPackage) getServer().db.getTable(currentClass()).getUI().getCurrent();
switch (target.state) {
case Done:
case Aborted:
@@ -34,14 +29,9 @@ public abstract class AbortTestingPackage extends TestingSystemPass_OLD<TestingP
packageToKill = new TestingPackageToKill();
packageToKill.packageId = target.id;
packageToKill.type = getAbortType();
return true;
return SendRequest(ServerCode.PublishObject, null, packageToKill);
}
}
;
return false;
}
@Override
protected void ServerAction() throws Exception {
Command(new ServerExchangeUnit_2021(ServerCode.PublishObject, null, packageToKill));
}
}