no message

This commit is contained in:
2024-04-26 20:54:10 +03:00
parent 3821e3b164
commit cf81637812
3 changed files with 3 additions and 4 deletions

4
.idea/workspace.xml generated
View File

@@ -7,10 +7,8 @@
</component> </component>
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="e42177c3-2328-4b27-8a01-35779b2beb99" name="Default Changelist" comment=""> <list default="true" id="e42177c3-2328-4b27-8a01-35779b2beb99" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/Repository/RepositoryServer.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Repository/RepositoryServer.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Repository/RepositoryClient.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Repository/RepositoryClient.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/TestingSystem/Common/TestingServer.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/TestingSystem/Common/TestingServer.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/TestingSystem/Common/TestingServer.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/TestingSystem/Common/TestingServer.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/TestingSystem/Common/TestsDatabase.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/TestingSystem/Common/TestsDatabase.java" afterDir="false" />
</list> </list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />

View File

@@ -177,6 +177,7 @@ public abstract class RepositoryServer<D extends Database> {
public void StartAction() throws Exception { public void StartAction() throws Exception {
} }
public void Start() throws Exception { public void Start() throws Exception {
Utils.createEmptyFile("kek");//Constants.STARTED);
DiagnosticSignalHandler.install("TERM", signalHandler); DiagnosticSignalHandler.install("TERM", signalHandler);
DiagnosticSignalHandler.install("INT", signalHandler); DiagnosticSignalHandler.install("INT", signalHandler);
DiagnosticSignalHandler.install("ABRT", signalHandler); DiagnosticSignalHandler.install("ABRT", signalHandler);
@@ -184,7 +185,6 @@ public abstract class RepositoryServer<D extends Database> {
startAdditionalThreads(); startAdditionalThreads();
server = new ServerSocket(getPort()); server = new ServerSocket(getPort());
Print("Сервер запущен!"); Print("Сервер запущен!");
// Utils.createEmptyFile("kek");//Constants.STARTED);
StartAction(); StartAction();
while (true) { while (true) {
try { try {

View File

@@ -275,6 +275,7 @@ public class TestingServer extends RepositoryServer<TestsDatabase> {
break; break;
case StartNecessaryMachines: case StartNecessaryMachines:
Print("Проверка процессов машин"); Print("Проверка процессов машин");
response = new ServerExchangeUnit_2021(ServerCode.OK);
StartNecessaryMachines(); StartNecessaryMachines();
break; break;
default: default: