рефакторинг серверной части сапфора.
This commit is contained in:
@@ -90,20 +90,6 @@ public abstract class TestingPlanner<P extends TestingPackage> {
|
||||
}
|
||||
protected void Disconnect() {
|
||||
}
|
||||
//---
|
||||
/*
|
||||
protected void CheckExecutionStates() throws Exception{
|
||||
|
||||
case CompilationWorkspacesCreation:
|
||||
case CompilationPreparation:
|
||||
case CompilationExecution:
|
||||
case RunningWorkspacesCreation:
|
||||
case RunningPreparation:
|
||||
case RunningExecution:
|
||||
if (CheckNextState()) UpdatePackage();
|
||||
break;
|
||||
}
|
||||
*/
|
||||
//жизненный цикл планировщика
|
||||
protected void Session() throws Exception {
|
||||
switch (testingPackage.state) {
|
||||
@@ -136,7 +122,6 @@ public abstract class TestingPlanner<P extends TestingPackage> {
|
||||
}
|
||||
// ---
|
||||
public void Perform() {
|
||||
while (true) {
|
||||
try {
|
||||
testingPackage = null;
|
||||
testingPackage = (P) ServerCommand(getActivePackageCode());
|
||||
@@ -173,11 +158,11 @@ public abstract class TestingPlanner<P extends TestingPackage> {
|
||||
System.gc();
|
||||
//--
|
||||
}
|
||||
//else Print(this.getClass().getSimpleName()+": no active package found");
|
||||
} catch (Exception ex) {
|
||||
ex.printStackTrace();
|
||||
} finally {
|
||||
Utils.sleep(getSleepMillis());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user