Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
DataBrowser
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software Control System
Gui
DataBrowser
Commits
b2160043
Commit
b2160043
authored
Mar 4, 2021
by
Katy Saintin
Browse files
Options
Downloads
Patches
Plain Diff
Set read and write port parameter
parent
e87c35ea
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
DataBrowserPlugins/IrfuPlugin/src/main/java/fr/cea/irfu/muscade/MuscadeParameterAccessor.java
+6
-2
6 additions, 2 deletions
...in/java/fr/cea/irfu/muscade/MuscadeParameterAccessor.java
with
6 additions
and
2 deletions
DataBrowserPlugins/IrfuPlugin/src/main/java/fr/cea/irfu/muscade/MuscadeParameterAccessor.java
+
6
−
2
View file @
b2160043
...
...
@@ -25,6 +25,8 @@ import heps.muscade.client.parameters.UInt16;
public
class
MuscadeParameterAccessor
implements
ParameterAccessor
{
private
static
final
String
READ_PORT_PROP
=
"muscade.portnumber.read"
;
private
static
final
String
WRITE_PORT_PROP
=
"muscade.portnumber.write"
;
private
static
Map
<
String
,
AbstractParameter
<?>>
muscadeParameterMap
=
new
HashMap
<>();
private
static
Map
<
String
,
Map
<
String
,
String
>>
muscadeParameterInfo
=
new
HashMap
<>();
...
...
@@ -105,8 +107,10 @@ public class MuscadeParameterAccessor implements ParameterAccessor {
// https://drf-gitlab.cea.fr/LIQUE4008/LIQUE4008-gestion/issues/51
// fullAcccessCnx = new Cnx(host, 10001);
// readAcccessCnx = new Cnx(host, 10000);
int
tmpFullAccessPort
=
10001
;
int
tmpReadAccessPort
=
10000
;
String
readPort
=
System
.
getProperty
(
READ_PORT_PROP
,
String
.
valueOf
(
Cnx
.
PORT_DEFAULT
));
String
writePort
=
System
.
getProperty
(
WRITE_PORT_PROP
,
String
.
valueOf
(
Cnx
.
PORT_WRITE_DEFAULT
));
int
tmpFullAccessPort
=
Integer
.
valueOf
(
writePort
);
int
tmpReadAccessPort
=
Integer
.
valueOf
(
readPort
);
fullAcccessCnx
=
Cnx
.
create
(
host
,
tmpFullAccessPort
);
readAcccessCnx
=
Cnx
.
create
(
host
,
tmpReadAccessPort
);
parameterFactory
=
ParameterFactory
.
createFactory
(
host
,
fullAcccessCnx
,
readAcccessCnx
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment