The code.ill.fr has been recreated and upgraded with the latest version this weekend, If you encounter any problem please inform the Helpdesk.

Commit 2aa13a87 authored by acq's avatar acq
Browse files

Modifications to save nomad end point for remote clients in a local

file.
parent 189ec468
4.0.25 dd/mm/2020
------
* Modifications to save nomad end point for remote clients in a local file.
4.0.24 28/06/2020
------
* Start always ploty2, only nomadserver run offscreen plot
4.0.23 25/06/2020
......
......@@ -19,6 +19,8 @@ public class ServerInstance {
private Server server;
private String nomadServerEndpoint = null;
public static ServerInstance getInstance() {
if (instance == null) {
instance = new ServerInstance();
......@@ -27,8 +29,6 @@ public class ServerInstance {
}
public void init() {
String nomadServerEndpoint = null;
// Get the server endpoint.
if (ConfigManager.getInstance().isMainClient()) {
nomadServerEndpoint = ConfigManager.getInstance().getNomadServerEndpoint();
......@@ -101,4 +101,8 @@ public class ServerInstance {
return null;
}
public String getNomadServerEndpoint() {
return nomadServerEndpoint;
}
}
......@@ -125,6 +125,8 @@ public class ConfigManager {
private String clientType;
private static String localFilesDirectory = DEFAULT_LOCAL_FILES_DIRECTORY;
public static String NOMADENDPOINT_DIRECTORY = USER_HOME + FILE_SEPARATOR + "tmp" + FILE_SEPARATOR + "nomad";
public static String NOMADENDPOINT_FILE = "session.properties";
/**
* @return the unique instance of this class
......
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