]>
git.argeo.org Git - gpl/argeo-slc.git/blob - runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/execution/ExecutionProcess.java
1 package org
.argeo
.slc
.execution
;
4 * A process is the functional representation of a combination of executions.
5 * While an execution is the actual java code running, a process exists before,
6 * during and after the execution actually took place, providing an entry point
7 * for the definition of executions, their monitoring (e.g. logging) and
8 * tracking. A process can be distributed or parallelized.
10 public interface ExecutionProcess
{
11 /** The process is not yet usable. */
12 public final static String NEW
= "NEW";
13 /** The process is usable but not yet scheduled to run. */
14 public final static String INITIALIZED
= "INITIALIZED";
15 /** The process is usable and scheduled to run, but not yet running. */
16 public final static String SCHEDULED
= "SCHEDULED";
17 /** The process is currently running. */
18 public final static String RUNNING
= "RUNNING";
19 /** The process has properly completed. */
20 public final static String COMPLETED
= "COMPLETED";
21 /** The process failed because of an unexpected error. */
22 public final static String ERROR
= "ERROR";
23 /** The status cannot be retrieved (probably because of unexpected errors). */
24 public final static String UNKOWN
= "UNKOWN";
27 * Only a reference to the process has been kept, all monitoring data such
28 * as logs have been purged.
30 public final static String PURGED
= "PURGED";
32 /** The UUID of this process. */
33 public String
getUuid();
35 /** The current status of this process. */
36 public String
getStatus();
38 /** Sets the current status of this process */
39 public void setStatus(String status
);