Merge pull request #67 from SCS-ASSE-FS21-Group1/renaming-executors

Renaming executors
This commit is contained in:
reynisson 2021-11-16 17:46:28 +01:00 committed by GitHub
commit 33ab37c661
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
37 changed files with 9 additions and 11 deletions

View File

@ -9,9 +9,9 @@
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>ch.unisg</groupId>
<artifactId>executorbase</artifactId>
<artifactId>executor-base</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>executorbase</name>
<name>executor-base</name>
<description>Demo project for Spring Boot</description>
<properties>
<java.version>11</java.version>

View File

@ -9,9 +9,9 @@
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>ch.unisg</groupId>
<artifactId>executorcomputation</artifactId>
<artifactId>executor-computation</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>executorcomputation</name>
<name>executor-computation</name>
<description>Demo project for Spring Boot</description>
<properties>
<java.version>11</java.version>
@ -42,7 +42,7 @@
</dependency>
<dependency>
<groupId>ch.unisg</groupId>
<artifactId>executorbase</artifactId>
<artifactId>executor-base</artifactId>
<version>0.0.1-SNAPSHOT</version>
<scope>compile</scope>
</dependency>

View File

@ -9,9 +9,9 @@
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>ch.unisg</groupId>
<artifactId>executorrobot</artifactId>
<artifactId>executor-robot</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>executorrobot</name>
<name>executor-robot</name>
<description>Demo project for Spring Boot</description>
<properties>
<java.version>11</java.version>
@ -42,7 +42,7 @@
</dependency>
<dependency>
<groupId>ch.unisg</groupId>
<artifactId>executorbase</artifactId>
<artifactId>executor-base</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
</dependencies>

View File

@ -23,7 +23,7 @@ public class ExecutorRemovedEventListenerMqttAdapter extends ExecutorEventMqttLi
// representation that makes sense in the context of your application.
JsonNode data = new ObjectMapper().readTree(payload);
String executorId = data.get("executorURI").asText();
String executorId = data.get("executorUri").asText();
ExecutorRemovedEvent executorRemovedEvent = new ExecutorRemovedEvent(
new ExecutorURI(executorId));

View File

@ -34,8 +34,6 @@ public class PublishNewTaskEventAdapter implements NewTaskEventPort {
@Override
public void publishNewTaskEvent(NewTaskEvent event) {
System.out.println(server2);
// HttpClient client = HttpClient.newHttpClient();
// HttpRequest request = HttpRequest.newBuilder()
// .uri(URI.create(server + "/newtask/" + event.taskType.getValue()))