Class Main

java.lang.Object
de.spiritscorp.datasync.Main

public final class Main extends Object
Main application entry point responsible for runtime arguments parsing, debug subsystems orchestration, and boots-strapping the JavaFX platform lifecycle.
Author:
Tom Spirit
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The timeout limit in milliseconds for asynchronous background processes (e.g., automated file or task scans).
    static final String
    Boot delay flag long
    static final String
    Boot Delay flag short
    static final String
    Config folder flag long
    static final String
    Config folder flag short
    static final String
    Debug flag long
    static final String
    Debug flag short
    static final String
    Debug to file flag long
    static final String
    Debug to file flag short
    static final int
    The timeout limit in milliseconds for regular, worker threads before a forced termination is triggered.
    static final int
    The delay time in seconds used for displaying or fading out status and informational messages within the GUI.
    static final String
    The current version of the application in semantic format, including the development stage (e.g., alpha).
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    Checks whether the debug mode is active for extended verbose and additional runtime diagnostic outputs.
    static boolean
    Checks whether the debug mode is active for extended verbose and additional runtime diagnostic outputs.
    static boolean
    Checks whether the application was launched automatically by the operating system's startup/autostart routine.
    static void
    main(String[] args)
    Application entry point.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • VERSION

      public static final String 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_TIMEOUT
      The 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_TIMEOUT
      The timeout limit in milliseconds for asynchronous background processes (e.g., automated file or task scans).
      See Also:
    • INFO_DELAY

      public static final int INFO_DELAY
      The delay time in seconds used for displaying or fading out status and informational messages within the GUI.
      See Also:
    • CONFIG_DIR_LONG

      public static final String CONFIG_DIR_LONG
      Config folder flag long
      See Also:
    • CONFIG_DIR_SHORT

      public static final String CONFIG_DIR_SHORT
      Config folder flag short
      See Also:
    • BOOT_DELAY_LONG

      public static final String BOOT_DELAY_LONG
      Boot delay flag long
      See Also:
    • BOOT_DELAY_SHORT

      public static final String BOOT_DELAY_SHORT
      Boot Delay flag short
      See Also:
    • DEBUG_LONG

      public static final String DEBUG_LONG
      Debug flag long
      See Also:
    • DEBUG_SHORT

      public static final String DEBUG_SHORT
      Debug flag short
      See Also:
    • DEBUG_TO_FILE_LONG

      public static final String DEBUG_TO_FILE_LONG
      Debug to file flag long
      See Also:
    • DEBUG_TO_FILE_SHORT

      public static final String DEBUG_TO_FILE_SHORT
      Debug to file flag short
      See Also:
  • Constructor Details

    • Main

      public Main()
  • Method Details

    • main

      public static void main(String[] args)
      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 via Application.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:
      true if the application was triggered via OS autostart; false if 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:
      true if advanced diagnostic information should be emitted; false otherwise.
    • isDebugToFile

      public static boolean isDebugToFile()
      Checks whether the debug mode is active for extended verbose and additional runtime diagnostic outputs.
      Returns:
      true if advanced diagnostic information should be emitted; false otherwise.