Commit fe96eee8 authored by Michael Menzel's avatar Michael Menzel

refactor

parent 82054bb9
...@@ -4,7 +4,6 @@ import org.slf4j.Logger; ...@@ -4,7 +4,6 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import java.io.File; import java.io.File;
import java.net.InetAddress;
import java.nio.file.Path; import java.nio.file.Path;
public class Settings { public class Settings {
...@@ -20,15 +19,6 @@ public class Settings { ...@@ -20,15 +19,6 @@ public class Settings {
} }
public static void setBackendip(String ip) { public static void setBackendip(String ip) {
try {
InetAddress address = InetAddress.getByName(ip);
if (!address.isReachable(1000))
throw new Exception("Backend Server " + ip + " not reachable");
} catch (Exception e) {
logger.error("Exception {}", e.getMessage(), e);
}
Settings.backendip = ip; Settings.backendip = ip;
} }
...@@ -56,8 +46,8 @@ public class Settings { ...@@ -56,8 +46,8 @@ public class Settings {
return port; return port;
} }
public static void setPort(Integer ip) { public static void setPort(Integer p) {
port = ip; port = p;
} }
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment