2010-02-03 03:29:47 +01:00
|
|
|
package com.metaweb.gridworks.process;
|
2010-01-27 02:48:42 +01:00
|
|
|
|
2010-02-03 03:29:47 +01:00
|
|
|
import com.metaweb.gridworks.Jsonizable;
|
2010-03-23 01:26:28 +01:00
|
|
|
import com.metaweb.gridworks.history.HistoryEntry;
|
2010-02-01 04:22:35 +01:00
|
|
|
|
2010-02-01 20:16:09 +01:00
|
|
|
public abstract class Process implements Jsonizable {
|
2010-03-03 05:19:58 +01:00
|
|
|
abstract public boolean isImmediate();
|
|
|
|
|
|
|
|
abstract public boolean isRunning();
|
|
|
|
abstract public boolean isDone();
|
|
|
|
|
2010-03-23 01:26:28 +01:00
|
|
|
abstract public HistoryEntry performImmediate() throws Exception;
|
2010-03-03 05:19:58 +01:00
|
|
|
|
|
|
|
abstract public void startPerforming(ProcessManager manager);
|
|
|
|
abstract public void cancel();
|
2010-01-27 02:48:42 +01:00
|
|
|
}
|