Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Instrument Control
NomadCommandSystem
Commits
2aa13a87
Commit
2aa13a87
authored
Jun 30, 2020
by
acq
Browse files
Modifications to save nomad end point for remote clients in a local
file.
parent
189ec468
Changes
3
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
2aa13a87
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
...
...
src/main/java/fr/ill/ics/nscclient/serverconnection/ServerInstance.java
View file @
2aa13a87
...
...
@@ -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
;
}
}
src/main/java/fr/ill/ics/util/ConfigManager.java
View file @
2aa13a87
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment