Class Main
java.lang.Object
de.spiritscorp.datasync.Main
Main application entry point responsible for runtime arguments parsing,
debug subsystems orchestration, and boots-strapping the JavaFX platform lifecycle.
- Author:
- Tom Spirit
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe timeout limit in milliseconds for asynchronous background processes (e.g., automated file or task scans).static final StringBoot delay flag longstatic final StringBoot Delay flag shortstatic final StringConfig folder flag longstatic final StringConfig folder flag shortstatic final StringDebug flag longstatic final StringDebug flag shortstatic final StringDebug to file flag longstatic final StringDebug to file flag shortstatic final intThe timeout limit in milliseconds for regular, worker threads before a forced termination is triggered.static final intThe delay time in seconds used for displaying or fading out status and informational messages within the GUI.static final StringThe current version of the application in semantic format, including the development stage (e.g., alpha). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisDebug()Checks whether the debug mode is active for extended verbose and additional runtime diagnostic outputs.static booleanChecks whether the debug mode is active for extended verbose and additional runtime diagnostic outputs.static booleanChecks whether the application was launched automatically by the operating system's startup/autostart routine.static voidApplication entry point.
-
Field Details
-
VERSION
The current version of the application in semantic format, including the development stage (e.g., alpha).- See Also:
-
EXIT_THREAD_TIMEOUT
public static final int EXIT_THREAD_TIMEOUTThe timeout limit in milliseconds for regular, worker threads before a forced termination is triggered.- See Also:
-
BACKGROUND_THREAD_TIMEOUT
public static final int BACKGROUND_THREAD_TIMEOUTThe timeout limit in milliseconds for asynchronous background processes (e.g., automated file or task scans).- See Also:
-
INFO_DELAY
public static final int INFO_DELAYThe delay time in seconds used for displaying or fading out status and informational messages within the GUI.- See Also:
-
CONFIG_DIR_LONG
-
CONFIG_DIR_SHORT
-
BOOT_DELAY_LONG
-
BOOT_DELAY_SHORT
-
DEBUG_LONG
-
DEBUG_SHORT
-
DEBUG_TO_FILE_LONG
-
DEBUG_TO_FILE_SHORT
-
-
Constructor Details
-
Main
public Main()
-
-
Method Details
-
main
Application entry point. Orchestrates the initial boot sequence by parsing command-line options and bootstrapping the underlying JavaFX application subsystem.This method delegates argument parsing to
parseArguments(String[])before handing over control to the JavaFX application lifecycle viaApplication.launch(Class, String...).- Parameters:
args- Runtime command-line execution flags and configuration parameters.
-
isFirstStart
public static boolean isFirstStart()Checks whether the application was launched automatically by the operating system's startup/autostart routine.When
true, a timer delay is initialized to reduce system resource contention during OS boot, and the application is instructed to start minimized in the background. This flag is managed and set automatically during the autostart registration process.- Returns:
trueif the application was triggered via OS autostart;falseif it was started manually by the user.
-
isDebug
public static boolean isDebug()Checks whether the debug mode is active for extended verbose and additional runtime diagnostic outputs.- Returns:
trueif advanced diagnostic information should be emitted;falseotherwise.
-
isDebugToFile
public static boolean isDebugToFile()Checks whether the debug mode is active for extended verbose and additional runtime diagnostic outputs.- Returns:
trueif advanced diagnostic information should be emitted;falseotherwise.
-