From fea9ed936d1086ba5fd3ca5c889a79697f454b7c Mon Sep 17 00:00:00 2001 From: adam-m Date: Thu, 27 Jun 2013 13:12:09 -0400 Subject: [PATCH] add public API to ingest manager to check status of scheduler (if hasNext() ) --- .../autopsy/ingest/IngestManager.java | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Core/src/org/sleuthkit/autopsy/ingest/IngestManager.java b/Core/src/org/sleuthkit/autopsy/ingest/IngestManager.java index d312e5fc6f..b6a9d8efb2 100644 --- a/Core/src/org/sleuthkit/autopsy/ingest/IngestManager.java +++ b/Core/src/org/sleuthkit/autopsy/ingest/IngestManager.java @@ -575,6 +575,23 @@ public class IngestManager { } + + /** + * Check if data source scheduler has files in queues + * @return true if more sources in queues, false otherwise + */ + public boolean getDataSourceSchedulerHasNext() { + return this.scheduler.getDataSourceScheduler().hasNext(); + } + + /** + * Check if file scheduler has files in queues + * @return true if more files in queues, false otherwise + */ + public boolean getFileSchedulerHasNext() { + return scheduler.getFileScheduler().hasNext(); + } + /** * returns if manager is currently configured to process unalloc space @@ -600,6 +617,9 @@ public class IngestManager { String getReport() { return stats.toString(); } + + + /** * Module publishes message using InegestManager handle Does not block. The