1 package org
.argeo
.slc
.detached
;
3 import java
.util
.Properties
;
5 public class DetachedAnswer
implements DetachedCommunication
{
6 static final long serialVersionUID
= 1l;
8 public final static int UNKOWN
= -1;
9 public final static int PROCESSED
= 0;
10 public final static int ERROR
= 1;
11 public final static int SKIPPED
= 2;
12 public final static int CLOSED_SESSION
= 10;
14 private Properties properties
= new Properties();
15 private int status
= UNKOWN
;
19 public DetachedAnswer() {
23 public DetachedAnswer(DetachedRequest request
) {
24 uuid
= request
.getUuid();
27 public DetachedAnswer(DetachedRequest request
, String message
) {
33 public Properties
getProperties() {
37 public void setProperties(Properties outputParameters
) {
38 this.properties
= outputParameters
;
41 public int getStatus() {
45 public void setStatus(int outputStatus
) {
46 this.status
= outputStatus
;
49 public String
getLog() {
53 public void setLog(String log
) {
57 public String
getUuid() {
61 public void setUuid(String uuid
) {
65 public String
getStatusAsString() {
66 return convertStatus(getStatus());
69 public static String
convertStatus(int status
) {
80 return "CLOSED_SESSION";
82 throw new DetachedException("Unkown status " + status
);