Package org.openrefine.process
Class ProcessManager
- java.lang.Object
-
- org.openrefine.process.ProcessManager
-
public class ProcessManager extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProcessManager.ExceptionMessage
-
Field Summary
Fields Modifier and Type Field Description protected List<Process>_processes
-
Constructor Summary
Constructors Constructor Description ProcessManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancelAll()protected com.google.common.util.concurrent.ListeningExecutorServicegetExecutorService()ProcessgetProcess(int processId)Gets the process with the given process id.ProcessgetProcess(ChangeDataId changeDataId)Gets any process that is fetching the supplied change data.List<Process>getProcesses()booleanhasPending()Is there any process in the queue (potentially running)?voidonDoneProcess(Process p)voidqueueProcess(Process process)voidshutdown()voidupdate()
-
-
-
Method Detail
-
shutdown
public void shutdown()
-
queueProcess
public void queueProcess(Process process)
-
hasPending
public boolean hasPending()
Is there any process in the queue (potentially running)?
-
onDoneProcess
public void onDoneProcess(Process p)
-
cancelAll
public void cancelAll()
-
getProcess
public Process getProcess(int processId)
Gets the process with the given process id.- Throws:
IllegalArgumentException- if the process cannot be found
-
getProcess
public Process getProcess(ChangeDataId changeDataId)
Gets any process that is fetching the supplied change data.- Returns:
- null if no such process can be found
-
update
public void update()
-
getExecutorService
protected com.google.common.util.concurrent.ListeningExecutorService getExecutorService()
-
-