use json patch
This commit is contained in:
@@ -4,17 +4,16 @@ import ch.unisg.executorbase.executor.domain.ExecutorBase;
|
||||
import ch.unisg.executorbase.executor.domain.ExecutorType;
|
||||
import ch.unisg.executorhumidity.executor.adapter.out.GetHumidityAdapter;
|
||||
import ch.unisg.executorhumidity.executor.application.port.out.GetHumidityPort;
|
||||
import org.eclipse.californium.elements.exception.ConnectorException;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
public class Executor extends ExecutorBase {
|
||||
|
||||
private static final Executor executor = new Executor(ExecutorType.HUMIDITY);
|
||||
private static final Executor executor = new Executor(ExecutorType.HUMIDITY, "http://localhost:8087");
|
||||
|
||||
private final GetHumidityPort getHumidityPort = new GetHumidityAdapter();
|
||||
|
||||
private Executor(ExecutorType executorType) {super(executorType);}
|
||||
private Executor(ExecutorType executorType, String uri) {
|
||||
super(executorType, uri);
|
||||
}
|
||||
|
||||
public static Executor getExecutor() {return executor;}
|
||||
|
||||
@@ -22,8 +21,6 @@ public class Executor extends ExecutorBase {
|
||||
@Override
|
||||
protected
|
||||
String execution(String input) {
|
||||
//TODO: Fill
|
||||
|
||||
String result = getHumidityPort.getHumidity();
|
||||
|
||||
return result;
|
||||
|
Reference in New Issue
Block a user