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
72331bce
Commit
72331bce
authored
8 years ago
by
Mirco Nasuti
Browse files
Options
Downloads
Patches
Plain Diff
fix serialization problem
parent
ee325482
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/eu/hbp/mip/controllers/ExperimentApi.java
+2
-2
2 additions, 2 deletions
src/main/java/eu/hbp/mip/controllers/ExperimentApi.java
src/main/java/eu/hbp/mip/model/Experiment.java
+7
-7
7 additions, 7 deletions
src/main/java/eu/hbp/mip/model/Experiment.java
with
9 additions
and
9 deletions
src/main/java/eu/hbp/mip/controllers/ExperimentApi.java
+
2
−
2
View file @
72331bce
...
@@ -210,7 +210,7 @@ public class ExperimentApi {
...
@@ -210,7 +210,7 @@ public class ExperimentApi {
Timeout
timeout
=
new
Timeout
(
Duration
.
create
(
5
,
"seconds"
));
Timeout
timeout
=
new
Timeout
(
Duration
.
create
(
5
,
"seconds"
));
Future
<
Object
>
future
=
Patterns
.
ask
(
wokenActor
,
new
MethodsQuery
(),
timeout
);
Future
<
Object
>
future
=
Patterns
.
ask
(
wokenActor
,
new
MethodsQuery
(),
timeout
);
Methods
result
=
null
;
Methods
result
;
try
{
try
{
result
=
(
Methods
)
Await
.
result
(
future
,
timeout
.
duration
());
result
=
(
Methods
)
Await
.
result
(
future
,
timeout
.
duration
());
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
@@ -281,7 +281,7 @@ public class ExperimentApi {
...
@@ -281,7 +281,7 @@ public class ExperimentApi {
private
void
sendExperiment
(
Experiment
experiment
)
throws
MalformedURLException
{
private
void
sendExperiment
(
Experiment
experiment
)
throws
MalformedURLException
{
// this runs in the background. For future optimization: use a thread pool
// this runs in the background. For future optimization: use a thread pool
final
eu
.
hbp
.
mip
.
messages
.
external
.
ExperimentQuery
experimentQuery
=
experiment
.
comput
eQuery
();
final
eu
.
hbp
.
mip
.
messages
.
external
.
ExperimentQuery
experimentQuery
=
experiment
.
prepar
eQuery
();
LOGGER
.
info
(
"Akka is trying to reach remote "
+
wokenRefPath
);
LOGGER
.
info
(
"Akka is trying to reach remote "
+
wokenRefPath
);
ActorSelection
wokenActor
=
actorSystem
.
actorSelection
(
wokenRefPath
);
ActorSelection
wokenActor
=
actorSystem
.
actorSelection
(
wokenRefPath
);
...
...
This diff is collapsed.
Click to expand it.
src/main/java/eu/hbp/mip/model/Experiment.java
+
7
−
7
View file @
72331bce
...
@@ -91,7 +91,7 @@ public class Experiment {
...
@@ -91,7 +91,7 @@ public class Experiment {
*/
*/
}
}
public
ExperimentQuery
comput
eQuery
()
{
public
ExperimentQuery
prepar
eQuery
()
{
List
<
VariableId
>
variables
=
new
LinkedList
<>();
List
<
VariableId
>
variables
=
new
LinkedList
<>();
List
<
VariableId
>
covariables
=
new
LinkedList
<>();
List
<
VariableId
>
covariables
=
new
LinkedList
<>();
List
<
VariableId
>
grouping
=
new
LinkedList
<>();
List
<
VariableId
>
grouping
=
new
LinkedList
<>();
...
@@ -141,12 +141,12 @@ public class Experiment {
...
@@ -141,12 +141,12 @@ public class Experiment {
validations
.
add
(
new
Validation
(
v
.
getCode
(),
v
.
getName
(),
params
));
validations
.
add
(
new
Validation
(
v
.
getCode
(),
v
.
getName
(),
params
));
}
}
Seq
<
VariableId
>
variablesSeq
=
JavaConverters
.
asScalaIteratorConverter
(
variables
.
iterator
()).
asScala
().
toSeq
();
Seq
<
VariableId
>
variablesSeq
=
JavaConverters
.
asScalaIteratorConverter
(
variables
.
iterator
()).
asScala
().
toSeq
()
.
toList
()
;
Seq
<
VariableId
>
covariablesSeq
=
JavaConverters
.
asScalaIteratorConverter
(
covariables
.
iterator
()).
asScala
().
toSeq
();
Seq
<
VariableId
>
covariablesSeq
=
JavaConverters
.
asScalaIteratorConverter
(
covariables
.
iterator
()).
asScala
().
toSeq
()
.
toList
()
;
Seq
<
VariableId
>
groupingSeq
=
JavaConverters
.
asScalaIteratorConverter
(
grouping
.
iterator
()).
asScala
().
toSeq
();
Seq
<
VariableId
>
groupingSeq
=
JavaConverters
.
asScalaIteratorConverter
(
grouping
.
iterator
()).
asScala
().
toSeq
()
.
toList
()
;
Seq
<
Filter
>
filtersSeq
=
JavaConverters
.
asScalaIteratorConverter
(
filters
.
iterator
()).
asScala
().
toSeq
();
Seq
<
Filter
>
filtersSeq
=
JavaConverters
.
asScalaIteratorConverter
(
filters
.
iterator
()).
asScala
().
toSeq
()
.
toList
()
;
Seq
<
Algorithm
>
algorithmsSeq
=
JavaConverters
.
asScalaIteratorConverter
(
algorithms
.
iterator
()).
asScala
().
toSeq
();
Seq
<
Algorithm
>
algorithmsSeq
=
JavaConverters
.
asScalaIteratorConverter
(
algorithms
.
iterator
()).
asScala
().
toSeq
()
.
toList
()
;
Seq
<
Validation
>
validationsSeq
=
JavaConverters
.
asScalaIteratorConverter
(
validations
.
iterator
()).
asScala
().
toSeq
();
Seq
<
Validation
>
validationsSeq
=
JavaConverters
.
asScalaIteratorConverter
(
validations
.
iterator
()).
asScala
().
toSeq
()
.
toList
()
;
return
new
ExperimentQuery
(
variablesSeq
,
covariablesSeq
,
groupingSeq
,
filtersSeq
,
algorithmsSeq
,
validationsSeq
);
return
new
ExperimentQuery
(
variablesSeq
,
covariablesSeq
,
groupingSeq
,
filtersSeq
,
algorithmsSeq
,
validationsSeq
);
}
}
...
...
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