added extra threads again and moved variables to settings file
This commit is contained in:
@@ -68,9 +68,9 @@ public class DiscordHandler extends ListenerAdapter {
|
||||
|
||||
try (DatagramSocket serverSocket = new DatagramSocket(port)) {
|
||||
|
||||
String hostIP = "195.154.53.196";
|
||||
if (port == 48477 || port == 48478) {
|
||||
hostIP = "51.158.20.245";
|
||||
String hostIP = new settings().getHostIP();
|
||||
if (port == new settings().getHostport() || port == new settings().getHostport2()) {
|
||||
hostIP = new settings().getHostIP2();
|
||||
}
|
||||
InetAddress ipAddress = InetAddress.getByName(hostIP);//used ip'
|
||||
while (true) {
|
||||
@@ -85,12 +85,11 @@ public class DiscordHandler extends ListenerAdapter {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private static StanfordCoreNLP stanfordCoreNLP;
|
||||
private static Datahandler datahandler;
|
||||
private static StanfordCoreNLP stanfordCoreNLPSentiment;
|
||||
private static ExecutorService executorService = Executors.newFixedThreadPool(1);
|
||||
private static ExecutorService executorServiceIngame = Executors.newFixedThreadPool(2);
|
||||
private static ExecutorService executorService = Executors.newFixedThreadPool(3);
|
||||
private static ExecutorService executorServiceIngame = Executors.newFixedThreadPool(4);
|
||||
|
||||
//TODO add python program that edits the java code. python program just adds test if statements on
|
||||
//variables until the tests pass
|
||||
|
||||
Reference in New Issue
Block a user