Class SyncJobContext

java.lang.Object
de.spiritscorp.datasync.controller.SyncJobContext

public class SyncJobContext extends Object
Manages the reactive runtime context for an individual synchronization or backup task. Holds task-specific properties, isolated file tables, and active worker thread references. * @author Tom Spirit
  • Property Details

  • Constructor Details

    • SyncJobContext

      public SyncJobContext(String name, Preference taskPreference)
      Creates a new isolated synchronization job environment with its own preference clone. * @param name The identification name for the user interface sidebar
      Parameters:
      taskPreference - The template preference instance to derive task-specific settings from
  • Method Details

    • cancelRunningTask

      public void cancelRunningTask(long timeoutMs)
      Signals the underlying worker thread to terminate via standard interruption flags. If a timeout greater than zero is specified, this method blocks the invoking context to await a graceful structural thread finalization.
      Parameters:
      timeoutMs - Maximum duration in milliseconds to await thread join; 0 executes asynchronously.
    • appendLog

      public void appendLog(String line)
    • getJobName

      public String getJobName()
      Gets the value of the jobName property.
      Property description:
      Returns:
      the value of the jobName property
      See Also:
    • jobNameProperty

      public javafx.beans.property.StringProperty jobNameProperty()
      Returns:
      the jobName property
      See Also:
    • isRunning

      public boolean isRunning()
      Gets the value of the running property.
      Property description:
      Returns:
      the value of the running property
      See Also:
    • runningProperty

      public javafx.beans.property.BooleanProperty runningProperty()
      Returns:
      the running property
      See Also:
    • getStatusMessage

      public String getStatusMessage()
      Gets the value of the statusMessage property.
      Property description:
      Returns:
      the value of the statusMessage property
      See Also:
    • statusMessageProperty

      public javafx.beans.property.StringProperty statusMessageProperty()
      Returns:
      the statusMessage property
      See Also:
    • setStatusMessage

      public void setStatusMessage(String message)
      Sets the value of the statusMessage property.
      Property description:
      Parameters:
      message - the value for the statusMessage property
      See Also:
    • getLogOutput

      public String getLogOutput()
      Gets the value of the logOutput property.
      Property description:
      Returns:
      the value of the logOutput property
      See Also:
    • logOutputProperty

      public javafx.beans.property.StringProperty logOutputProperty()
      Returns:
      the logOutput property
      See Also:
    • getSelectedMode

      public ScanType getSelectedMode()
      Gets the value of the selectedMode property.
      Property description:
      Returns:
      the value of the selectedMode property
      See Also:
    • selectedModeProperty

      public javafx.beans.property.StringProperty selectedModeProperty()
      Returns:
      the selectedMode property
      See Also:
    • setSelectedMode

      public void setSelectedMode(String mode)
      Sets the value of the selectedMode property.
      Property description:
      Parameters:
      mode - the value for the selectedMode property
      See Also:
    • getPreference

      public Preference getPreference()
    • getDuplicateFiles

      public javafx.collections.ObservableList<SyncJobContext.FileRow> getDuplicateFiles()