mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-14 17:06:16 +00:00
renamed execute method in IngestManager to scheduleDataSource
This commit is contained in:
parent
cfa50f4345
commit
f6ccd898e6
@ -197,7 +197,7 @@ public class GeneralIngestConfigurator implements IngestConfigurator {
|
|||||||
|
|
||||||
if (!modulesToStart.isEmpty() && contentToIngest != null) {
|
if (!modulesToStart.isEmpty() && contentToIngest != null) {
|
||||||
// Queue the ingest process.
|
// Queue the ingest process.
|
||||||
manager.execute(modulesToStart, contentToIngest);
|
manager.scheduleDataSource(modulesToStart, contentToIngest);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -277,13 +277,13 @@ public class IngestManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Multiple data-sources version of execute() method. Enqueues multiple sources inputs (Content objects)
|
* Multiple data-sources version of scheduleDataSource() method. Enqueues multiple sources inputs (Content objects)
|
||||||
* and associated modules at once
|
* and associated modules at once
|
||||||
*
|
*
|
||||||
* @param modules modules to execute on every data source
|
* @param modules modules to scheduleDataSource on every data source
|
||||||
* @param inputs input data sources to enqueue and execute the ingest modules on
|
* @param inputs input data sources to enqueue and scheduleDataSource the ingest modules on
|
||||||
*/
|
*/
|
||||||
public void execute(final List<IngestModuleAbstract> modules, final List<Content> inputs) {
|
public void scheduleDataSource(final List<IngestModuleAbstract> modules, final List<Content> inputs) {
|
||||||
logger.log(Level.INFO, "Will enqueue number of inputs: " + inputs.size()
|
logger.log(Level.INFO, "Will enqueue number of inputs: " + inputs.size()
|
||||||
+ " to " + modules.size() + " modules.");
|
+ " to " + modules.size() + " modules.");
|
||||||
|
|
||||||
@ -310,14 +310,14 @@ public class IngestManager {
|
|||||||
* not block and can be called multiple times to enqueue more work to
|
* not block and can be called multiple times to enqueue more work to
|
||||||
* already running background ingest process.
|
* already running background ingest process.
|
||||||
*
|
*
|
||||||
* @param modules modules to execute on the data source input
|
* @param modules modules to scheduleDataSource on the data source input
|
||||||
* @param input input data source Content objects to execute the ingest modules on
|
* @param input input data source Content objects to scheduleDataSource the ingest modules on
|
||||||
*/
|
*/
|
||||||
public void execute(final List<IngestModuleAbstract> modules, final Content input) {
|
public void scheduleDataSource(final List<IngestModuleAbstract> modules, final Content input) {
|
||||||
List<Content> inputs = new ArrayList<Content>();
|
List<Content> inputs = new ArrayList<Content>();
|
||||||
inputs.add(input);
|
inputs.add(input);
|
||||||
logger.log(Level.INFO, "Will enqueue input: " + input.getName());
|
logger.log(Level.INFO, "Will enqueue input: " + input.getName());
|
||||||
execute(modules, inputs);
|
scheduleDataSource(modules, inputs);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user