Search in sources :

Example 1 with ProcessInfo

use of pipelite.controller.api.info.ProcessInfo in project pipelite by enasequence.

the class ProcessController method getProcesses.

private static List<ProcessInfo> getProcesses(ProcessRunnerPool processRunnerPool, String pipelineName) {
    List<ProcessInfo> processes = new ArrayList<>();
    for (ProcessRunner processRunner : processRunnerPool.getActiveProcessRunners()) {
        Process process = processRunner.getProcess();
        ProcessEntity processEntity = process.getProcessEntity();
        if (pipelineName == null || pipelineName.equals(processRunner.getPipelineName())) {
            ProcessInfo processInfo = getProcess(processEntity);
            processes.add(processInfo);
        }
    }
    return processes;
}
Also used : ProcessEntity(pipelite.entity.ProcessEntity) ArrayList(java.util.ArrayList) Process(pipelite.process.Process) ProcessInfo(pipelite.controller.api.info.ProcessInfo) ProcessRunner(pipelite.runner.process.ProcessRunner)

Aggregations

ArrayList (java.util.ArrayList)1 ProcessInfo (pipelite.controller.api.info.ProcessInfo)1 ProcessEntity (pipelite.entity.ProcessEntity)1 Process (pipelite.process.Process)1 ProcessRunner (pipelite.runner.process.ProcessRunner)1