public class ExtractionController
extends java.lang.Object
Extractor
. Furthermore it manages the interaction between
ProfileController
, ModuleController
and
StorageController
, and it updates the user interfaces GUI
and
CLI
. A FileMonitorDaemon
is used to observe file changes of
the files added to the application.Modifier and Type | Field and Description |
---|---|
static EventController |
eventq |
Extractor |
extractor |
FileMonitorDaemon |
fileMonitorDaemon |
GUI |
gui |
ModuleController |
modules |
ProfileController |
profileController |
StorageController |
storageController |
Constructor and Description |
---|
ExtractionController()
Constructor to start without graphics and updates, mainly for testing
purposes.
|
ExtractionController(ExtractionControllerBuilder builder)
Constructor that works with the builder pattern.
|
Modifier and Type | Method and Description |
---|---|
void |
deleteAllMetadata()
Deletes all extracted information.
|
void |
exit()
Exit this application.
|
void |
runningExtraction(boolean running)
Updates the current-running-extraction-Symbol of the
GUI . |
void |
saveConfigs()
Saves all application configurations and profile settings during the
application shutdown.
|
void |
startGui()
Starts the graphical user interface.
|
void |
stopGui()
Called by the graphical user interface to indicate that the GUI was
closed.
|
void |
updateDoing(java.lang.String task)
Shows a state String at the
GUI . |
void |
updateFileDeletion(java.nio.file.Path file)
A file was deleted.
|
void |
updateFileModification(java.nio.file.Path file)
A file has changed.
|
void |
updateProfileView(Profile profile)
Updates the
GUI at profile changes. |
public ModuleController modules
public ProfileController profileController
public StorageController storageController
public Extractor extractor
public GUI gui
public FileMonitorDaemon fileMonitorDaemon
public static EventController eventq
public ExtractionController()
ExtractionControllerBuilder
for non-testing
purposes.public ExtractionController(ExtractionControllerBuilder builder)
ExtractionControllerBuilder
for configurations.builder
- Builder for this classpublic void startGui()
GUI
public void stopGui()
public void deleteAllMetadata()
public void updateFileModification(java.nio.file.Path file)
file
- Path to the modified file.public void updateFileDeletion(java.nio.file.Path file)
GUI
.file
- public void updateProfileView(Profile profile)
GUI
at profile changes.profile
- public void saveConfigs()
public void exit()
public void runningExtraction(boolean running)
GUI
.running
- Was the extraction run started, or finished?public void updateDoing(java.lang.String task)
GUI
.task
- the state String