@@ -7,13 +7,9 @@ import org.simpleframework.xml.Root;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Root(strict = false, name = "cache")
|
||||
@Data
|
||||
@ToString
|
||||
public class CacheFileMD5 {
|
||||
@Root(strict = false, name = "cache") @Data @ToString public class CacheFileMD5 {
|
||||
|
||||
@ElementList(inline = true)
|
||||
private List<FileMD5> md5s;
|
||||
@ElementList(inline = true) private List<FileMD5> md5s;
|
||||
|
||||
public CacheFileMD5() {
|
||||
}
|
||||
|
||||
@@ -5,16 +5,11 @@ import lombok.ToString;
|
||||
import org.simpleframework.xml.Attribute;
|
||||
import org.simpleframework.xml.Root;
|
||||
|
||||
@Root(strict = false, name = "file")
|
||||
@Data
|
||||
@ToString
|
||||
public class FileMD5 {
|
||||
@Root(strict = false, name = "file") @Data @ToString public class FileMD5 {
|
||||
|
||||
@Attribute
|
||||
private String md5;
|
||||
@Attribute private String md5;
|
||||
|
||||
@Attribute(required = false)
|
||||
private String action;
|
||||
@Attribute(required = false) private String action;
|
||||
|
||||
public FileMD5() {
|
||||
}
|
||||
|
||||
@@ -5,10 +5,6 @@ import lombok.ToString;
|
||||
import org.simpleframework.xml.Attribute;
|
||||
import org.simpleframework.xml.Root;
|
||||
|
||||
@Root(strict = false, name = "keepmealive")
|
||||
@ToString
|
||||
public class HeartBeatInfos {
|
||||
@Attribute
|
||||
@Getter
|
||||
private int status;
|
||||
@Root(strict = false, name = "keepmealive") @ToString public class HeartBeatInfos {
|
||||
@Attribute @Getter private int status;
|
||||
}
|
||||
|
||||
@@ -9,25 +9,15 @@ import org.simpleframework.xml.Root;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Root(strict = false, name = "jobrequest")
|
||||
@ToString
|
||||
public class JobInfos {
|
||||
@Root(strict = false, name = "jobrequest") @ToString public class JobInfos {
|
||||
|
||||
@Attribute
|
||||
@Getter
|
||||
private int status;
|
||||
@Attribute @Getter private int status;
|
||||
|
||||
@Element(name = "stats", required = false)
|
||||
@Getter
|
||||
private SessionStats sessionStats;
|
||||
@Element(name = "stats", required = false) @Getter private SessionStats sessionStats;
|
||||
|
||||
@Element(name = "job", required = false)
|
||||
@Getter()
|
||||
private RenderTask renderTask;
|
||||
@Element(name = "job", required = false) @Getter() private RenderTask renderTask;
|
||||
|
||||
@ElementList(name = "file", inline = true, required = false)
|
||||
@Getter
|
||||
private List<FileMD5> fileMD5s;
|
||||
@ElementList(name = "file", inline = true, required = false) @Getter private List<FileMD5> fileMD5s;
|
||||
|
||||
public JobInfos() {
|
||||
}
|
||||
|
||||
@@ -5,13 +5,9 @@ import lombok.ToString;
|
||||
import org.simpleframework.xml.Attribute;
|
||||
import org.simpleframework.xml.Root;
|
||||
|
||||
@Root(strict = false, name = "jobvalidate")
|
||||
@ToString
|
||||
public class JobValidation {
|
||||
@Root(strict = false, name = "jobvalidate") @ToString public class JobValidation {
|
||||
|
||||
@Attribute
|
||||
@Getter
|
||||
private int status;
|
||||
@Attribute @Getter private int status;
|
||||
|
||||
public JobValidation() {
|
||||
}
|
||||
|
||||
@@ -6,59 +6,33 @@ import org.simpleframework.xml.Attribute;
|
||||
import org.simpleframework.xml.Element;
|
||||
import org.simpleframework.xml.Root;
|
||||
|
||||
@Root(strict = false, name = "job")
|
||||
@ToString
|
||||
public class RenderTask {
|
||||
@Root(strict = false, name = "job") @ToString public class RenderTask {
|
||||
|
||||
@Attribute(name = "id")
|
||||
@Getter
|
||||
private String id;
|
||||
@Attribute(name = "id") @Getter private String id;
|
||||
|
||||
@Attribute(name = "use_gpu")
|
||||
@Getter
|
||||
private int useGpu;
|
||||
@Attribute(name = "use_gpu") @Getter private int useGpu;
|
||||
|
||||
@Attribute(name = "archive_md5")
|
||||
@Getter
|
||||
private String archive_md5;
|
||||
@Attribute(name = "archive_md5") @Getter private String archive_md5;
|
||||
|
||||
@Attribute(name = "path")
|
||||
@Getter
|
||||
private String path;
|
||||
@Attribute(name = "path") @Getter private String path;
|
||||
|
||||
@Attribute(name = "frame")
|
||||
@Getter
|
||||
private String frame;
|
||||
@Attribute(name = "frame") @Getter private String frame;
|
||||
|
||||
@Attribute(name = "synchronous_upload")
|
||||
@Getter
|
||||
private String synchronous_upload;
|
||||
@Attribute(name = "synchronous_upload") @Getter private String synchronous_upload;
|
||||
|
||||
@Attribute(name = "extras")
|
||||
@Getter
|
||||
private String extras;
|
||||
|
||||
@Attribute(name = "validation_url")
|
||||
@Getter
|
||||
private String validationUrl;
|
||||
@Attribute(name = "extras") @Getter private String extras;
|
||||
|
||||
@Attribute(name = "name")
|
||||
@Getter
|
||||
private String name;
|
||||
@Attribute(name = "validation_url") @Getter private String validationUrl;
|
||||
|
||||
@Attribute(name = "password")
|
||||
@Getter
|
||||
private String password;
|
||||
@Attribute(name = "name") @Getter private String name;
|
||||
|
||||
@Element(name = "renderer")
|
||||
@Getter
|
||||
private RendererInfos rendererInfos;
|
||||
@Attribute(name = "password") @Getter private String password;
|
||||
|
||||
@Element(name = "script", data = true)
|
||||
@Getter
|
||||
private String script;
|
||||
@Element(name = "renderer") @Getter private RendererInfos rendererInfos;
|
||||
|
||||
@Element(name = "script", data = true) @Getter private String script;
|
||||
|
||||
public RenderTask() {
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,23 +5,15 @@ import lombok.ToString;
|
||||
import org.simpleframework.xml.Attribute;
|
||||
import org.simpleframework.xml.Root;
|
||||
|
||||
@Root(strict = false, name = "renderer")
|
||||
@ToString
|
||||
public class RendererInfos {
|
||||
@Root(strict = false, name = "renderer") @ToString public class RendererInfos {
|
||||
|
||||
@Attribute(name = "md5")
|
||||
@Getter
|
||||
private String md5;
|
||||
@Attribute(name = "md5") @Getter private String md5;
|
||||
|
||||
@Attribute(name = "commandline")
|
||||
@Getter
|
||||
private String commandline;
|
||||
@Attribute(name = "commandline") @Getter private String commandline;
|
||||
|
||||
@Attribute(name = "update_method")
|
||||
@Getter
|
||||
private String update_method;
|
||||
@Attribute(name = "update_method") @Getter private String update_method;
|
||||
|
||||
public RendererInfos() {
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,21 +5,13 @@ import lombok.ToString;
|
||||
import org.simpleframework.xml.Attribute;
|
||||
import org.simpleframework.xml.Root;
|
||||
|
||||
@Root(strict = false, name = "request")
|
||||
@ToString
|
||||
public class RequestEndPoint {
|
||||
@Root(strict = false, name = "request") @ToString public class RequestEndPoint {
|
||||
|
||||
@Attribute
|
||||
@Getter
|
||||
private String type;
|
||||
@Attribute @Getter private String type;
|
||||
|
||||
@Attribute
|
||||
@Getter
|
||||
private String path;
|
||||
@Attribute @Getter private String path;
|
||||
|
||||
@Attribute(name = "max-period", required = false)
|
||||
@Getter
|
||||
private int maxPeriod;
|
||||
@Attribute(name = "max-period", required = false) @Getter private int maxPeriod;
|
||||
|
||||
public RequestEndPoint() {
|
||||
}
|
||||
|
||||
@@ -8,20 +8,13 @@ import org.simpleframework.xml.Root;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Root(strict = false, name = "config")
|
||||
@ToString
|
||||
public class ServerConfig {
|
||||
@Root(strict = false, name = "config") @ToString public class ServerConfig {
|
||||
|
||||
@Attribute
|
||||
@Getter
|
||||
private int status;
|
||||
@Attribute @Getter private int status;
|
||||
|
||||
@Attribute(required = false)
|
||||
@Getter
|
||||
private String publickey;
|
||||
@Attribute(required = false) @Getter private String publickey;
|
||||
|
||||
@ElementList(name = "request", inline = true, required = false)
|
||||
private List<RequestEndPoint> requestEndPoints;
|
||||
@ElementList(name = "request", inline = true, required = false) private List<RequestEndPoint> requestEndPoints;
|
||||
|
||||
public ServerConfig() {
|
||||
}
|
||||
|
||||
@@ -5,35 +5,21 @@ import lombok.ToString;
|
||||
import org.simpleframework.xml.Attribute;
|
||||
import org.simpleframework.xml.Root;
|
||||
|
||||
@Root(strict = false, name = "stats")
|
||||
@ToString
|
||||
public class SessionStats {
|
||||
@Root(strict = false, name = "stats") @ToString public class SessionStats {
|
||||
|
||||
@Attribute(name = "credits_session")
|
||||
@Getter
|
||||
private int pointsEarnedOnSession;
|
||||
@Attribute(name = "credits_session") @Getter private int pointsEarnedOnSession;
|
||||
|
||||
@Attribute(name = "credits_total")
|
||||
@Getter
|
||||
private int pointsEarnedByUser;
|
||||
@Attribute(name = "credits_total") @Getter private int pointsEarnedByUser;
|
||||
|
||||
@Attribute(name = "frame_remaining")
|
||||
@Getter
|
||||
private int remainingFrames;
|
||||
@Attribute(name = "frame_remaining") @Getter private int remainingFrames;
|
||||
|
||||
@Attribute(name = "waiting_project")
|
||||
@Getter
|
||||
private int waitingProjects;
|
||||
@Attribute(name = "waiting_project") @Getter private int waitingProjects;
|
||||
|
||||
@Attribute(name = "renderable_project", required = false)
|
||||
@Getter
|
||||
private int renderableProjects;
|
||||
@Attribute(name = "renderable_project", required = false) @Getter private int renderableProjects;
|
||||
|
||||
@Attribute(name = "connected_machine")
|
||||
@Getter
|
||||
private int connectedMachines;
|
||||
@Attribute(name = "connected_machine") @Getter private int connectedMachines;
|
||||
|
||||
public SessionStats() {
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user