mirror of
https://github.com/elisspace/autopsy.git
synced 2026-10-04 08:16:16 +00:00
Added areServicesRunning() to check if any ingest service is still running.
This commit is contained in:
@@ -400,6 +400,25 @@ public class IngestManager {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Test is any file ingest services are running.
|
||||
*
|
||||
* @return true if any file ingest services are running, false otherwise
|
||||
*/
|
||||
public synchronized boolean areServicesRunning() {
|
||||
for (IngestServiceAbstract serv : abstractFileServices) {
|
||||
if(serv.hasBackgroundJobsRunning()) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
for (IngestImageThread thread : imageIngesters) {
|
||||
if(isServiceRunning(thread.getService())) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* check if ingest is currently being enqueued
|
||||
|
||||
Reference in New Issue
Block a user