Commit 9bef0593 authored by ics's avatar ics
Browse files

remote access management

parent cd7d7801
......@@ -37,6 +37,11 @@ public class SessionManager {
private boolean allOk;
private int clientId = 0;
// If remote access
private String user;
private String password;
private String instrumentName;
private static Map<String, SessionManager> instances = new HashMap<String, SessionManager>();
public class ClientAlreadyLaunchedException extends Exception {};
......@@ -267,4 +272,14 @@ public class SessionManager {
public int getClientId() {
return clientId;
}
public void setRemoteAccessInformation(String user, String password, String instrumentName) {
this.user = user;
this.password = password;
this.instrumentName = instrumentName;
}
public String getInstrumentName() {
return instrumentName;
}
}
\ No newline at end of file
......@@ -570,6 +570,10 @@ public class ConfigManager {
public String getNomadServerEndpoint() {
/*if (isRemoteClient()) {
return "tcp://" + SessionManager.getInstance(CommandZoneWrapper.SERVER_ID).getInstrumentName() + ":7000";
}*/
String nomadServerEndpoint = getStringOrNothingAtAll("nomadServerEndpoint");
if (nomadServerEndpoint != null) {
......
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