+ public void setUuid(String uuid) {
+ this.uuid = uuid;
+ }
+
+ public String getStatusAsString() {
+ return convertStatus(getStatus());
+ }
+
+ public static String convertStatus(int status) {
+ switch (status) {
+ case UNKOWN:
+ return "UNKOWN";
+ case PROCESSED:
+ return "PROCESSED";
+ case SKIPPED:
+ return "SKIPPED";
+ case ERROR:
+ return "ERROR";
+ case CLOSED_SESSION:
+ return "CLOSED_SESSION";
+ default:
+ throw new DetachedException("Unkown status " + status);
+ }
+ }