Improvement: use the update_method provide by the server
This commit is contained in:
@@ -46,7 +46,7 @@ public class Job {
|
||||
|
||||
private Configuration config;
|
||||
|
||||
public Job(Configuration config_, String id_, String frame_, String revision_, String path_, boolean use_gpu, String command_, String script_, String sceneMd5_, String rendererMd5_, String extras_, boolean synchronous_upload_) {
|
||||
public Job(Configuration config_, String id_, String frame_, String revision_, String path_, boolean use_gpu, String command_, String script_, String sceneMd5_, String rendererMd5_, String extras_, boolean synchronous_upload_, String update_method_) {
|
||||
config = config_;
|
||||
id = id_;
|
||||
numFrame = frame_;
|
||||
@@ -64,7 +64,7 @@ public class Job {
|
||||
memoryUsed = 0;
|
||||
script = script_;
|
||||
maxOutputNbLines = 0;
|
||||
updateRenderingStatusMethod = null;
|
||||
updateRenderingStatusMethod = update_method_;
|
||||
process = null;
|
||||
askForRendererKill = false;
|
||||
|
||||
|
||||
@@ -385,6 +385,11 @@ public class Server extends Thread implements HostnameVerifier, X509TrustManager
|
||||
frame_extras = job_node.getAttribute("extras");
|
||||
}
|
||||
|
||||
String update_method = null;
|
||||
if (renderer_node.hasAttribute("update_method")) {
|
||||
update_method = renderer_node.getAttribute("update_method");;
|
||||
}
|
||||
|
||||
Job a_job = new Job(
|
||||
this.user_config,
|
||||
job_node.getAttribute("id"),
|
||||
@@ -397,7 +402,8 @@ public class Server extends Thread implements HostnameVerifier, X509TrustManager
|
||||
job_node.getAttribute("archive_md5"),
|
||||
renderer_node.getAttribute("md5"),
|
||||
frame_extras,
|
||||
synchronous_upload
|
||||
synchronous_upload,
|
||||
update_method
|
||||
);
|
||||
|
||||
this.client.getGui().framesRemaining(remaining_frames);
|
||||
|
||||
Reference in New Issue
Block a user