Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
portal-backend
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
HBP Medical Informatics Platform
portal-backend
Commits
06704791
Commit
06704791
authored
7 years ago
by
Mirco Nasuti
Browse files
Options
Downloads
Patches
Plain Diff
adapt launch of exareme algorithms
parent
9b3576c2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/eu/hbp/mip/controllers/ExperimentApi.java
+6
-4
6 additions, 4 deletions
src/main/java/eu/hbp/mip/controllers/ExperimentApi.java
with
6 additions
and
4 deletions
src/main/java/eu/hbp/mip/controllers/ExperimentApi.java
+
6
−
4
View file @
06704791
...
...
@@ -108,7 +108,8 @@ public class ExperimentApi {
try
{
if
(
isExaremeAlgo
(
expQuery
))
{
sendExaremeExperiment
(
experiment
);
String
algoCode
=
expQuery
.
getAlgorithms
().
get
(
0
).
getCode
();
sendExaremeExperiment
(
experiment
,
algoCode
);
}
else
{
...
...
@@ -311,12 +312,12 @@ public class ExperimentApi {
wokenActor
.
tell
(
experimentQuery
,
experimentsManager
);
}
private
void
sendExaremeExperiment
(
Experiment
experiment
)
{
private
void
sendExaremeExperiment
(
Experiment
experiment
,
String
algoCode
)
{
// >> Temporary: we should integrate exareme in a proper way in the future
// this runs in the background. For future optimization: use a thread pool
new
Thread
(()
->
{
String
query
=
experiment
.
computeExaremeQuery
();
String
url
=
miningExaremeQueryUrl
+
"/"
+
EXAREME_LR_ALGO
;
String
url
=
miningExaremeQueryUrl
+
"/"
+
algoCode
;
// Results are stored in the experiment object
try
{
StringBuilder
results
=
new
StringBuilder
();
...
...
@@ -349,7 +350,8 @@ public class ExperimentApi {
}
private
static
boolean
isExaremeAlgo
(
ExperimentQuery
expQuery
)
{
return
expQuery
.
getAlgorithms
().
size
()
>=
1
&&
"glm_exareme"
.
equals
(
expQuery
.
getAlgorithms
().
get
(
0
).
getCode
());
return
expQuery
.
getAlgorithms
().
size
()
>
0
&&
"WP_"
.
equals
(
expQuery
.
getAlgorithms
().
get
(
0
).
getCode
().
substring
(
0
,
3
));
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
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