01: package de.anomic.plasma.dbImport;
02:
03: import java.util.HashMap;
04:
05: public interface dbImporter {
06:
07: // functions to pause and continue importing
08: public boolean isPaused();
09:
10: public void pauseIt();
11:
12: public void continueIt();
13:
14: public void stopIt() throws InterruptedException;
15:
16: public boolean isStopped();
17:
18: // getting status information
19: public long getTotalRuntime();
20:
21: public long getElapsedTime();
22:
23: public long getEstimatedTime();
24:
25: public int getProcessingStatusPercent();
26:
27: public int getJobID();
28:
29: public void setJobID(int id);
30:
31: public String getJobName();
32:
33: public String getJobType();
34:
35: public String getError();
36:
37: public String getStatus();
38:
39: //public void init(File plasmaPath, File indexPrimaryPath, File indexSecondaryPath, int cacheSize, long preloadTime);
40: public void init(HashMap<String, String> initParams)
41: throws ImporterException;
42:
43: public void startIt();
44: }
|