/*\r
- * Copyright (C) 2010 Mathieu Baudier <mbaudier@argeo.org>\r
+ * Copyright (C) 2007-2012 Argeo GmbH\r
*\r
* Licensed under the Apache License, Version 2.0 (the "License");\r
* you may not use this file except in compliance with the License.\r
* See the License for the specific language governing permissions and\r
* limitations under the License.\r
*/\r
-\r
package org.argeo.slc.process;\r
\r
import java.io.Serializable;\r
import java.util.Map;\r
import java.util.TreeMap;\r
\r
-public class SlcExecution implements Serializable {\r
- private static final long serialVersionUID = 1L;\r
- public final static String STATUS_NONE = "DEFAULT";\r
- public final static String STATUS_SCHEDULED = "SCHEDULED";\r
- public final static String STATUS_RUNNING = "RUNNING";\r
- public final static String STATUS_FINISHED = "FINISHED";\r
- public final static String STATUS_ERROR = "ERROR";\r
- public final static String STATUS_CLEANED = "CLEANED";\r
+import org.argeo.slc.execution.ExecutionProcess;\r
+import org.argeo.slc.execution.ExecutionStep;\r
+import org.argeo.slc.execution.RealizedFlow;\r
+\r
+/** @deprecated use other implementations of {@link ExecutionProcess} */\r
+public class SlcExecution implements ExecutionProcess, Serializable {\r
+ private static final long serialVersionUID = -7607457971382118466L;\r
\r
public final static String UNKOWN_HOST = "UNKOWN_HOST";\r
\r
private String host;\r
private String user;\r
private String type;\r
- private String status = STATUS_NONE;\r
+ private String status = NEW;\r
private Map<String, String> attributes = new TreeMap<String, String>();\r
\r
/** TODO: Synchronize */\r
this.steps = steps;\r
}\r
\r
+ public void addSteps(List<ExecutionStep> steps) {\r
+ // not implemented on deprecated\r
+ }\r
+\r
public String getUuid() {\r
return uuid;\r
}\r
}\r
\r
public Date getEndDate() {\r
- if (!status.equals(STATUS_FINISHED) && !status.equals(STATUS_ERROR))\r
+ if (!status.equals(COMPLETED) && !status.equals(ERROR))\r
return null;\r
\r
synchronized (steps) {\r