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
JAliEn
JAliEn
Commits
7d0336f3
Commit
7d0336f3
authored
May 06, 2021
by
Costin Grigoras
Browse files
Avoid serializing the requested parameters on the way back
parent
481e7807
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/main/java/alien/api/taskQueue/AddResultsJDL.java
View file @
7d0336f3
...
...
@@ -21,7 +21,7 @@ public class AddResultsJDL extends Request {
/**
*
*/
private
final
JDL
jdl
;
private
JDL
jdl
;
private
final
long
queueId
;
private
boolean
successfulUpdate
=
false
;
...
...
@@ -43,6 +43,8 @@ public class AddResultsJDL extends Request {
@Override
public
void
run
()
{
successfulUpdate
=
TaskQueueUtils
.
addResultsJdl
(
this
.
jdl
,
Long
.
valueOf
(
this
.
queueId
));
this
.
jdl
=
null
;
}
@Override
...
...
src/main/java/alien/api/taskQueue/PutJobLog.java
View file @
7d0336f3
...
...
@@ -18,8 +18,8 @@ public class PutJobLog extends Request {
*/
private
static
final
long
serialVersionUID
=
-
6330031807464568555L
;
private
final
long
jobnumber
;
private
final
String
tag
;
private
final
String
message
;
private
String
tag
;
private
String
message
;
/**
* @param jobnumber
...
...
@@ -40,6 +40,7 @@ public class PutJobLog extends Request {
@Override
public
void
run
()
{
TaskQueueUtils
.
putJobLog
(
jobnumber
,
tag
,
message
,
null
);
tag
=
message
=
null
;
}
@Override
...
...
src/main/java/alien/api/taskQueue/SetJobStatus.java
View file @
7d0336f3
...
...
@@ -52,6 +52,9 @@ public class SetJobStatus extends Request {
@Override
public
void
run
()
{
TaskQueueUtils
.
setJobStatus
(
this
.
jobnumber
,
this
.
status
,
null
,
this
.
extrafields
);
if
(
this
.
extrafields
!=
null
)
this
.
extrafields
.
clear
();
}
@Override
...
...
src/main/java/alien/api/taskQueue/SubmitJob.java
View file @
7d0336f3
...
...
@@ -22,7 +22,7 @@ public class SubmitJob extends Request {
*/
private
static
final
long
serialVersionUID
=
7349968366381661013L
;
private
final
JDL
jdl
;
private
JDL
jdl
;
private
long
jobID
=
0
;
/**
...
...
@@ -50,6 +50,9 @@ public class SubmitJob extends Request {
catch
(
final
IOException
ioe
)
{
throw
new
IllegalArgumentException
(
ioe
.
getMessage
());
}
finally
{
jdl
=
null
;
}
}
/**
...
...
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