Commit 7d0336f3 authored by Costin Grigoras's avatar Costin Grigoras
Browse files

Avoid serializing the requested parameters on the way back

parent 481e7807
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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;
}
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment