]> git.argeo.org Git - gpl/argeo-slc.git/blob - org.argeo.slc.detached/src/main/java/org/argeo/slc/detached/DetachedAnswer.java
Integrate detached with standard SLC
[gpl/argeo-slc.git] / org.argeo.slc.detached / src / main / java / org / argeo / slc / detached / DetachedAnswer.java
1 package org.argeo.slc.detached;
2
3 import java.util.Properties;
4
5 public class DetachedAnswer implements DetachedCommunication {
6 static final long serialVersionUID = 1l;
7
8 public static int PROCESSED = 0;
9 public static int ERROR = 1;
10 public static int SKIPPED = 2;
11
12 private Properties properties = new Properties();
13 private int status;
14 private String log;
15 private String uuid;
16
17 public DetachedAnswer() {
18
19 }
20
21 public DetachedAnswer(DetachedRequest request, String message) {
22 uuid = request.getUuid();
23 log = message;
24 status = PROCESSED;
25 }
26
27 public Properties getProperties() {
28 return properties;
29 }
30
31 public void setProperties(Properties outputParameters) {
32 this.properties = outputParameters;
33 }
34
35 public int getStatus() {
36 return status;
37 }
38
39 public void setStatus(int outputStatus) {
40 this.status = outputStatus;
41 }
42
43 public String getLog() {
44 return log;
45 }
46
47 public void setLog(String log) {
48 this.log = log;
49 }
50
51 public String getUuid() {
52 return uuid;
53 }
54
55 }